forked from dardevelin/taiga-events-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
41 lines (36 loc) · 1.03 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
var gulp = require('gulp');
var coffeelint = require('gulp-coffeelint');
var nodemon = require('gulp-nodemon');
var plumber = require("gulp-plumber");
var cache = require("gulp-cache");
var coffee = require("gulp-coffee");
gulp.task('lint', function () {
gulp.src(['**/*.coffee', '!node_modules/**/*'])
.pipe(cache(coffeelint('coffeelint.json'), {
success: function (file) {
return file.coffeelint.success;
},
value: function (file) {
return {
coffeelint: file.coffeelint
};
}
}))
.pipe(coffeelint.reporter());
});
gulp.task('config', function() {
return gulp.src('config.json')
.pipe(gulp.dest('dist/'));
});
gulp.task("coffee", ['config'], function() {
return gulp.src("*.coffee")
.pipe(coffee())
.pipe(gulp.dest("dist/"));
});
gulp.task('develop', function () {
nodemon({ script: 'index.coffee'})
.on('change', ['lint']);
});
gulp.task('default', [
'develop'
]);