|
4 | 4 | "description": "JavaScript development environment Pluralsight course by Cory House",
|
5 | 5 | "scripts": {
|
6 | 6 | "prestart": "babel-node buildScripts/startMessage.js",
|
7 | | - "start":"npm-run-all --parallel security-check open:src lint:watch test:watch", |
| 7 | + "start":"npm-run-all --parallel security-check open:src lint:watch test:watch start-mockapi", |
8 | 8 | "open:src": "babel-node buildScripts/srcServer.js",
|
9 | 9 | "lint": "esw webpack.config.* src buildScripts --color",
|
10 | 10 | "lint:watch": "npm run lint -- --watch",
|
11 | 11 | "security-check": "nsp check",
|
12 | 12 | "localtunnel": "lt --port 3000 --subdomain kevin",
|
13 | 13 | "share": "npm-run-all --parallel open:src localtunnel",
|
14 | 14 | "test": "mocha --reporter progress buildScripts/testSetup.js \"src/**/*.test.js\"",
|
15 | | - "test:watch": "npm test -- --watch" |
| 15 | + "test:watch": "npm test -- --watch", |
| 16 | + "generate-mock-data": "babel-node buildScripts/generateMockData", |
| 17 | + "prestart-mockapi": "npm run generate-mock-data", |
| 18 | + "start-mockapi": "json-server --watch src/api/db.json --port 3001" |
16 | 19 | },
|
17 | 20 | "author": "Cory House",
|
18 | 21 | "license": "MIT",
|
|
0 commit comments