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:
Rafael Barbosa Lopes 2017-04-30 20:30:22 -03:00
parent e6fefdab24
commit 1b77dc4fa4
6 changed files with 924 additions and 896 deletions

View file

@ -1,20 +1,7 @@
dist/*
Gruntfile.js
node_modules/*
build/*
dist/*
docs/*
filters/*
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/*
merge/Intro.js
merge/Outro.js
merge/plugins/path/
merge/physics/p2/p2.js
merge/animation/creature/
src/physics/matter-js/
src/renderer/webgl/renderers/shapebatch/earcut.js

View file

@ -1,5 +1,5 @@
**/.*
bower_components/
resources/
dist/
docs/
merge/
examples/
plugins/

View file

@ -1,5 +1,5 @@
var fs = require('fs-extra');
var uuid = require('node-uuid');
var uuid = require('uuid');
var v = uuid.v1();

View file

@ -9,14 +9,15 @@
"bugs": "https://github.com/photonstorm/phaser/issues",
"license": "MIT",
"licenseUrl": "http://www.opensource.org/licenses/mit-license.php",
"main": "./build/phaser.js",
"main": "./src/phaser.js",
"typings": "./typings/index.d.ts",
"repository": {
"type": "git",
"url": "https://photonstorm@github.com/photonstorm/phaser.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "webpack",
"lint": "eslint --config .eslintrc.json \"src/**/*.js\""
},
"keywords": [
"2d",
@ -30,17 +31,11 @@
"typescript",
"web audio"
],
"dependencies": {
"json-loader": "^0.5.4",
"webpack": "2.1.0-beta.27"
},
"devDependencies": {
"copy-webpack-plugin": "^4.0.1",
"fs-extra": "^1.0.0",
"json-loader": "^0.5.4",
"node-uuid": "^1.4.7",
"webpack": "2.1.0-beta.27",
"webpack-dev-server": "2.1.0-beta.11",
"webpack-shell-plugin": "^0.4.3"
"eslint": "^3.19.0",
"fs-extra": "^3.0.0",
"uuid": "^3.0.1",
"webpack": "^2.4.1",
"webpack-shell-plugin": "^0.5.0"
}
}

View file

@ -5,14 +5,14 @@ const WebpackShellPlugin = require('webpack-shell-plugin');
module.exports = {
context: './src',
context: `${__dirname}/src/`,
entry: {
phaser: './phaser.js'
},
output: {
path: './dist',
path: `${__dirname}/dist/`,
filename: '[name].js',
library: 'Phaser',
libraryTarget: 'umd',

File diff suppressed because it is too large Load diff