[build] up haxe dependencies

This commit is contained in:
2018-01-28 14:20:41 +03:00
parent 6a00ee83d7
commit 24373aa85a
6 changed files with 34 additions and 17 deletions

View File

@@ -1,23 +1,14 @@
const AdobeAir = require('../tasks/adobeAir');
const Haxe = require('../tasks/haxe');
const FlashPlayer = require('../tasks/flashplayer');
const packages = [
{name:'openfl', version:'6.5.3'},
{name:'lime', version:'5.9.1'},
{name:'promhx', version:'1.1.0'},
{name:'protohx', version:'0.4.6'},
{name:'yaml', version:'1.3.0'},
{name:'haxework', git:'git@bitbucket.org:shmyga/haxework.git'},
{name:'orm', version:'2.1.0'},
];
const packageInfo = require('../package.json');
const prepareOne = (value) => {
switch (value) {
case Haxe.ID:
const haxe = new Haxe();
return haxe.prepare().then(() => haxe.install(packages));
return haxe.prepare().then(() => haxe.install(packageInfo.haxeDependencies));
case AdobeAir.ID:
return new AdobeAir().prepare();
case FlashPlayer.ID: