Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dz 3 #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": [
"transform-es2015-modules-commonjs"
]
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
# Created by .ignore support plugin (hsz.mobi)
node_modules
9 changes: 9 additions & 0 deletions .idea/kim_michael.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

802 changes: 802 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const gulp = require('gulp');
const sass = require('gulp-sass');
const sourcemaps = require('gulp-sourcemaps');
const clean = require('gulp-clean');
const rebaseUrls = require('gulp-css-rebase-urls');


gulp.task('images-clean-dist', () =>
gulp.src('./public/dist/images', {read: false})
.pipe(clean())
);

gulp.task('images', ['images-clean-dist'], () =>
gulp.src('./src/images/**/*')
.pipe(gulp.dest('./public/dist/images'))
);

gulp.task('images:watch', ['images'], () =>
gulp.watch('./src/images/**/*', ['images'])
);

gulp.task('sass', () =>
gulp.src('./src/styles/default.scss')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(rebaseUrls())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('./public/dist/styles'))
);

gulp.task('sass:watch', ['sass'], () =>
gulp.watch('./src/styles/**/*.scss', ['sass'])
);


// common
gulp.task('build', ['sass', 'images']);
gulp.task('default', ['sass:watch', 'images:watch']);
Binary file removed images/icons/close.png
Binary file not shown.
Binary file removed images/icons/close@2x.png
Binary file not shown.
Binary file removed images/icons/completed.png
Binary file not shown.
Binary file removed images/icons/completed@2x.png
Binary file not shown.
Binary file removed images/icons/select-all.png
Binary file not shown.
Binary file removed images/icons/select-all@2x.png
Binary file not shown.
51 changes: 0 additions & 51 deletions index.html

This file was deleted.

29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "todo-app-with-css",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "gulp build",
"watch": "gulp watch",
"start": "gulp"
},
"author": "",
"license": "MIT",
"dependencies": {
"gulp": "^3.9.1",
"gulp-clean": "^0.3.2",
"gulp-css-rebase-urls": "0.0.5",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^2.5.1"
},
"devDependencies": {
"assert": "^1.4.1",
"babel": "^6.23.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
"babel-register": "^6.24.0",
"mocha": "^3.4.2",
"webpack": "^2.6.1"
}
}
Loading