Skip to content

Commit 8fe89b9

Browse files
Tyson BrownTyson Brown
Tyson Brown
authored and
Tyson Brown
committed
Added npm scripts
1 parent 82658dc commit 8fe89b9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

buildScripts/startMessage.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var chalk = require('chalk');
2+
3+
console.log(chalk.green('Starting app in dev mode..'));

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
"version": "1.0.0",
44
"description": "Work out how to do mordern javascript development",
55
"scripts": {
6-
6+
"prestart" : " node buildScripts/startMessage.js",
7+
"start" : "npm-run-all --parallel security-check open:src",
8+
"open:src" : "node buildScripts/srcServer.js",
9+
"security-check": "nsp check",
10+
"localtunnel": "lt --port 4000",
11+
"share": "npm-run-all --parallel open:src localtunnel"
712
},
813
"author": "Tyson Brown",
914
"license": "MIT",

0 commit comments

Comments
 (0)