mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Updated versions and moved scripts
This commit is contained in:
parent
c13c828dc4
commit
196fad18a0
4 changed files with 23 additions and 10 deletions
15
package.json
15
package.json
|
@ -20,7 +20,8 @@
|
|||
"dist": "webpack --config webpack.dist.config.js",
|
||||
"lint": "eslint --config .eslintrc.json \"src/**/*.js\"",
|
||||
"lintfix": "eslint --config .eslintrc.json \"src/**/*.js\" --fix",
|
||||
"sloc": "node-sloc \"./src\" --include-extensions \"js\""
|
||||
"sloc": "node-sloc \"./src\" --include-extensions \"js\"",
|
||||
"postinstall": "node scripts/support.js"
|
||||
},
|
||||
"keywords": [
|
||||
"2d",
|
||||
|
@ -36,16 +37,16 @@
|
|||
],
|
||||
"devDependencies": {
|
||||
"clean-webpack-plugin": "^0.1.19",
|
||||
"eslint": "^4.19.0",
|
||||
"fs-extra": "^5.0.0",
|
||||
"eslint": "^4.19.1",
|
||||
"fs-extra": "^6.0.0",
|
||||
"node-sloc": "^0.1.10",
|
||||
"raw-loader": "^0.5.1",
|
||||
"uglifyjs-webpack-plugin": "^1.2.4",
|
||||
"webpack": "^4.1.1",
|
||||
"webpack-cli": "^2.0.12",
|
||||
"uglifyjs-webpack-plugin": "^1.2.5",
|
||||
"webpack": "^4.6.0",
|
||||
"webpack-cli": "^2.1.2",
|
||||
"webpack-shell-plugin": "^0.5.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"eventemitter3": "^3.0.1"
|
||||
"eventemitter3": "^3.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,13 +6,16 @@ let sourceMap = './build/phaser.js.map';
|
|||
let dest = '../phaser3-examples/public/build/dev.js';
|
||||
let destMap = '../phaser3-examples/public/build/phaser.js.map';
|
||||
|
||||
/*
|
||||
let sourceCore = './build/phaser-core.js';
|
||||
let sourceMapCore = './build/phaser-core.js.map';
|
||||
let destCore = '../phaser3-examples/public/build/phaser-core.js';
|
||||
let destMapCore = '../phaser3-examples/public/build/phaser-core.js.map';
|
||||
*/
|
||||
|
||||
if (fs.existsSync(dest))
|
||||
{
|
||||
/*
|
||||
fs.copy(sourceMapCore, destMapCore, function (err) {
|
||||
|
||||
if (err)
|
||||
|
@ -30,6 +33,7 @@ if (fs.existsSync(dest))
|
|||
}
|
||||
|
||||
});
|
||||
*/
|
||||
|
||||
fs.copy(sourceMap, destMap, function (err) {
|
||||
|
9
scripts/support.js
Normal file
9
scripts/support.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
/* eslint-disable no-console */
|
||||
|
||||
const red = '\u001b[91m';
|
||||
const green = '\u001b[92m';
|
||||
const yellow = '\u001b[93m\u001b[1m';
|
||||
const reset = '\u001b[0m';
|
||||
|
||||
console.log(`${red}❤ ${green}Please help support Phaser development ${red}❤`);
|
||||
console.log(`${yellow}https://www.patreon.com/photonstorm/\n${reset}`);
|
|
@ -9,8 +9,7 @@ module.exports = {
|
|||
context: `${__dirname}/src/`,
|
||||
|
||||
entry: {
|
||||
phaser: './phaser.js',
|
||||
'phaser-core': './phaser-core.js'
|
||||
phaser: './phaser.js'
|
||||
},
|
||||
|
||||
output: {
|
||||
|
@ -40,7 +39,7 @@ module.exports = {
|
|||
"typeof WEBGL_RENDERER": JSON.stringify(true)
|
||||
}),
|
||||
|
||||
new WebpackShellPlugin({onBuildExit: 'node copy-to-examples.js'})
|
||||
new WebpackShellPlugin({onBuildExit: 'node scripts/copy-to-examples.js'})
|
||||
],
|
||||
|
||||
devtool: 'source-map'
|
||||
|
|
Loading…
Reference in a new issue