From c108fcc181a743237967c7d462b5905cb4f8fb7e Mon Sep 17 00:00:00 2001 From: shmyga Date: Thu, 28 Mar 2019 14:58:31 +0300 Subject: [PATCH] [core] add openfl preloader param --- haxetool/core.js | 2 ++ package.json | 2 +- template/project.xml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/haxetool/core.js b/haxetool/core.js index 2269b49..24ed94f 100644 --- a/haxetool/core.js +++ b/haxetool/core.js @@ -25,6 +25,7 @@ class Config { this._params = []; this.name = null; this.main = null; + this.preloader = null; this.sources = []; this.assets = []; this.libs = []; @@ -56,6 +57,7 @@ class Config { this._params.push(params); if (params.name !== undefined) this.name = params.name; if (params.main !== undefined) this.main = params.main; + if (params.preloader !== undefined) this.preloader = params.preloader; if (params.sources !== undefined) this.sources = this.sources.concat(params.sources.map(Config.absolutePath)); if (params.assets !== undefined) this.assets = this.assets.concat(params.assets.map(Config.absolutePath)); if (params.libs !== undefined) this.libs = this.libs.concat(Array.isArray(params.libs) ? params.libs : Object.entries(params.libs).map(([k, v]) => ({name: k, version: v}))); diff --git a/package.json b/package.json index 5c28e7f..ceb97bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gulp-haxetool", - "version": "0.0.15", + "version": "0.0.16", "description": "HaXe Tool for Gulp", "main": "index.js", "dependencies": { diff --git a/template/project.xml b/template/project.xml index 9d6c783..642407d 100644 --- a/template/project.xml +++ b/template/project.xml @@ -1,7 +1,7 @@ - + <% sources.forEach(function(item) { %> <% }); %>