Task crip.watch
Igors Krasjukovs edited this page Oct 9, 2016
·
2 revisions
Type: string
Task name for gulp output. Will be prefixed with watch-
.
Type: string
or array
Glob or array of globs to read and listenned on watch-globs task.
Type: string
or array
String or array of tasks to be executed and completed on globs change.
Type: string
The place where patterns starting with / will be mounted onto globs
items.
By default is used configuration watch.base
value (empty string
).
var gulp = require('gulp'),
cripweb = require('cripweb');
gulp.task('task-name', function(){
// do your default gulp stuff
});
cripweb(gulp)(function (crip) {
crip.watch('styles', 'css/**/*', ['copy-src-clone', 'task-name'], 'assets/src');
// Will make available gulp task 'watch-styles'
// Will start gulp tasks 'copy-src-clone' and 'task-name' when src globs changes
crip.config.set('copy', {base: 'assets/src', output: 'assets/copy', watch: false});
crip.copy('src-clone', 'css/**/*', crip.config.get('copy.output') + '/css');
});