Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6cd51b58c7 | |||
| a510dffb33 | |||
| 7dbdf21081 | |||
| ae317f8f1a | |||
| c108fcc181 | |||
| 39163dadde | |||
| 5b948e30d2 | |||
| 19ebf337fb |
@@ -1,3 +1,8 @@
|
||||
|
||||
0.0.18
|
||||
------
|
||||
* Add meta.fps project param
|
||||
|
||||
0.0.12
|
||||
------
|
||||
|
||||
@@ -16,4 +21,4 @@
|
||||
|
||||
* Windows compatibility
|
||||
* Change FlashPlayer download link
|
||||
* Use 'fs-extra' without 'mkdirp' and 'rmdir'
|
||||
* Use 'fs-extra' without 'mkdirp' and 'rmdir'
|
||||
|
||||
@@ -25,6 +25,7 @@ class Config {
|
||||
this._params = [];
|
||||
this.name = null;
|
||||
this.main = null;
|
||||
this.preloader = null;
|
||||
this.sources = [];
|
||||
this.assets = [];
|
||||
this.libs = [];
|
||||
@@ -38,7 +39,10 @@ class Config {
|
||||
version: null,
|
||||
pack: null,
|
||||
author: null,
|
||||
company: null
|
||||
company: null,
|
||||
width: 800,
|
||||
height: 600,
|
||||
fps: 60,
|
||||
};
|
||||
if (params) {
|
||||
this.update(params);
|
||||
@@ -54,6 +58,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})));
|
||||
@@ -78,4 +83,4 @@ module.exports = {
|
||||
BuildSystem: BuildSystem,
|
||||
Platform: Platform,
|
||||
Config: Config,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gulp-haxetool",
|
||||
"version": "0.0.15",
|
||||
"version": "0.0.19",
|
||||
"description": "HaXe Tool for Gulp",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<meta title="<%=meta.title%>" package="<%=meta.pack%>" version="<%=meta.version%>" company="<%=meta.company%>"/>
|
||||
<app main="<%=main%>" path="<%=buildDir%>" file="<%=meta.filename%>"/>
|
||||
<app main="<%=main%>" path="<%=buildDir%>" file="<%=meta.filename%>" preloader="<%=preloader%>"/>
|
||||
<icon path="<%=icon%>"/>
|
||||
<% sources.forEach(function(item) { %>
|
||||
<source path="<%=item%>"/><% }); %>
|
||||
<% assets.forEach(function(item) { %>
|
||||
<assets path="<%=item%>" rename="<%=item.split('/').pop()%>" include="*"/><% }); %>
|
||||
<assets if="flash" path="<%=item%>" rename="<%=item.split('/').pop()%>" include="*" exclude="*.ogg"/>
|
||||
<assets unless="flash" path="<%=item%>" rename="<%=item.split('/').pop()%>" include="*" exclude="*.mp3"/><% }); %>
|
||||
<% libs.forEach(function(item) { %>
|
||||
<haxelib name="<%=item.name%>" version="<%=item.version.split('@').shift()%>"/><% }); %>
|
||||
<% macros.forEach(function(item) { %>
|
||||
@@ -14,10 +15,10 @@
|
||||
<% flags.forEach(function(item) { %>
|
||||
<haxeflag name="-D" value="<%=item%>"/><% }); %>
|
||||
|
||||
<window fps="30"/>
|
||||
<window width="1024" height="768" unless="html5"/>
|
||||
<window fps="<%=meta.fps%>"/>
|
||||
<window fps="<%=meta.fps%>" width="<%=meta.width%>" height="<%=meta.height%>" unless="html5"/>
|
||||
|
||||
<haxeflag name="-D" value="swf-gpu"/>
|
||||
<haxeflag name="-D" value="native-trace"/>
|
||||
<haxeflag name="-dce" value="no"/>
|
||||
</project>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user