mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Added new npm run help
script
This commit is contained in:
parent
b4f371edc5
commit
1bd0b4cb85
2 changed files with 21 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
"url": "https://photonstorm@github.com/photonstorm/phaser.git"
|
||||
},
|
||||
"scripts": {
|
||||
"help": "node scripts/help.js",
|
||||
"build": "webpack",
|
||||
"watch": "webpack --watch",
|
||||
"dist": "webpack --config webpack.dist.config.js",
|
||||
|
@ -42,6 +43,7 @@
|
|||
"fs-extra": "^6.0.0",
|
||||
"node-sloc": "^0.1.10",
|
||||
"uglifyjs-webpack-plugin": "^1.2.5",
|
||||
"vivid-cli": "^1.1.2",
|
||||
"webpack": "^4.6.0",
|
||||
"webpack-cli": "^2.1.2",
|
||||
"webpack-shell-plugin": "^0.5.0"
|
||||
|
|
19
scripts/help.js
Normal file
19
scripts/help.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
var v = require('vivid-cli');
|
||||
|
||||
v.log('{bgYellow}{black} __________.__ ________ ');
|
||||
v.log('{bgYellow}{black} \\______ \\ |__ _____ ______ ___________ \\_____ \\ ');
|
||||
v.log('{bgYellow}{black} | ___/ | \\\\__ \\ / ___// __ \\_ __ \\ _(__ < ');
|
||||
v.log('{bgYellow}{black} | | | Y \\/ __ \\_\\___ \\\\ ___/| | \\/ / \\ ');
|
||||
v.log('{bgYellow}{black} |____| |___| (____ /____ >\\___ >__| /______ / ');
|
||||
v.log('{bgYellow}{black} \\/ \\/ \\/ \\/ \\/ ');
|
||||
v.log('{bgYellow}{black} Available commands: ');
|
||||
|
||||
v.log('{white}* npm run {green}build {cyan} Build dev version of Phaser with Webpack');
|
||||
v.log('{white}* npm run {green}watch {cyan} Build dev & put Webpack into watch mode');
|
||||
v.log('{white}* npm run {green}dist {cyan} Build dist & min versions of Phaser');
|
||||
v.log('{white}* npm run {green}lint {cyan} ESLint check Phaser source');
|
||||
v.log('{white}* npm run {green}lintfix {cyan} ESLint check and fix Phaser source');
|
||||
v.log('{white}* npm run {green}sloc {cyan} Get source code & comments line count');
|
||||
v.log('{white}* npm run {green}bundleshaders {cyan} Convert vert/frag shaders to js');
|
||||
|
||||
v.log('{bgYellow}{black} https://phaser.io https://labs.phaser.io ');
|
Loading…
Reference in a new issue