[gulp] update to gulp-haxetool 0.0.9

This commit is contained in:
2018-04-27 17:50:19 +03:00
parent 4c8181b3ea
commit 9269bde518
2 changed files with 7 additions and 12 deletions

View File

@@ -16,13 +16,7 @@ exports.clean = function clean() {
};
exports.generate = function generate() {
return new Haxe().haxelib([
'run', 'protohx', 'generate', 'protohx.json'
]);
};
exports.install = function install() {
return new Haxe().install(packageInfo.haxeDependencies);
return new Haxe().haxelib(['run', 'protohx', 'generate', 'protohx.json']);
};
/**
@@ -30,7 +24,6 @@ exports.install = function install() {
* windows target
* window exe package (innosetup)
*/
const config = new Project.Config({
meta: {
title: 'Tank\'z',
@@ -66,7 +59,8 @@ const client = new Project(
sources: ['src/client/haxe'],
assets: ['src/client/resources'],
main: 'ru.m.tankz.Client',
})
}),
module.exports.generate
).bind(module);
/**
@@ -102,8 +96,6 @@ const server = new Project(
*/
module.exports.default = gulp.series(
exports.clean,
exports.install,
exports.generate,
module.exports['client:flash:build'],
module.exports['client:html5:build'],
module.exports['client:linux:build'],