forked from grahamgilchrist/hotac-ship-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
executable file
·51 lines (43 loc) · 966 Bytes
/
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
42
43
44
45
46
47
48
49
50
51
'use strict';
const gulp = require('gulp');
const sequence = require('run-sequence');
require('./node/server')();
require('./node/browserify')();
require('./node/sass')();
require('./node/eslint')();
require('./node/json-lint')();
require('./node/yaml-lint')();
require('./node/copyXwingData')();
require('./node/markdown')();
require('./node/templates')();
require('./node/uglify')();
// Add some general task aliases
gulp.task('lint', [
'eslint',
'sass-lint',
'yaml-lint',
'jsonlint'
]);
gulp.task('watch', [
'sass:watch',
'markdown:watch',
'templates:watch',
'browserify:watch',
'uglify:watch'
]);
gulp.task('dev', [
'build',
'server',
'watch'
]);
gulp.task('JsCompileAndCompress', function (done) {
sequence('browserify', 'uglify', done);
});
gulp.task('build', [
'copyXwingData',
'templates:compile',
'JsCompileAndCompress',
'sass',
'markdown'
]);
gulp.task('default', ['build']);