nci/gulpfile.js

28 lines
609 B
JavaScript
Raw Normal View History

2015-05-03 23:04:51 +00:00
'use strict';
var gulp = require('gulp');
2015-05-07 20:53:46 +00:00
var nodemon = require('gulp-nodemon');
2015-05-03 23:04:51 +00:00
var gulpReactJade = require('gulp-react-jade-amd');
gulp.task('react-jade', function() {
return gulp.src('static/js/**/*.jade')
.pipe(gulpReactJade())
.pipe(gulp.dest('static/js/templates'));
});
2015-05-07 20:53:46 +00:00
gulp.task('develop', function() {
gulp.watch('static/js/app/**/*.jade', ['react-jade']);
//gulp.watch('static/css/**/*.less', ['make-styles']);
return nodemon({
ignore: ['static/**/*.js', 'app/**/*.js', 'node_modules/**'],
script: 'app.js',
ext: 'js'
});
});
gulp.task('default', [
'react-jade',
'develop'
]);