From 7d0e71a768087a584ceac298100792895a5c9177 Mon Sep 17 00:00:00 2001 From: Tamas Rehak Date: Wed, 30 Nov 2016 15:31:48 +0800 Subject: [PATCH] npm start on Windows Adding basic changes to start locally on Windows --- README.md | 2 +- package.json | 3 ++- scripts/run.cmd | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 scripts/run.cmd diff --git a/README.md b/README.md index 4be6556..ede4e5f 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ If you have any other issues or suggestions, go to https://github.com/halloffame 1. Fork and clone the project 2. `cd` into project 3. Run `npm install` # You will need to install node and npm if it is not already -4. Run `npm start` +4. Run `npm start` or `npm run start:win` on Windows 5. Make your changes locally and test them to make sure they work 6. Commit those changes and push to your forked repository 7. Make a new pull request diff --git a/package.json b/package.json index 46f2523..a7b8969 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "server.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "start": "scripts/run.sh" + "start": "scripts/run.sh", + "start:win": "scripts\\run.cmd" }, "repository": { "type": "git", diff --git a/scripts/run.cmd b/scripts/run.cmd new file mode 100644 index 0000000..79ee323 --- /dev/null +++ b/scripts/run.cmd @@ -0,0 +1,3 @@ + +explorer http://localhost:3000/ +node server.js