Created a new build using only p2

This commit is contained in:
Alvin 2014-10-16 20:28:31 +02:00
parent 3965862b82
commit 52ff097cf8
2 changed files with 21 additions and 0 deletions

View file

@ -54,6 +54,19 @@ module.exports = {
dest: '<%= compile_dir %>/phaser-no-physics.js' dest: '<%= compile_dir %>/phaser-no-physics.js'
}, },
// Phaser with just P2 physics included. Does include Pixi.
phaserP2Physics: {
options: {
banner: '<%= banner %>'
},
src: [
'<%= compile_dir %>/pixi.js',
require('../manifests/phaser-nophysics'),
'<%= compile_dir %>/p2.js'
],
dest: '<%= compile_dir %>/phaser-p2-physics.js'
},
// One ring to rule them all // One ring to rule them all
standalone: { standalone: {
options: { options: {

View file

@ -56,6 +56,14 @@ module.exports = {
dest: '<%= compile_dir %>/phaser-no-physics.min.js' dest: '<%= compile_dir %>/phaser-no-physics.min.js'
}, },
phaserP2Physics: {
options: {
banner: '/* Phaser (P2) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaserP2Physics.dest %>'],
dest: '<%= compile_dir %>/phaser-p2-physics.min.js'
},
standalone: { standalone: {
options: { options: {
sourceMap: true, sourceMap: true,