mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 09:03:29 +00:00
83 lines
2.4 KiB
JavaScript
83 lines
2.4 KiB
JavaScript
module.exports = {
|
|
|
|
// Our custom version of p2
|
|
p2: {
|
|
src: require('../manifests/p2'),
|
|
dest: '<%= compile_dir %>/p2.js'
|
|
},
|
|
|
|
// Our custom version of Pixi
|
|
pixi: {
|
|
src: require('../manifests/pixi'),
|
|
dest: '<%= compile_dir %>/pixi.js'
|
|
},
|
|
|
|
// Our custom version of Ninja Physics
|
|
ninja: {
|
|
src: require('../manifests/ninja'),
|
|
dest: '<%= compile_dir %>/ninja.js'
|
|
},
|
|
|
|
// Phaser without Pixi, P2 or Ninja Physics (does include Arcade Physics)
|
|
phaser: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: require('../manifests/phaser'),
|
|
dest: '<%= compile_dir %>/phaser-no-libs.js'
|
|
},
|
|
|
|
// Phaser with Pixi and Arcade Physics, but no Ninja or P2 libs
|
|
phaserArcadePhysics: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: ['<%= compile_dir %>/pixi.js', '<%= compile_dir %>/phaser-no-libs.js'],
|
|
dest: '<%= compile_dir %>/phaser-arcade-physics.js'
|
|
},
|
|
|
|
// Phaser with Pixi, Arcade Physics and Ninja Physics, but no p2 libs
|
|
phaserNinjaPhysics: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: ['<%= compile_dir %>/pixi.js', '<%= compile_dir %>/phaser-no-libs.js', '<%= compile_dir %>/ninja.js'],
|
|
dest: '<%= compile_dir %>/phaser-ninja-physics.js'
|
|
},
|
|
|
|
// Phaser without P2, Ninja Physics or Arcade Physics. Does include Pixi. This is a stand-alone build.
|
|
phaserNoPhysics: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: ['<%= compile_dir %>/pixi.js', require('../manifests/phaser-nophysics')],
|
|
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: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: [
|
|
'<%= compile_dir %>/pixi.js',
|
|
'<%= compile_dir %>/phaser-no-libs.js',
|
|
'<%= compile_dir %>/p2.js'
|
|
],
|
|
dest: '<%= compile_dir %>/phaser.js'
|
|
}
|
|
|
|
};
|