[build] generate proto clasess
This commit is contained in:
@@ -7,6 +7,12 @@ const prepare = require('./prepare');
|
||||
const debug = require('../tasks/debug');
|
||||
|
||||
|
||||
const generate = () => function generate() {
|
||||
return new Haxe().haxelib([
|
||||
'run', 'protohx', 'generate', 'protohx.json'
|
||||
]);
|
||||
};
|
||||
|
||||
const build = () => function build() {
|
||||
const argv = yargs.argv;
|
||||
return gulp.src('.')
|
||||
@@ -28,5 +34,5 @@ const test = (build) => function test() {
|
||||
};
|
||||
|
||||
|
||||
exports['client'] = gulp.series(prepare(Haxe.ID), build());
|
||||
exports['client'] = gulp.series(prepare(Haxe.ID), generate(), build());
|
||||
exports['client:test'] = gulp.series(prepare(Haxe.ID, FlashPlayer.ID), test(build()));
|
||||
|
||||
Reference in New Issue
Block a user