Skip to content

Commit 2a3dfe1

Browse files
author
Matt Karl
committed
Upgraded to NW.js 0.12.2
* Fixed PATH issues with node and NPM * Default all modules to be off unless explicit stated
1 parent 2eea1bd commit 2a3dfe1

File tree

14 files changed

+176
-218
lines changed

14 files changed

+176
-218
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SpringRollStudio",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"private": true,
55
"dependencies": {
66
"jqueryui": "*",

deploy/assets/templates/default/springroll-template.json

Lines changed: 31 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "Default",
33
"id" : "io.springroll.default",
4-
"version" : "1.4.0",
4+
"version" : "1.4.2",
55
"github": "SpringRoll/SpringRollTemplate",
66
"rename" : {
77
"gitignore" : ".gitignore",
@@ -26,7 +26,31 @@
2626
"springroll": "*"
2727
},
2828
"libraries": "components/preloadjs/lib/preloadjs.min.js",
29-
"librariesDebug": "components/preloadjs/lib/preloadjs.combined.js"
29+
"librariesDebug": "components/preloadjs/lib/preloadjs.combined.js",
30+
"default": true
31+
},
32+
{
33+
"id": "debug",
34+
"name": "Debug",
35+
"description": "Feature parity with window.console but with support remote debugging and colored logs",
36+
"mainDebug": [
37+
"components/springroll/dist/modules/debug.js",
38+
"components/springroll/dist/modules/debug.css"
39+
],
40+
"default": true
41+
},
42+
{
43+
"id": "container-client",
44+
"name": "Container Client",
45+
"description": "Required for games being loaded by the Container module",
46+
"main": "components/springroll/dist/modules/container-client.min.js",
47+
"mainDebug": "components/springroll/dist/modules/container-client.js",
48+
"bower": {
49+
"bellhop": "*"
50+
},
51+
"libraries": "components/bellhop/dist/bellhop.min.js",
52+
"librariesDebug": "components/bellhop/dist/bellhop.js",
53+
"default": true
3054
},
3155
{
3256
"id": "states",
@@ -38,15 +62,6 @@
3862
["pixi-animation", "easeljs-animation"]
3963
]
4064
},
41-
{
42-
"id": "debug",
43-
"name": "Debug",
44-
"description": "Feature parity with window.console but with support remote debugging and colored logs",
45-
"mainDebug": [
46-
"components/springroll/dist/modules/debug.js",
47-
"components/springroll/dist/modules/debug.css"
48-
]
49-
},
5065
{
5166
"id": "tasks",
5267
"name": "Tasks",
@@ -141,26 +156,9 @@
141156
"mainDebug": "components/springroll/dist/modules/hints.js",
142157
"depends": [
143158
"sound",
144-
"learning-media",
145159
["pixi-animation", "easeljs-animation"]
146160
]
147161
},
148-
{
149-
"id": "container-client",
150-
"name": "Container Client",
151-
"description": "Required for games being loaded by the Container module",
152-
"main": "components/springroll/dist/modules/container-client.min.js",
153-
"mainDebug": "components/springroll/dist/modules/container-client.js",
154-
"bower": {
155-
"bellhop": "*"
156-
},
157-
"libraries":[
158-
"components/bellhop/dist/bellhop.min.js"
159-
],
160-
"librariesDebug": [
161-
"components/bellhop/dist/bellhop.js"
162-
]
163-
},
164162
{
165163
"id": "easeljs-display",
166164
"name": "EaselJS Display",
@@ -261,35 +259,31 @@
261259
},
262260
"libraries": "components/pixi.js/bin/pixi.js",
263261
"librariesDebug": "components/pixi.js/bin/pixi.dev.js",
264-
"display": "springroll.pixi.PixiDisplay",
265-
"default": false
262+
"display": "springroll.pixi.PixiDisplay"
266263
},
267264
{
268265
"id": "pixi-animation",
269266
"name": "Pixi.js Animation",
270267
"description": "Manage animation playback with sprites or Spine animations",
271268
"main": "components/springroll/dist/modules/pixi-animation.min.js",
272269
"mainDebug": "components/springroll/dist/modules/pixi-animation.js",
273-
"depends": ["pixi-display"],
274-
"default": false
270+
"depends": ["pixi-display"]
275271
},
276272
{
277273
"id": "pixi-ui",
278274
"name": "Pixi.js Interface",
279275
"description": "Drag management and basic buttons for Pixi.js",
280276
"main": "components/springroll/dist/modules/pixi-ui.min.js",
281277
"mainDebug": "components/springroll/dist/modules/pixi-ui.js",
282-
"depends": ["pixi-display"],
283-
"default": false
278+
"depends": ["pixi-display"]
284279
},
285280
{
286281
"id": "native-display",
287282
"name": "Native Display",
288283
"description": "Display plugin which uses Context2d to render the canvas",
289284
"main": "components/springroll/dist/modules/native-display.min.js",
290285
"mainDebug": "components/springroll/dist/modules/native-display.js",
291-
"display": "springroll.native.NativeDisplay",
292-
"default": false
286+
"display": "springroll.native.NativeDisplay"
293287
},
294288
{
295289
"id": "container",
@@ -308,8 +302,7 @@
308302
"librariesDebug": [
309303
"components/bellhop/dist/bellhop.js",
310304
"components/jquery/dist/jquery.js"
311-
],
312-
"default": false
305+
]
313306
}
314307
]
315308
}

