[common] udpate proto

This commit is contained in:
2018-03-01 12:05:06 +03:00
parent 634f5ad2d0
commit 45fab2c0b5
15 changed files with 96 additions and 63 deletions

View File

@@ -23,10 +23,16 @@ const prepare = (...targets) => function prepare() {
return Promise.all(tasks);
};
const update = () => {
return new Haxe().upgrade();
};
const generate = () => function generate() {
return new Haxe().haxelib([
'run', 'protohx', 'generate', 'protohx.json'
]);
};
module.exports = prepare;
module.exports.update = update;
module.exports.generate = generate;