mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +00:00
Upgraded development dependencies, some clean up.
This commit brings the following updates: - Removal of the following redundant or unused packages: - `json-loader`: Webpack 2 can handle JSON files by default; - `copy-webpack-plugin`: unused; - `webpack-dev-server`: unused. - Upgrade of the following packages to their latest versions: - `fs-extra`; - `webpack`: upgraded to the latest stable version; - `webpack-shell-plugin`. - Addition of the following packages: - `uuid`, in replacement of the deprecated `node-uuid`, with no changes to the public API. - `eslint`, with ESLint linting utility. - Addition of two runnable scripts to help development tasks: - `build`: An alias for running `webpack`. - `eslint`: Alias for running ESLint using the provided configuration in the project. - Fix the package entry point, so package consumers will be capable to use library in a future release. - Update `.npmignore`, so npm will include only the relevant package files. - Some clean-up and a few code fixes.
This commit is contained in:
parent
e6fefdab24
commit
1b77dc4fa4
6 changed files with 924 additions and 896 deletions
|
@ -1,20 +1,7 @@
|
||||||
dist/*
|
merge/Intro.js
|
||||||
Gruntfile.js
|
merge/Outro.js
|
||||||
node_modules/*
|
merge/plugins/path/
|
||||||
build/*
|
merge/physics/p2/p2.js
|
||||||
dist/*
|
merge/animation/creature/
|
||||||
docs/*
|
src/physics/matter-js/
|
||||||
filters/*
|
src/renderer/webgl/renderers/shapebatch/earcut.js
|
||||||
resources/*
|
|
||||||
tasks/*
|
|
||||||
typescript/*
|
|
||||||
src/Intro.js
|
|
||||||
src/Outro.js
|
|
||||||
src/pixi/*
|
|
||||||
src/plugins/path/*
|
|
||||||
src/physics/p2/p2.js
|
|
||||||
src/animation/creature/gl-matrix.js
|
|
||||||
src/animation/creature/CreatureMeshBone.js
|
|
||||||
src/gameobjects/Creature.js
|
|
||||||
src/stubs/*
|
|
||||||
src/physics/matter-js/*
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
**/.*
|
**/.*
|
||||||
bower_components/
|
dist/
|
||||||
resources/
|
docs/
|
||||||
|
merge/
|
||||||
examples/
|
examples/
|
||||||
plugins/
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var fs = require('fs-extra');
|
var fs = require('fs-extra');
|
||||||
var uuid = require('node-uuid');
|
var uuid = require('uuid');
|
||||||
|
|
||||||
var v = uuid.v1();
|
var v = uuid.v1();
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,15 @@
|
||||||
"bugs": "https://github.com/photonstorm/phaser/issues",
|
"bugs": "https://github.com/photonstorm/phaser/issues",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"licenseUrl": "http://www.opensource.org/licenses/mit-license.php",
|
"licenseUrl": "http://www.opensource.org/licenses/mit-license.php",
|
||||||
"main": "./build/phaser.js",
|
"main": "./src/phaser.js",
|
||||||
"typings": "./typings/index.d.ts",
|
"typings": "./typings/index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://photonstorm@github.com/photonstorm/phaser.git"
|
"url": "https://photonstorm@github.com/photonstorm/phaser.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"build": "webpack",
|
||||||
|
"lint": "eslint --config .eslintrc.json \"src/**/*.js\""
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"2d",
|
"2d",
|
||||||
|
@ -30,17 +31,11 @@
|
||||||
"typescript",
|
"typescript",
|
||||||
"web audio"
|
"web audio"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
|
||||||
"json-loader": "^0.5.4",
|
|
||||||
"webpack": "2.1.0-beta.27"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"copy-webpack-plugin": "^4.0.1",
|
"eslint": "^3.19.0",
|
||||||
"fs-extra": "^1.0.0",
|
"fs-extra": "^3.0.0",
|
||||||
"json-loader": "^0.5.4",
|
"uuid": "^3.0.1",
|
||||||
"node-uuid": "^1.4.7",
|
"webpack": "^2.4.1",
|
||||||
"webpack": "2.1.0-beta.27",
|
"webpack-shell-plugin": "^0.5.0"
|
||||||
"webpack-dev-server": "2.1.0-beta.11",
|
|
||||||
"webpack-shell-plugin": "^0.4.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,14 +5,14 @@ const WebpackShellPlugin = require('webpack-shell-plugin');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
context: './src',
|
context: `${__dirname}/src/`,
|
||||||
|
|
||||||
entry: {
|
entry: {
|
||||||
phaser: './phaser.js'
|
phaser: './phaser.js'
|
||||||
},
|
},
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
path: './dist',
|
path: `${__dirname}/dist/`,
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
library: 'Phaser',
|
library: 'Phaser',
|
||||||
libraryTarget: 'umd',
|
libraryTarget: 'umd',
|
||||||
|
|
1760
v3/yarn.lock
1760
v3/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue