kopia lustrzana https://github.com/shoelace-style/shoelace
Remove watch task
rodzic
ee5b5232fb
commit
55dfc910a4
15
gulpfile.js
15
gulpfile.js
|
@ -6,7 +6,6 @@ const CleanCSS = require('gulp-clean-css');
|
|||
const Del = require('del');
|
||||
const Path = require('path');
|
||||
const Rename = require('gulp-rename');
|
||||
const Watch = require('gulp-watch');
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Config
|
||||
|
@ -67,19 +66,5 @@ Gulp.task('clean', 'Delete all generated files.', [
|
|||
'clean:styles'
|
||||
]);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Other tasks
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Watch for changes
|
||||
Gulp.task('watch', 'Watch files and automatically build assets on change.', () => {
|
||||
// Watch styles
|
||||
Gulp.src(styles.source)
|
||||
.pipe(Watch(styles.source))
|
||||
.on('change', () => {
|
||||
buildStyles(styles.source, styles.target);
|
||||
});
|
||||
});
|
||||
|
||||
// Default
|
||||
Gulp.task('default', 'Run the default task.', ['help']);
|
||||
|
|
Plik diff jest za duży
Load Diff
|
@ -12,10 +12,9 @@
|
|||
"devDependencies": {
|
||||
"chalk": "^1.1.3",
|
||||
"del": "^2.2.1",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-clean-css": "^3.0.3",
|
||||
"gulp-help": "^1.6.1",
|
||||
"gulp-rename": "^1.2.2",
|
||||
"gulp-watch": "^4.3.9",
|
||||
"gulp": "^3.9.1"
|
||||
"gulp-rename": "^1.2.2"
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue