[gulp] update to gulp-haxetool 0.0.4

This commit is contained in:
2018-04-05 11:36:41 +03:00
parent 01f811ebd2
commit 0eb150eb8b
3 changed files with 19 additions and 14 deletions

View File

@@ -23,23 +23,31 @@ const Platform = {
class Config {
constructor({name, version, lib=[], cp=[], main=null, values={}, macro=[]}) {
constructor({title, pack, company, name, version, lib=[], cp=[], asset=[], main=null, values={}, macro=[]}) {
this.title = title;
this.pack = pack;
this.company = company;
this.name = name;
this.version = version;
this.lib = lib;
this.cp = cp;
this.asset = asset;
this.main = main;
this.values = values;
this.macro = macro;
}
update({name, version, lib=[], cp=[], main=null, values={}, macro=[]}) {
update({name, version, lib=[], cp=[], asset=[], main=null, values={}, macro=[]}) {
return new Config({
title: this.title,
pack: this.pack,
company: this.company,
name: name || this.name,
version: version || this.version,
//lib: this.lib.concat(lib), //ToDo: check if object
lib: this.lib,
cp: this.cp.concat(cp),
asset: this.asset.concat(asset),
main: main || this.main,
values: {...this.values, ...values},
macro: this.macro.concat(macro),
@@ -96,9 +104,13 @@ class OpenFLBuilder extends Builder {
.pipe(this.haxe.openfl({
command: 'build',
platform: this.platform,
title: this.config.title,
pack: this.config.pack,
company: this.config.company,
version: this.config.version,
lib: this.config.lib,
cp: this.config.cp,
asset: this.config.asset,
main: this.config.main,
debug: debug,
values: this.config.values,