Skip to content

Commit 24e8963

Browse files
committed
Adding new build file: Phaser + Arcade Physics + Ninja physics.
1 parent 5eedc4c commit 24e8963

5 files changed

Lines changed: 26 additions & 17 deletions

File tree

tasks/manifests/phaser-nophysics.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"src/core/Group.js",
2525
"src/core/World.js",
2626
"src/core/FlexGrid.js",
27+
"src/core/FlexLayer.js",
2728
"src/core/ScaleManager.js",
2829
"src/core/Game.js",
2930

tasks/options/concat.js

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,22 @@ module.exports = {
3636
dest: '<%= compile_dir %>/phaser-arcade-physics.js'
3737
},
3838

39-
phaserNoPhysics: {
39+
// Phaser with Pixi, Arcade Physics and Ninja Physics, but no p2 libs
40+
phaserNinjaPhysics: {
4041
options: {
4142
banner: '<%= banner %>'
4243
},
43-
src: ['<%= compile_dir %>/pixi.js', require('../manifests/phaser-nophysics')],
44-
dest: '<%= compile_dir %>/phaser-no-physics.js'
44+
src: ['<%= compile_dir %>/pixi.js', '<%= compile_dir %>/phaser-no-libs.js', '<%= compile_dir %>/ninja.js'],
45+
dest: '<%= compile_dir %>/phaser-ninja-physics.js'
4546
},
4647

47-
// One ring to rule them all, with ninja physics
48-
/*
49-
standalone: {
48+
phaserNoPhysics: {
5049
options: {
5150
banner: '<%= banner %>'
5251
},
53-
src: [
54-
'<%= compile_dir %>/pixi.js',
55-
'<%= compile_dir %>/phaser-no-libs.js',
56-
'<%= compile_dir %>/ninja.js',
57-
'<%= compile_dir %>/p2.js'
58-
],
59-
dest: '<%= compile_dir %>/phaser.js'
60-
}
61-
*/
52+
src: ['<%= compile_dir %>/pixi.js', require('../manifests/phaser-nophysics')],
53+
dest: '<%= compile_dir %>/phaser-no-physics.js'
54+
},
6255

6356
// One ring to rule them all
6457
standalone: {

tasks/options/copy.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,22 @@ module.exports = {
77

88
{ src: ['dist/p2.js'], dest: 'build/custom/p2.js' },
99
{ src: ['dist/p2.min.js'], dest: 'build/custom/p2.min.js' },
10+
1011
{ src: ['dist/phaser-no-libs.js'], dest: 'build/custom/phaser-no-libs.js' },
1112
{ src: ['dist/phaser-no-libs.min.js'], dest: 'build/custom/phaser-no-libs.min.js' },
13+
1214
{ src: ['dist/pixi.js'], dest: 'build/custom/pixi.js' },
1315
{ src: ['dist/pixi.min.js'], dest: 'build/custom/pixi.min.js' },
16+
1417
{ src: ['dist/ninja.js'], dest: 'build/custom/ninja.js' },
1518
{ src: ['dist/ninja.min.js'], dest: 'build/custom/ninja.min.js' },
19+
1620
{ src: ['dist/phaser-arcade-physics.js'], dest: 'build/custom/phaser-arcade-physics.js' },
1721
{ src: ['dist/phaser-arcade-physics.min.js'], dest: 'build/custom/phaser-arcade-physics.min.js' },
22+
23+
{ src: ['dist/phaser-ninja-physics.js'], dest: 'build/custom/phaser-ninja-physics.js' },
24+
{ src: ['dist/phaser-ninja-physics.min.js'], dest: 'build/custom/phaser-ninja-physics.min.js' },
25+
1826
{ src: ['dist/phaser-no-physics.js'], dest: 'build/custom/phaser-no-physics.js' },
1927
{ src: ['dist/phaser-no-physics.js'], dest: 'build/custom/phaser-no-physics.min.js' }
2028
]

tasks/options/jshint.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ module.exports = {
66
'!src/Intro.js',
77
'!src/Outro.js',
88
'!src/pixi/**/*',
9-
'!src/physics/p2/p2.js',
10-
'!plugins/AStar.js'
9+
'!src/physics/p2/p2.js'
1110
],
1211
options: { jshintrc: '.jshintrc' }
1312
},

tasks/options/uglify.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ module.exports = {
4040
dest: '<%= compile_dir %>/phaser-arcade-physics.min.js'
4141
},
4242

43+
phaserNinjaPhysics: {
44+
options: {
45+
banner: '/* Phaser (NJ) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
46+
},
47+
src: ['<%= concat.phaserNinjaPhysics.dest %>'],
48+
dest: '<%= compile_dir %>/phaser-ninja-physics.min.js'
49+
},
50+
4351
phaserNoPhysics: {
4452
options: {
4553
banner: '/* Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'

0 commit comments

Comments
 (0)