Skip to content

Commit a8bc0c0

Browse files
authored
Merge pull request phaserjs#3013 from rblopes/upgrade-tooling
[Phaser 3] Upgrade of development dependencies
2 parents 9663a40 + 1b77dc4 commit a8bc0c0

6 files changed

Lines changed: 925 additions & 897 deletions

File tree

v3/.eslintignore

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
dist/*
2-
Gruntfile.js
3-
node_modules/*
4-
build/*
5-
dist/*
6-
docs/*
7-
filters/*
8-
resources/*
9-
tasks/*
10-
typescript/*
11-
src/Intro.js
12-
src/Outro.js
13-
src/pixi/*
14-
src/plugins/path/*
15-
src/physics/p2/p2.js
16-
src/animation/creature/gl-matrix.js
17-
src/animation/creature/CreatureMeshBone.js
18-
src/gameobjects/Creature.js
19-
src/stubs/*
20-
src/physics/matter-js/*
1+
merge/Intro.js
2+
merge/Outro.js
3+
merge/plugins/path/
4+
merge/physics/p2/p2.js
5+
merge/animation/creature/
6+
src/physics/matter-js/
7+
src/renderer/webgl/renderers/shapebatch/earcut.js

v3/.npmignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**/.*
2-
bower_components/
3-
resources/
2+
dist/
3+
docs/
4+
merge/
45
examples/
5-
plugins/

v3/create-checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var fs = require('fs-extra');
2-
var uuid = require('node-uuid');
2+
var uuid = require('uuid');
33

44
var v = uuid.v1();
55

v3/package.json

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
"bugs": "https://github.com/photonstorm/phaser/issues",
1010
"license": "MIT",
1111
"licenseUrl": "http://www.opensource.org/licenses/mit-license.php",
12-
"main": "./build/phaser.js",
12+
"main": "./src/phaser.js",
1313
"typings": "./typings/index.d.ts",
1414
"repository": {
1515
"type": "git",
1616
"url": "https://photonstorm@github.com/photonstorm/phaser.git"
1717
},
1818
"scripts": {
19-
"test": "echo \"Error: no test specified\" && exit 1"
19+
"build": "webpack",
20+
"lint": "eslint --config .eslintrc.json \"src/**/*.js\""
2021
},
2122
"keywords": [
2223
"2d",
@@ -30,17 +31,11 @@
3031
"typescript",
3132
"web audio"
3233
],
33-
"dependencies": {
34-
"json-loader": "^0.5.4",
35-
"webpack": "2.1.0-beta.27"
36-
},
3734
"devDependencies": {
38-
"copy-webpack-plugin": "^4.0.1",
39-
"fs-extra": "^1.0.0",
40-
"json-loader": "^0.5.4",
41-
"node-uuid": "^1.4.7",
42-
"webpack": "2.1.0-beta.27",
43-
"webpack-dev-server": "2.1.0-beta.11",
44-
"webpack-shell-plugin": "^0.4.3"
35+
"eslint": "^3.19.0",
36+
"fs-extra": "^3.0.0",
37+
"uuid": "^3.0.1",
38+
"webpack": "^2.4.1",
39+
"webpack-shell-plugin": "^0.5.0"
4540
}
4641
}

v3/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ const WebpackShellPlugin = require('webpack-shell-plugin');
55

66
module.exports = {
77

8-
context: './src',
8+
context: `${__dirname}/src/`,
99

1010
entry: {
1111
phaser: './phaser.js'
1212
},
1313

1414
output: {
15-
path: './dist',
15+
path: `${__dirname}/dist/`,
1616
filename: '[name].js',
1717
library: 'Phaser',
1818
libraryTarget: 'umd',

0 commit comments

Comments
 (0)