'use strict'; const gulp = require('gulp'); var bump = require('gulp-bump'); var changedInPlace = require('gulp-changed-in-place'); const debug = require('gulp-debug'); const watchFolders = ['ncas/**/*.js', 'helpers/**/*.js']; gulp.task('bumpNcas', () => { gulp.src('ncas/**/*.js') .pipe(changedInPlace({'firstPass':true})) .pipe(debug({ 'showFiles': true })) .pipe(bump({ 'key': 'version', 'type':'prerelease' })) .pipe(gulp.dest('ncas')); }); /* gulp.task('styles', function() { return gulp.src(['node_modules/backbone.modal/backbone.modal.css', 'node_modules/backbone.modal/backbone.modal.theme.css']) .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4')) .pipe(concat('style.min.css')) .pipe(cssnano()) .pipe(gulp.dest('live/css')); }); gulp.task('default', function () { return gulp.src('src/**//*/ .{ts,tsx}') .pipe(changedInPlace()) .pipe(tsfmt()) .pipe(gulp.dest('src')); }); */ gulp.task('bumpWatch', ['bumpNcas'], function() { gulp.watch(watchFolders, ['bumpNcas']); });