Skip to content

Commit 000afb7

Browse files
committed
Split out rope and tilesprite as custom tasks.
1 parent 915a757 commit 000afb7

6 files changed

Lines changed: 15 additions & 11 deletions

File tree

Gruntfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function (grunt) {
3030

3131
var modules = {
3232

33-
'pixi': { 'description': 'Pixi.js (custom Phaser build)', 'optional': true, 'stub': false },
33+
'pixi': { 'description': 'Pixi.js (custom Phaser build)', 'optional': false, 'stub': false },
3434
'intro': { 'description': 'Phaser UMD wrapper', 'optional': true, 'stub': false },
3535
'phaser': { 'description': 'Phaser Globals', 'optional': false, 'stub': false },
3636
'geom': { 'description': 'Geometry Classes', 'optional': false, 'stub': false },
@@ -46,6 +46,8 @@ module.exports = function (grunt) {
4646
'text': { 'description': 'Text Game Object (inc. Web Font Support)', 'optional': true, 'stub': false },
4747
'bitmaptext': { 'description': 'BitmapText Game Object', 'optional': true, 'stub': false },
4848
'retrofont': { 'description': 'Retro Fonts Game Object', 'optional': true, 'stub': false },
49+
'rope': { 'description': 'Rope and Strip Game Object', 'optional': true, 'stub': false },
50+
'tilesprite': { 'description': 'Tile Sprite Game Object', 'optional': true, 'stub': false },
4951
'system': { 'description': 'System Classes', 'optional': false, 'stub': false },
5052
'math': { 'description': 'Math, QuadTree and RND', 'optional': false, 'stub': false },
5153
'net': { 'description': 'Network Class', 'optional': true, 'stub': true },
@@ -255,7 +257,7 @@ module.exports = function (grunt) {
255257

256258
grunt.registerTask('minimum', 'Phaser without any optional modules except Pixi', function() {
257259

258-
grunt.option('exclude', 'gamepad,keyboard,bitmapdata,graphics,rendertexture,text,bitmaptext,retrofont,net,tweens,sound,debug,arcade,ninja,p2,tilemaps,particles,creature,video');
260+
grunt.option('exclude', 'gamepad,keyboard,bitmapdata,graphics,rendertexture,text,bitmaptext,retrofont,net,tweens,sound,debug,arcade,ninja,p2,tilemaps,particles,creature,video,rope,tilesprite');
259261
grunt.option('filename', 'phaser-minimum');
260262
grunt.option('sourcemap', true);
261263
grunt.option('copy', false);

tasks/manifests/graphics.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[
2+
"src/pixi/primitives/Graphics.js",
3+
"src/pixi/primitives/GraphicsData.js",
24
"src/gameobjects/Graphics.js"
35
]

tasks/manifests/pixi.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@
3333
"src/pixi/renderers/canvas/CanvasRenderer.js",
3434
"src/pixi/renderers/canvas/CanvasGraphics.js",
3535

36-
"src/pixi/primitives/Graphics.js",
37-
"src/pixi/primitives/GraphicsData.js",
38-
39-
"src/pixi/extras/Strip.js",
40-
"src/pixi/extras/Rope.js",
41-
"src/pixi/extras/TilingSprite.js",
42-
4336
"src/pixi/textures/BaseTexture.js",
4437
"src/pixi/textures/Texture.js",
4538
"src/pixi/textures/RenderTexture.js",

tasks/manifests/rope.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[
2+
"src/pixi/extras/Strip.js",
3+
"src/pixi/extras/Rope.js",
4+
"src/gameobjects/Rope.js"
5+
]

tasks/manifests/system.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[
2-
32
"src/system/Device.js",
43
"src/system/DOM.js",
54
"src/system/Canvas.js",
65
"src/system/RequestAnimationFrame.js"
7-
86
]

tasks/manifests/tilesprite.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
"src/pixi/extras/TilingSprite.js"
3+
"src/gameobjects/TileSprite.js",
4+
]

0 commit comments

Comments
 (0)