-
Notifications
You must be signed in to change notification settings - Fork 20
/
gulpfile.js
50 lines (37 loc) · 925 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
var gulp = require('gulp');
var concat = require('gulp-concat');
gulp.task('default', function() {
fileOrder = [
'./src/userscript_metadata.js',
'./src/globalVariable.js',
'./src/functions.js',
//INIT
'./src/main/initData.js',
'./src/main/initLang.js',
'./src/main/init.js',
'./src/main/*.js',
//UTILS
'./src/main/Utils.js',
//CSS
'./src/main/css/initData.js',
'./src/main/css/*.js',
//GAME
'./src/main/game/initData.js',
'./src/main/game/init.js',
'./src/main/game/*.js',
//OPTIONS
'./src/main/options/initData.js',
'./src/main/options/init.js',
'./src/main/options/*.js',
//TABS
'./src/main/tabs/initData.js',
'./src/main/tabs/*.js',
//Le script commence ici
'./src/start.js'];
gulp.src(fileOrder)
.pipe(concat('CTRLW.user.js'), {newLine: '\n'})
.pipe(gulp.dest('./'));
});
gulp.task('watch', function() {
gulp.watch(['./src/**/*'], ['default']);
});