forked from StormFireGame/game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
32 lines (28 loc) · 861 Bytes
/
gulpfile.js
File metadata and controls
32 lines (28 loc) · 861 Bytes
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
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var nodemon = require('gulp-nodemon');
gulp.task('start', function() {
/* eslint quotes: 0 */
nodemon({
script: 'app.js',
verbose: true,
ignore: ['public/*', 'node_modules/*'],
execMap: {
js: "DEBUG='game:*' babel-node --harmony_proxies --harmony_generators --debug"
},
watch: ['*.js', '*.png'],
events: {
/* eslint max-len: 0 */
crash: "osascript -e 'display notification \"Game app crashed\" with title \"nodemon\"'"
}
});
});
// https://gist.github.com/nkbt/9efd4facb391edbf8048
gulp.task('eslint', function() {
return gulp.src(['**/*.js', '!node_modules/**', '!public/**'])
.pipe($.eslint())
.pipe($.eslint.format())
.pipe($.eslint.failOnError());
});
gulp.task('lint', ['eslint']);
gulp.task('default', ['lint']);