deploy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "SpringRollStudio",
33
"description": "Application for SpringRoll projects",
4-
"version": "0.2.6",
4+
"version": "0.2.7",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/SpringRoll/SpringRollStudio"
@@ -24,13 +24,13 @@
2424
"dependencies": {
2525
"MD5": "~1.2.0",
2626
"ansi2html": "~0.0.1",
27+
"async": "^1.2.0",
2728
"connect": "^3.3.4",
2829
"fs-extra": "~0.12.0",
2930
"glob": "~4.0.6",
3031
"grunt-cli": "^0.1.13",
3132
"lodash": "^3.7.0",
3233
"node-watch": "~0.3.4",
33-
"npm": "^2.4.1",
3434
"replace": "~0.3.0",
3535
"request": "^2.48.0",
3636
"semver": "~4.0.3",

installer/win32.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# These three must be integers
55
!define VERSIONMAJOR 0
66
!define VERSIONMINOR 2
7-
!define VERSIONBUILD 6
7+
!define VERSIONBUILD 7
88
# These will be displayed by the "Click here for support information" link in "Add/Remove Programs"
99
# It is possible to use "mailto:" links in here to open the email client
1010
!define HELPURL "https://github.com/SpringRoll/SpringRollStudio/issues"

installer/win64.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# These three must be integers
55
!define VERSIONMAJOR 0
66
!define VERSIONMINOR 2
7-
!define VERSIONBUILD 6
7+
!define VERSIONBUILD 7
88
# These will be displayed by the "Click here for support information" link in "Add/Remove Programs"
99
# It is possible to use "mailto:" links in here to open the email client
1010
!define HELPURL "https://github.com/SpringRoll/SpringRollStudio/issues"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "SpringRollStudio",
33
"private": true,
4-
"version": "0.2.6",
4+
"version": "0.2.7",
55
"dependencies": {
66
"grunt": "^0.4.5",
77
"grunt-contrib-copy": "^0.8.0",

project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SpringRollStudio",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"main": [
55
"components/node-webkit-app/src/utils/UpdateChecker.js",
66
"components/node-webkit-app/src/utils/Browser.js",

src/js/new/NewProject.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,6 @@
180180
var displays = this.templates.displays();
181181
var template = this.templates.val();
182182

183-
if (!displays.length)
184-
{
185-
throw "Please select a renderer to use.";
186-
}
187-
188183
// Create a collection of selected modules
189184
var modules = [];
190185
var checkboxes = $(".module:checkbox:checked")
@@ -228,7 +223,7 @@
228223
libraries: libraries.concat(main),
229224
librariesDebug: librariesDebug.concat(mainDebug),
230225
librariesCopy: librariesCopy,
231-
displayClass: displays[0],
226+
displayClass: displays.length ? displays[0] : "",
232227
bower: bower
233228
},
234229
this._onCompleted.bind(this)

src/js/new/Template.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,21 @@
7272
this.rename = data.rename || null;
7373

7474
/**
75-
* The collection of parent modules that are required
75+
* The collection of parent modules that are required,
76+
* these are checked by default
7677
* @property {array} _required
7778
* @private
7879
*/
7980
this._required = data.required || [];
8081

82+
/**
83+
* The modules to exclude from the listing, these
84+
* will show up unchecked and disabled
85+
* @property {array} _disabled
86+
* @private
87+
*/
88+
this._disabled = data.disabled || [];
89+
8190
/**
8291
* Template to extend to
8392
* @property {string} extend
@@ -202,6 +211,22 @@
202211
}
203212
});
204213

214+
/**
215+
* Get the list of disabled module ids
216+
* @property {object} disabled
217+
*/
218+
Object.defineProperty(p, "disabled", {
219+
get: function()
220+
{
221+
var disabled = [];
222+
if (this.parent)
223+
{
224+
disabled = disabled.concat(this.parent.disabled);
225+
}
226+
return disabled.concat(this._disabled);
227+
}
228+
});
229+
205230
/**
206231
* Convert the template to JSON
207232
* @method toJSON

src/js/new/TemplateManager.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164

165165
var modules = template.modules,
166166
required = template.required,
167+
disabled = template.disabled,
167168
checkbox,
168169
id,
169170
input,
@@ -198,6 +199,12 @@
198199
input.attr('disabled', true)
199200
.prop('checked', true);
200201
}
202+
// Explicitly disable modules
203+
if (disabled.indexOf(module.id) > -1)
204+
{
205+
input.attr('disabled', true)
206+
.prop('checked', false);
207+
}
201208
if (module.display)
202209
{
203210
input.data('display', module.display);

0 commit comments

Comments
 (0)