-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.babel.js
39 lines (28 loc) · 973 Bytes
/
gulpfile.babel.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
// native imports
import path from 'path';
// gulp
import gulp from 'gulp';
// load gulp plugins
import plugins from 'gulp-load-plugins';
const $ = plugins({
pattern: ['gulp-*', 'vinyl-*'], // load gulp and vinyl modules
replaceString: /^(?:gulp|vinyl)(-|\.)/,
});
// gulp module-level config
import config from './config.module.js';
// gulp user-level config
let user_config = {};
try { user_config = require('./config.user.js').default; } catch(e) {}
// gulp task makers
import tasks from './gulp/load-tasks';
// specify how config targets map to tasks
tasks(gulp, $, Object.assign({}, user_config, config)).load({
// transpiling javascript source to dist
js: ['transpile', 'develop:transpile'],
// compiling language compiler from jison
language: ['jison', 'develop:jison'],
// generate tm text highlighting files
'syntax-highlighting': ['tm-language', 'sublime', 'ace-mode', 'develop:sublime'],
});
// // default
// gulp.task('default', ['build']);