Added live-server

Added start script
Add short "How to run" in readme
This commit is contained in:
@kfern
2017-08-30 13:33:53 +02:00
parent bf0e27242b
commit 567912583d
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -1,2 +1,6 @@
# phaser3-project-template # phaser3-project-template
A Phaser 3 Project Template A Phaser 3 Project Template
## How to run:
npm start
+3 -1
View File
@@ -4,7 +4,8 @@
"description": "A Phaser 3 Project Template", "description": "A Phaser 3 Project Template",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {
"build": "webpack" "build": "webpack",
"start": "npm run build && node_modules/.bin/live-server --port=8000"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -18,6 +19,7 @@
}, },
"homepage": "https://github.com/photonstorm/phaser3-project-template#readme", "homepage": "https://github.com/photonstorm/phaser3-project-template#readme",
"devDependencies": { "devDependencies": {
"live-server": "^1.2.0",
"phaser": "^3.0.0-alpha.2", "phaser": "^3.0.0-alpha.2",
"webpack": "^3.4.1" "webpack": "^3.4.1"
} }