Working through the new build scripts.

This commit is contained in:
photonstorm 2015-02-19 05:01:50 +00:00
parent cbac770aed
commit 9c46027340
7 changed files with 611 additions and 114 deletions

View file

@ -8,6 +8,7 @@ module.exports = function (grunt) {
config: {
release_dir: 'build',
compile_dir: 'dist',
modules_dir: 'dist/modules',
docs_dir: 'docs',
banner: require('fs').readFileSync(__dirname + '/tasks/banner.txt', 'utf8')
}
@ -17,11 +18,94 @@ module.exports = function (grunt) {
grunt.registerTask('default', ['build']);
grunt.registerTask('custom', 'Build a custom version of Phaser', function(arg) {
var modules = {
'keyboard': 'Keyboard Input',
'gamepad': 'Gamepad Input',
'bitmapdata': 'BitmapData',
'graphics': 'Graphics',
'rendertexture': 'RenderTextures',
'text': 'Text Game Object',
'tweens': 'Tween Manager',
'sound': 'Sound Manager',
'particles': 'Particle System',
'debug': 'Debug System',
'tilemap': 'Tilemaps',
'arcade': 'Arcade Physics',
'p2': 'P2 Physics',
'nophysics': 'Exclude all physics systems, tilemaps and particles'
};
var autoExclude = {
'retrofont': 'RetroFont Game Object',
'ninja': 'Ninja Physics'
}
grunt.log.writeln("----------------------------");
grunt.log.writeln("Building Phaser " + grunt.config.get('package.version') + '-custom');
grunt.log.writeln("----------------------------");
if (!grunt.option('exclude'))
{
grunt.log.errorlns("No custom build options were specified.");
grunt.log.writeln("\nUse --exclude to select which of the following modules to exclude:\n");
for (var key in modules)
{
grunt.log.writeln(key + ' - ' + modules[key]);
}
grunt.log.writeln("\nThe following are excluded automatically. Use --include to include them:\n");
for (var key in autoExclude)
{
grunt.log.writeln(key + ' - ' + autoExclude[key]);
}
grunt.log.writeln("\nFor example: --exclude p2,tilemap --include retrofont\n");
grunt.log.writeln("Note that some modules have dependencies on others.");
}
else
{
grunt.log.writeln("Excluding modules:\n");
var excludes = grunt.option('exclude').split(',');
for (var i = 0; i < excludes.length; i++)
{
if (modules[excludes[i]])
{
grunt.log.writeln("* " + excludes[i] + ' - ' + modules[excludes[i]]);
}
else
{
grunt.fail.fatal("Unknown module '" + excludes[i] + "'");
}
}
grunt.log.writeln("Building blah blah:\n");
}
});
grunt.registerTask('test', ['clean:dist', 'concat', 'uglify']);
grunt.registerTask('build', ['clean:dist', 'jshint', 'concat', 'uglify']);
grunt.registerTask('dist', ['replace:pixi', 'replace:p2', 'build', 'copy']);
grunt.registerTask('docs', [ 'clean:docs', 'pixidoc', 'jsdoc:html', 'replace:docs', 'clean:out']);
grunt.registerTask('docs', ['clean:docs', 'pixidoc', 'jsdoc:html', 'replace:docs', 'clean:out']);
grunt.registerTask('tsdocs', ['clean:out', 'pixidoc', 'gitclone:plugins', 'jsdoc:json', 'buildtsdoc:pixi', 'buildtsdoc:phaser', 'replace:phasertsdefheader', 'clean:out']);
};

View file

@ -1,33 +1,22 @@
<?php
if (!isset($path))
{
$path = '..';
}
if (!isset($path)) { $path = '..'; }
if (!isset($p2))
{
$p2 = true;
}
if (!isset($box2d))
{
$box2d = false;
}
if (!isset($ninja))
{
$ninja = false;
}
if (!isset($arcade))
{
$arcade = true;
}
if (!isset($tilemap))
{
$tilemap = true;
}
if (!isset($keyboard)) { $keyboard = true; }
if (!isset($gamepad)) { $gamepad = true; }
if (!isset($bitmapdata)) { $bitmapdata = true; }
if (!isset($graphics)) { $graphics = true; }
if (!isset($rendertexture)) { $rendertexture = true; }
if (!isset($text)) { $text = true; }
if (!isset($retrofont)) { $retrofont = true; }
if (!isset($tweens)) { $tweens = true; }
if (!isset($sound)) { $sound = true; }
if (!isset($particles)) { $particles = true; }
if (!isset($debug)) { $debug = true; }
if (!isset($tilemap)) { $tilemap = true; }
if (!isset($arcade)) { $arcade = true; }
if (!isset($p2)) { $p2 = true; }
if (!isset($ninja)) { $ninja = false; }
if (!isset($box2d)) { $box2d = false; }
if (isset($nophysics))
{
@ -36,6 +25,7 @@
$ninja = false;
$arcade = false;
$tilemap = false;
$particles = false;
}
if ($p2)
@ -126,17 +116,37 @@
<script src="$path/src/core/Game.js"></script>
<script src="$path/src/input/Input.js"></script>
<script src="$path/src/input/Key.js"></script>
<script src="$path/src/input/Keyboard.js"></script>
<script src="$path/src/input/Mouse.js"></script>
<script src="$path/src/input/MSPointer.js"></script>
<script src="$path/src/input/Pointer.js"></script>
<script src="$path/src/input/Touch.js"></script>
<script src="$path/src/input/InputHandler.js"></script>
EOL;
if ($keyboard)
{
echo <<<EOL
<script src="$path/src/input/Key.js"></script>
<script src="$path/src/input/Keyboard.js"></script>
EOL;
}
if ($gamepad)
{
echo <<<EOL
<script src="$path/src/input/Gamepad.js"></script>
<script src="$path/src/input/SinglePad.js"></script>
<script src="$path/src/input/GamepadButton.js"></script>
<script src="$path/src/input/InputHandler.js"></script>
EOL;
}
echo <<<EOL
<script src="$path/src/gameobjects/components/Component.js"></script>
<script src="$path/src/gameobjects/components/Angle.js"></script>
<script src="$path/src/gameobjects/components/Animation.js"></script>
@ -147,6 +157,7 @@
<script src="$path/src/gameobjects/components/Crop.js"></script>
<script src="$path/src/gameobjects/components/Delta.js"></script>
<script src="$path/src/gameobjects/components/Destroy.js"></script>
<script src="$path/src/gameobjects/components/Events.js"></script>
<script src="$path/src/gameobjects/components/FixedToCamera.js"></script>
<script src="$path/src/gameobjects/components/Health.js"></script>
<script src="$path/src/gameobjects/components/InCamera.js"></script>
@ -160,23 +171,66 @@
<script src="$path/src/gameobjects/components/ScaleMinMax.js"></script>
<script src="$path/src/gameobjects/components/Smoothed.js"></script>
<script src="$path/src/gameobjects/Events.js"></script>
<script src="$path/src/gameobjects/GameObjectFactory.js"></script>
<script src="$path/src/gameobjects/GameObjectCreator.js"></script>
<script src="$path/src/gameobjects/BitmapData.js"></script>
<script src="$path/src/gameobjects/Sprite.js"></script>
<script src="$path/src/gameobjects/Image.js"></script>
<script src="$path/src/gameobjects/TileSprite.js"></script>
<script src="$path/src/gameobjects/Rope.js"></script>
<script src="$path/src/gameobjects/Text.js"></script>
<script src="$path/src/gameobjects/BitmapText.js"></script>
<script src="$path/src/gameobjects/Button.js"></script>
<script src="$path/src/gameobjects/Graphics.js"></script>
<script src="$path/src/gameobjects/RenderTexture.js"></script>
<script src="$path/src/gameobjects/SpriteBatch.js"></script>
<script src="$path/src/gameobjects/RetroFont.js"></script>
<script src="$path/src/gameobjects/Particle.js"></script>
EOL;
if ($bitmapdata)
{
echo <<<EOL
<script src="$path/src/gameobjects/BitmapData.js"></script>
EOL;
}
if ($graphics)
{
echo <<<EOL
<script src="$path/src/gameobjects/Graphics.js"></script>
EOL;
}
if ($rendertexture)
{
echo <<<EOL
<script src="$path/src/gameobjects/RenderTexture.js"></script>
EOL;
}
if ($text)
{
echo <<<EOL
<script src="$path/src/gameobjects/Text.js"></script>
<script src="$path/src/gameobjects/BitmapText.js"></script>
EOL;
}
if ($retrofont && $rendertexture)
{
echo <<<EOL
<script src="$path/src/gameobjects/RetroFont.js"></script>
EOL;
}
echo <<<EOL
<script src="$path/src/system/Device.js"></script>
<script src="$path/src/system/DOM.js"></script>
<script src="$path/src/system/Canvas.js"></script>
@ -188,11 +242,30 @@
<script src="$path/src/net/Net.js"></script>
EOL;
if ($tweens)
{
echo <<<EOL
<script src="$path/src/tween/TweenManager.js"></script>
<script src="$path/src/tween/Tween.js"></script>
<script src="$path/src/tween/TweenData.js"></script>
<script src="$path/src/tween/Easing.js"></script>
EOL;
}
else
{
echo <<<EOL
<script src="$path/src/stubs/TweenManager.js"></script>
EOL;
}
echo <<<EOL
<script src="$path/src/time/Time.js"></script>
<script src="$path/src/time/Timer.js"></script>
<script src="$path/src/time/TimerEvent.js"></script>
@ -207,53 +280,94 @@
<script src="$path/src/loader/Loader.js"></script>
<script src="$path/src/loader/LoaderParser.js"></script>
EOL;
if ($sound)
{
echo <<<EOL
<script src="$path/src/sound/AudioSprite.js"></script>
<script src="$path/src/sound/Sound.js"></script>
<script src="$path/src/sound/SoundManager.js"></script>
EOL;
}
else
{
echo <<<EOL
<script src="$path/src/stubs/SoundManager.js"></script>
EOL;
}
if ($debug)
{
echo <<<EOL
<script src="$path/src/utils/Debug.js"></script>
EOL;
}
echo <<<EOL
<script src="$path/src/utils/ArraySet.js"></script>
<script src="$path/src/utils/LinkedList.js"></script>
<script src="$path/src/utils/ArrayUtils.js"></script>
<script src="$path/src/utils/Debug.js"></script>
<script src="$path/src/utils/Color.js"></script>
<script src="$path/src/physics/Physics.js"></script>
<script src="$path/src/particles/Particles.js"></script>
EOL;
if ($particles && $arcade)
{
echo <<<EOL
<script src="$path/src/particles/arcade/ArcadeParticles.js"></script>
<script src="$path/src/particles/arcade/Emitter.js"></script>
<script src="$path/src/PixiDefaults.js"></script>
EOL;
}
if ($tilemap)
{
echo <<<EOL
<script src="$path/src/tilemap/Tile.js"></script>
<script src="$path/src/tilemap/Tilemap.js"></script>
<script src="$path/src/tilemap/TilemapLayer.js"></script>
<script src="$path/src/tilemap/TilemapParser.js"></script>
<script src="$path/src/tilemap/Tileset.js"></script>
EOL;
}
if ($arcade)
{
echo <<<EOL
<script src="$path/src/physics/arcade/World.js"></script>
<script src="$path/src/physics/arcade/Body.js"></script>
EOL;
}
if ($tilemap && $arcade)
{
echo <<<EOL
<script src="$path/src/physics/arcade/TilemapCollision.js"></script>
EOL;
}
if ($p2)
{
echo <<<EOL
<script src="$path/src/physics/p2/World.js"></script>
<script src="$path/src/physics/p2/FixtureList.js"></script>
<script src="$path/src/physics/p2/PointProxy.js"></script>
@ -270,37 +384,42 @@ EOL;
<script src="$path/src/physics/p2/LockConstraint.js"></script>
<script src="$path/src/physics/p2/PrismaticConstraint.js"></script>
<script src="$path/src/physics/p2/RevoluteConstraint.js"></script>
EOL;
}
if ($ninja)
{
echo <<<EOL
<script src="$path/src/physics/arcade/World.js"></script>
<script src="$path/src/physics/arcade/Body.js"></script>
<script src="$path/src/physics/ninja/World.js"></script>
<script src="$path/src/physics/ninja/Body.js"></script>
<script src="$path/src/physics/ninja/AABB.js"></script>
<script src="$path/src/physics/ninja/Tile.js"></script>
<script src="$path/src/physics/ninja/Circle.js"></script>
EOL;
}
if ($box2d)
{
echo <<<EOL
<script src="$box2dpath/World.js"></script>
<script src="$box2dpath/Body.js"></script>
<script src="$box2dpath/PointProxy.js"></script>
<script src="$box2dpath/DefaultDebugDraw.js"></script>
<script src="$box2dpath/DefaultContactListener.js"></script>
<script src="$box2dpath/Polygon.js"></script>
EOL;
}
echo <<<EOL
<script src="$path/src/PixiDefaults.js"></script>
EOL;
if (isset($custom))
{
for ($i = 0; $i < count($custom); $i++)

View file

@ -1,7 +1,7 @@
module.exports = {
docs: ['<%= docs_dir %>/*'],
dist: ['<%= compile_dir %>/*'],
dist: ['<%= compile_dir %>/*.js', '<%= compile_dir %>/modules/*.js'],
out: ['out']
};

View file

@ -1,23 +1,158 @@
module.exports = {
// Our custom version of p2
p2: {
src: require('../manifests/p2'),
dest: '<%= compile_dir %>/p2.js'
animation: {
src: require('../manifests/animation'),
dest: '<%= modules_dir %>/animation.js'
},
components: {
src: require('../manifests/components'),
dest: '<%= modules_dir %>/components.js'
},
core: {
src: require('../manifests/core'),
dest: '<%= modules_dir %>/core.js'
},
// Game Objects
display: {
src: require('../manifests/gameobjects.display'),
dest: '<%= modules_dir %>/gameobjects.display.js'
},
retrofont: {
src: require('../manifests/gameobjects.retrofont'),
dest: '<%= modules_dir %>/gameobjects.retrofont.js'
},
text: {
src: require('../manifests/gameobjects.text'),
dest: '<%= modules_dir %>/gameobjects.text.js'
},
textures: {
src: require('../manifests/gameobjects.textures'),
dest: '<%= modules_dir %>/gameobjects.textures.js'
},
geom: {
src: require('../manifests/geom'),
dest: '<%= modules_dir %>/geom.js'
},
// Input
input: {
src: require('../manifests/input'),
dest: '<%= modules_dir %>/input.js'
},
gamepad: {
src: require('../manifests/input.gamepad'),
dest: '<%= modules_dir %>/input.gamepad.js'
},
keyboard: {
src: require('../manifests/input.keyboard'),
dest: '<%= modules_dir %>/input.keyboard.js'
},
intro: {
src: require('../manifests/intro'),
dest: '<%= modules_dir %>/intro.js'
},
loader: {
src: require('../manifests/loader'),
dest: '<%= modules_dir %>/loader.js'
},
math: {
src: require('../manifests/math'),
dest: '<%= modules_dir %>/math.js'
},
net: {
src: require('../manifests/net'),
dest: '<%= modules_dir %>/net.js'
},
outro: {
src: require('../manifests/outro'),
dest: '<%= modules_dir %>/outro.js'
},
particles: {
src: require('../manifests/particles'),
dest: '<%= modules_dir %>/particles.js'
},
// Physics
physics: {
src: require('../manifests/physics'),
dest: '<%= modules_dir %>/physics.js'
},
arcadeNoTilemap: {
src: require('../manifests/physics.arcade.no-tilemap'),
dest: '<%= modules_dir %>/physics.arcade.no-tilemap.js'
},
arcade: {
src: require('../manifests/physics.arcade.tilemap'),
dest: '<%= modules_dir %>/physics.arcade.tilemap.js'
},
ninja: {
src: require('../manifests/physics.ninja'),
dest: '<%= modules_dir %>/physics.ninja.js'
},
p2: {
src: require('../manifests/physics.p2'),
dest: '<%= modules_dir %>/physics.p2.js'
},
// Our custom version of Pixi
pixi: {
src: require('../manifests/pixi'),
dest: '<%= compile_dir %>/pixi.js'
dest: '<%= modules_dir %>/pixi.js'
},
// Our custom version of Ninja Physics
ninja: {
src: require('../manifests/ninja'),
dest: '<%= compile_dir %>/ninja.js'
sound: {
src: require('../manifests/sound'),
dest: '<%= modules_dir %>/sound.js'
},
system: {
src: require('../manifests/system'),
dest: '<%= modules_dir %>/system.js'
},
tilemaps: {
src: require('../manifests/tilemaps'),
dest: '<%= modules_dir %>/tilemaps.js'
},
time: {
src: require('../manifests/time'),
dest: '<%= modules_dir %>/time.js'
},
tweens: {
src: require('../manifests/tweens'),
dest: '<%= modules_dir %>/tweens.js'
},
utils: {
src: require('../manifests/utils'),
dest: '<%= modules_dir %>/utils.js'
},
/*
// Phaser without Pixi, P2 or Ninja Physics (does include Arcade Physics)
phaser: {
options: {
@ -80,4 +215,6 @@ module.exports = {
dest: '<%= compile_dir %>/phaser.js'
}
*/
};

3
tasks/options/log.js Normal file
View file

@ -0,0 +1,3 @@
module.exports = {
};

View file

@ -0,0 +1,76 @@
module.exports = {
p2: {
options: {
banner: '/* p2.js custom build for Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.p2.dest %>'],
dest: '<%= compile_dir %>/p2.min.js'
},
pixi: {
options: {
banner: '/* Pixi.js custom build for Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.pixi.dest %>'],
dest: '<%= compile_dir %>/pixi.min.js'
},
ninja: {
options: {
banner: '/* Ninja Physics for Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.ninja.dest %>'],
dest: '<%= compile_dir %>/ninja.min.js'
},
phaser: {
options: {
banner: '/* Phaser (no libs) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaser.dest %>'],
dest: '<%= compile_dir %>/phaser-no-libs.min.js'
},
phaserArcadePhysics: {
options: {
banner: '/* Phaser (AP) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaserArcadePhysics.dest %>'],
dest: '<%= compile_dir %>/phaser-arcade-physics.min.js'
},
phaserNinjaPhysics: {
options: {
banner: '/* Phaser (NJ) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaserNinjaPhysics.dest %>'],
dest: '<%= compile_dir %>/phaser-ninja-physics.min.js'
},
phaserNoPhysics: {
options: {
banner: '/* Phaser (NP) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaserNoPhysics.dest %>'],
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,
sourceMapName: '<%= compile_dir %>/phaser.map',
banner: '/* Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.standalone.dest %>'],
dest: '<%= compile_dir %>/phaser.min.js'
}
};

View file

@ -1,76 +1,154 @@
module.exports = {
/*
animation: {
src: ['<%= concat.animation.dest %>'],
dest: '<%= compile_dir %>/animation.min.js'
},
components: {
src: ['<%= concat.components.dest %>'],
dest: '<%= compile_dir %>/components.min.js'
},
core: {
src: ['<%= concat.core.dest %>'],
dest: '<%= compile_dir %>/core.min.js'
},
display: {
src: ['<%= concat.display.dest %>'],
dest: '<%= compile_dir %>/gameobjects.display.min.js'
},
retrofont: {
src: ['<%= concat.retrofont.dest %>'],
dest: '<%= compile_dir %>/gameobjects.retrofont.min.js'
},
text: {
src: ['<%= concat.text.dest %>'],
dest: '<%= compile_dir %>/gameobjects.text.min.js'
},
textures: {
src: ['<%= concat.textures.dest %>'],
dest: '<%= compile_dir %>/gameobjects.textures.min.js'
},
geom: {
src: ['<%= concat.geom.dest %>'],
dest: '<%= compile_dir %>/geom.min.js'
},
input: {
src: ['<%= concat.input.dest %>'],
dest: '<%= compile_dir %>/input.min.js'
},
gamepad: {
src: ['<%= concat.gamepad.dest %>'],
dest: '<%= compile_dir %>/input.gamepad.min.js'
},
keyboard: {
src: ['<%= concat.keyboard.dest %>'],
dest: '<%= compile_dir %>/input.keyboard.min.js'
},
intro: {
src: ['<%= concat.intro.dest %>'],
dest: '<%= compile_dir %>/intro.min.js'
},
loader: {
src: ['<%= concat.loader.dest %>'],
dest: '<%= compile_dir %>/loader.min.js'
},
math: {
src: ['<%= concat.math.dest %>'],
dest: '<%= compile_dir %>/math.min.js'
},
net: {
src: ['<%= concat.net.dest %>'],
dest: '<%= compile_dir %>/net.min.js'
},
outro: {
src: ['<%= concat.outro.dest %>'],
dest: '<%= compile_dir %>/outro.min.js'
},
particles: {
src: ['<%= concat.particles.dest %>'],
dest: '<%= compile_dir %>/particles.min.js'
},
physics: {
src: ['<%= concat.physics.dest %>'],
dest: '<%= compile_dir %>/physics.min.js'
},
arcadeNoTilemap: {
src: ['<%= concat.arcadeNoTilemap.dest %>'],
dest: '<%= compile_dir %>/physics.arcade.no-tilemap.min.js'
},
arcade: {
src: ['<%= concat.arcade.dest %>'],
dest: '<%= compile_dir %>/physics.arcade.tilemap.min.js'
},
ninja: {
src: ['<%= concat.ninja.dest %>'],
dest: '<%= compile_dir %>/physics.ninja.min.js'
},
p2: {
options: {
banner: '/* p2.js custom build for Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.p2.dest %>'],
dest: '<%= compile_dir %>/p2.min.js'
dest: '<%= compile_dir %>/physics.p2.min.js'
},
pixi: {
options: {
banner: '/* Pixi.js custom build for Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.pixi.dest %>'],
dest: '<%= compile_dir %>/pixi.min.js'
},
ninja: {
options: {
banner: '/* Ninja Physics for Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.ninja.dest %>'],
dest: '<%= compile_dir %>/ninja.min.js'
sound: {
src: ['<%= concat.sound.dest %>'],
dest: '<%= compile_dir %>/sound.min.js'
},
phaser: {
options: {
banner: '/* Phaser (no libs) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaser.dest %>'],
dest: '<%= compile_dir %>/phaser-no-libs.min.js'
system: {
src: ['<%= concat.system.dest %>'],
dest: '<%= compile_dir %>/system.min.js'
},
phaserArcadePhysics: {
options: {
banner: '/* Phaser (AP) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaserArcadePhysics.dest %>'],
dest: '<%= compile_dir %>/phaser-arcade-physics.min.js'
tilemaps: {
src: ['<%= concat.tilemaps.dest %>'],
dest: '<%= compile_dir %>/tilemaps.min.js'
},
phaserNinjaPhysics: {
options: {
banner: '/* Phaser (NJ) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaserNinjaPhysics.dest %>'],
dest: '<%= compile_dir %>/phaser-ninja-physics.min.js'
time: {
src: ['<%= concat.time.dest %>'],
dest: '<%= compile_dir %>/time.min.js'
},
phaserNoPhysics: {
options: {
banner: '/* Phaser (NP) v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.phaserNoPhysics.dest %>'],
dest: '<%= compile_dir %>/phaser-no-physics.min.js'
tweens: {
src: ['<%= concat.tweens.dest %>'],
dest: '<%= compile_dir %>/tweens.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,
sourceMapName: '<%= compile_dir %>/phaser.map',
banner: '/* Phaser v<%= package.version %> - http://phaser.io - @photonstorm - (c) 2014 Photon Storm Ltd. */\n'
},
src: ['<%= concat.standalone.dest %>'],
dest: '<%= compile_dir %>/phaser.min.js'
utils: {
src: ['<%= concat.utils.dest %>'],
dest: '<%= compile_dir %>/utils.min.js'
}
*/
};