Add Dev and prod scripts
add npm-run-all for cross platfrom capability
Showing
| ... | @@ -7,13 +7,17 @@ | ... | @@ -7,13 +7,17 @@ |
| "url": "https://github.com/jcunanan05" | "url": "https://github.com/jcunanan05" | ||
| }, | }, | ||
| "license": "MIT", | "license": "MIT", | ||
| "scripts": { | |||
| "start": "node ./bin/www" | |||
| }, | |||
| "dependencies": { | "dependencies": { | ||
| "cookie-parser": "~1.4.4", | "cookie-parser": "~1.4.4", | ||
| "debug": "~2.6.9", | "debug": "~2.6.9", | ||
| "express": "~4.16.1", | "express": "~4.16.1", | ||
| "morgan": "~1.9.1" | "morgan": "~1.9.1", | ||
| "npm-run-all": "^4.1.5" | |||
| }, | |||
| "scripts": { | |||
| "start": "npm-run-all prod", | |||
| "server": "node ./bin/www", | |||
| "dev": "NODE_ENV=development npm-run-all server", | |||
| "prod": "NODE_ENV=production npm-run-all server" | |||
| } | } | ||
| } | } |
Please register or sign in to comment