Skip to content

Commit 52ff097

Browse files
committed
Created a new build using only p2
1 parent 3965862 commit 52ff097

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

tasks/options/concat.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ module.exports = {
5454
dest: '<%= compile_dir %>/phaser-no-physics.js'
5555
},
5656

57+
// Phaser with just P2 physics included. Does include Pixi.
58+
phaserP2Physics: {
59+
options: {
60+
banner: '<%= banner %>'
61+
},
62+
src: [
63+
'<%= compile_dir %>/pixi.js',
64+
require('../manifests/phaser-nophysics'),
65+
'<%= compile_dir %>/p2.js'
66+
],
67+
dest: '<%= compile_dir %>/phaser-p2-physics.js'
68+
},
69+
5770
// One ring to rule them all
5871
standalone: {
5972
options: {

tasks/options/uglify.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ module.exports = {
5656
dest: '<%= compile_dir %>/phaser-no-physics.min.js'
5757
},
5858

59+
phaserP2Physics: {
60+
options: {
61+
banner: '/* Phaser (P2) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
62+
},
63+
src: ['<%= concat.phaserP2Physics.dest %>'],
64+
dest: '<%= compile_dir %>/phaser-p2-physics.min.js'
65+
},
66+
5967
standalone: {
6068
options: {
6169
sourceMap: true,

0 commit comments

Comments
 (0)