[gulp] update to gulp-haxetool 0.0.9
This commit is contained in:
14
gulpfile.js
14
gulpfile.js
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user