mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Remove watch task
This commit is contained in:
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']);
|
||||
|
||||
1210
package-lock.json
generated
1210
package-lock.json
generated
File diff suppressed because it is too large
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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user