mirror of
https://github.com/photonstorm/phaser
synced 2024-12-21 02:23:29 +00:00
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
var banner = require('fs').readFileSync(__dirname + '/../banner.txt', 'utf8');
|
|
|
|
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 with no bundled libs
|
|
phaser: {
|
|
options: {
|
|
banner: banner
|
|
},
|
|
src: require('../manifests/phaser'),
|
|
dest: '<%= compile_dir %>/phaser-no-libs.js'
|
|
},
|
|
|
|
// Phaser with pixi but no physics libs
|
|
phaserNoPhysics: {
|
|
options: {
|
|
banner: '<%= banner %>'
|
|
},
|
|
src: ['<%= compile_dir %>/pixi.js', '<%= compile_dir %>/phaser-no-libs.js'],
|
|
dest: '<%= compile_dir %>/phaser-no-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 %>/ninja.js',
|
|
'<%= compile_dir %>/p2.js'
|
|
],
|
|
dest: '<%= compile_dir %>/phaser.js'
|
|
}
|
|
|
|
};
|