From 52ff097cf8dfbe1065e5b0cd43540e00134707a8 Mon Sep 17 00:00:00 2001 From: Alvin Date: Thu, 16 Oct 2014 20:28:31 +0200 Subject: [PATCH] Created a new build using only p2 --- tasks/options/concat.js | 13 +++++++++++++ tasks/options/uglify.js | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/tasks/options/concat.js b/tasks/options/concat.js index ef0dac6f6..7daab70f3 100644 --- a/tasks/options/concat.js +++ b/tasks/options/concat.js @@ -54,6 +54,19 @@ module.exports = { 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 standalone: { options: { diff --git a/tasks/options/uglify.js b/tasks/options/uglify.js index b24a5eedf..269a94585 100644 --- a/tasks/options/uglify.js +++ b/tasks/options/uglify.js @@ -56,6 +56,14 @@ module.exports = { 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: { options: { sourceMap: true,