preprocessor :)
parent
d2a62e0dbe
commit
c1ff7c8fab
26
gulpfile.js
26
gulpfile.js
|
@ -9,7 +9,7 @@ var watch = require('gulp-watch');
|
|||
var preprocessor = require('gulp-c-preprocessor');
|
||||
|
||||
gulp.task(
|
||||
'build',
|
||||
'merge',
|
||||
function() {
|
||||
return gulp.src('./src/game-lib-*.js')
|
||||
.pipe(sort())
|
||||
|
@ -36,7 +36,7 @@ gulp.task('test-prepare', function(){
|
|||
|
||||
gulp.task(
|
||||
'test',
|
||||
['build', 'test-prepare'],
|
||||
['merge', 'test-prepare'],
|
||||
function() {
|
||||
gulp.src('./test/test.*.js')
|
||||
.pipe(sort())
|
||||
|
@ -60,7 +60,7 @@ gulp.task(
|
|||
);
|
||||
|
||||
|
||||
gulp.task('compileRuntime', ['build'],
|
||||
gulp.task('compileRuntime', ['merge'],
|
||||
function() {
|
||||
gulp.src(['./defines/runtime.js', './build/game-lib.js'])
|
||||
.pipe(concat('game-lib-runtime.js'))
|
||||
|
@ -99,7 +99,7 @@ gulp.task('compileRuntime', ['build'],
|
|||
}
|
||||
);
|
||||
|
||||
gulp.task('compileEditor', ['build'],
|
||||
gulp.task('compileEditor', ['merge'],
|
||||
function() {
|
||||
gulp.src(['./defines/editor.js', './build/game-lib.js'])
|
||||
.pipe(concat('game-lib-editor.js'))
|
||||
|
@ -138,11 +138,23 @@ gulp.task('compileEditor', ['build'],
|
|||
}
|
||||
);
|
||||
|
||||
gulp.task(
|
||||
'build',
|
||||
[
|
||||
'merge',
|
||||
'compileRuntime',
|
||||
'compileEditor'
|
||||
],
|
||||
function() {
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
gulp.task(
|
||||
'default',
|
||||
[
|
||||
'build',
|
||||
'merge',
|
||||
'compileRuntime',
|
||||
'compileEditor'
|
||||
],
|
||||
|
@ -152,10 +164,10 @@ gulp.task(
|
|||
],
|
||||
function() {
|
||||
gulp.start([
|
||||
'build',
|
||||
'merge',
|
||||
'compileRuntime',
|
||||
'compileEditor'
|
||||
]);
|
||||
})
|
||||
}
|
||||
);
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue