diff --git a/tasks/manifests/phaser-nophysics.json b/tasks/manifests/phaser-nophysics.json new file mode 100644 index 000000000..4f5835dbd --- /dev/null +++ b/tasks/manifests/phaser-nophysics.json @@ -0,0 +1,98 @@ +[ + "src/Intro.js", + "src/Phaser.js", + "src/utils/Utils.js", + + "src/geom/Circle.js", + "src/geom/Point.js", + "src/geom/Rectangle.js", + "src/geom/Line.js", + "src/geom/Ellipse.js", + "src/geom/Polygon.js", + + "src/core/Camera.js", + "src/core/State.js", + "src/core/StateManager.js", + "src/core/LinkedList.js", + "src/core/ArrayList.js", + "src/core/Signal.js", + "src/core/SignalBinding.js", + "src/core/Filter.js", + "src/core/Plugin.js", + "src/core/PluginManager.js", + "src/core/Stage.js", + "src/core/Group.js", + "src/core/World.js", + "src/core/FlexGrid.js", + "src/core/ScaleManager.js", + "src/core/Game.js", + + "src/input/Input.js", + "src/input/Key.js", + "src/input/Keyboard.js", + "src/input/Mouse.js", + "src/input/MSPointer.js", + "src/input/Pointer.js", + "src/input/Touch.js", + "src/input/Gamepad.js", + "src/input/SinglePad.js", + "src/input/GamepadButton.js", + "src/input/InputHandler.js", + + "src/gameobjects/Events.js", + "src/gameobjects/GameObjectFactory.js", + "src/gameobjects/GameObjectCreator.js", + "src/gameobjects/BitmapData.js", + "src/gameobjects/Sprite.js", + "src/gameobjects/Image.js", + "src/gameobjects/TileSprite.js", + "src/gameobjects/Rope.js", + "src/gameobjects/Text.js", + "src/gameobjects/BitmapText.js", + "src/gameobjects/Button.js", + "src/gameobjects/Graphics.js", + "src/gameobjects/RenderTexture.js", + "src/gameobjects/SpriteBatch.js", + "src/gameobjects/RetroFont.js", + "src/gameobjects/Particle.js", + + "src/system/Canvas.js", + "src/system/Device.js", + "src/system/RequestAnimationFrame.js", + + "src/math/Math.js", + "src/math/RandomDataGenerator.js", + "src/math/QuadTree.js", + + "src/net/Net.js", + + "src/tween/TweenManager.js", + "src/tween/Tween.js", + "src/tween/Easing.js", + + "src/time/Time.js", + "src/time/Timer.js", + "src/time/TimerEvent.js", + + "src/animation/AnimationManager.js", + "src/animation/Animation.js", + "src/animation/Frame.js", + "src/animation/FrameData.js", + "src/animation/AnimationParser.js", + + "src/loader/Cache.js", + "src/loader/Loader.js", + "src/loader/LoaderParser.js", + + "src/sound/Sound.js", + "src/sound/SoundManager.js", + + "src/utils/Debug.js", + "src/utils/Color.js", + + "src/physics/Physics.js", + + "src/particles/Particles.js", + + "src/Outro.js" +] diff --git a/tasks/options/concat.js b/tasks/options/concat.js index 8b58c9724..8355f7d38 100644 --- a/tasks/options/concat.js +++ b/tasks/options/concat.js @@ -36,6 +36,14 @@ module.exports = { dest: '<%= compile_dir %>/phaser-arcade-physics.js' }, + phaserNoPhysics: { + options: { + banner: '<%= banner %>' + }, + src: ['<%= compile_dir %>/pixi.js', require('../manifests/phaser-nophysics')], + dest: '<%= compile_dir %>/phaser-no-physics.js' + }, + // One ring to rule them all, with ninja physics /* standalone: { diff --git a/tasks/options/copy.js b/tasks/options/copy.js index de212d911..3823cdf5d 100644 --- a/tasks/options/copy.js +++ b/tasks/options/copy.js @@ -14,7 +14,9 @@ module.exports = { { src: ['dist/ninja.js'], dest: 'build/custom/ninja.js' }, { src: ['dist/ninja.min.js'], dest: 'build/custom/ninja.min.js' }, { src: ['dist/phaser-arcade-physics.js'], dest: 'build/custom/phaser-arcade-physics.js' }, - { src: ['dist/phaser-arcade-physics.min.js'], dest: 'build/custom/phaser-arcade-physics.min.js' } + { src: ['dist/phaser-arcade-physics.min.js'], dest: 'build/custom/phaser-arcade-physics.min.js' }, + { src: ['dist/phaser-no-physics.js'], dest: 'build/custom/phaser-no-physics.js' }, + { src: ['dist/phaser-no-physics.js'], dest: 'build/custom/phaser-no-physics.min.js' } ] } }; diff --git a/tasks/options/uglify.js b/tasks/options/uglify.js index e0ed61b90..41d72535f 100644 --- a/tasks/options/uglify.js +++ b/tasks/options/uglify.js @@ -40,6 +40,14 @@ module.exports = { dest: '<%= compile_dir %>/phaser-arcade-physics.min.js' }, + phaserNoPhysics: { + options: { + banner: '/* Phaser 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' + }, + standalone: { options: { sourceMap: true,