|
4 | 4 | "main": "index.js",
|
5 | 5 | "license": "BSD-3-Clause",
|
6 | 6 | "scripts": {
|
7 |
| - "preci": "npm run clean && npm run lint && npm run dist", |
| 7 | + "preci": "npm run clean && npm run lint && npm run build", |
8 | 8 | "ci": "npm run test",
|
9 |
| - "clean": "rimraf dist coverage", |
| 9 | + "clean": "rimraf dist dist-e2e coverage", |
10 | 10 | "copy": "cpx \"src/**/*.{js,html,css}\" dist",
|
11 | 11 | "copy:watch": "cpx \"src/**/*.{js,html,css}\" dist --watch",
|
12 |
| - "build": "tsc -p src/", |
13 |
| - "build:watch": "tsc -p src/ -w", |
14 |
| - "dist": "concurrently \"npm run build\" \"npm run copy\"", |
| 12 | + |
| 13 | + "build": "concurrently --names \"tsc-src,tsc-e2e,copy\" \"npm run build:src\" \"npm run build:e2e\" \"npm run copy\"", |
| 14 | + "build:watch": "concurrently --names \"tsc-src,tsc-e2e,copy\" \"npm run build:src:watch\" \"npm run build:e2e:watch\" \"npm run copy:watch\"", |
| 15 | + |
| 16 | + "build:src": "tsc -p src/", |
| 17 | + "build:src:watch": "tsc -p src/ -w", |
| 18 | + "build:e2e": "tsc -p e2e/", |
| 19 | + "build:e2e:watch": "tsc -p e2e/ -w", |
| 20 | + |
15 | 21 | "lint": "tslint -c tslint.json \"./src/**/*.ts\"",
|
16 | 22 | "serve": "lite-server -c=bs-config.json",
|
17 |
| - "prestart": "npm run dist", |
18 |
| - "start": "concurrently \"npm run build:watch\" \"npm run copy:watch\" \"npm run serve\"", |
| 23 | + "start": "concurrently \"npm run build:watch\" \"npm run serve\"", |
19 | 24 | "test": "intern config=@wdcoverage"
|
20 | 25 | },
|
21 | 26 | "dependencies": {
|
|
0 commit comments