[build] generate proto clasess

This commit is contained in:
2018-01-01 20:35:28 +03:00
parent 61b78ad4d9
commit f1156d0779
5 changed files with 45 additions and 14 deletions

View File

@@ -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()));