|
32 | 32 | "build": "npm-run-all build:*",
|
33 | 33 | "build:node": "npm run babel:node",
|
34 | 34 | "build:ui": "cd embark-ui && npm run build",
|
35 |
| - "clean": "rimraf dist embark-*.tgz package embark-ui/build", |
| 35 | + "check-no-prepare": "node scripts/check-no-prepare.js", |
| 36 | + "check-working-tree": "node scripts/check-working-tree.js", |
| 37 | + "clean": "npm-run-all clean:*", |
| 38 | + "clean:core": "rimraf dist embark-*.tgz package", |
| 39 | + "clean:ui": "cd embark-ui && npm run clean", |
36 | 40 | "eslint": "eslint",
|
37 |
| - "install:core": "yarn install", |
| 41 | + "install:core": "cross-env EMBARK_NO_PREPARE=t yarn install", |
38 | 42 | "install:ui": "cd embark-ui && yarn install",
|
39 | 43 | "install_all": "npm-run-all install:*",
|
40 | 44 | "lint": "npm-run-all lint:*",
|
41 | 45 | "lint:js": "npm-run-all lint:js:*",
|
42 |
| - "lint:js:core": "eslint babel.config.js bin/embark src/bin/ src/lib/", |
| 46 | + "lint:js:core": "eslint babel.config.js bin/embark scripts/ src/bin/ src/lib/", |
43 | 47 | "lint:js:ui": "cd embark-ui && npm run lint",
|
44 | 48 | "lint:ts": "tslint -c tslint.json 'src/**/*.ts'",
|
45 |
| - "prepublishOnly": "npm-run-all clean build test", |
46 |
| - "test": "npm-run-all lint test:*", |
47 |
| - "test:core": "mocha dist/test/ --exit --no-timeouts --require source-map-support/register", |
48 |
| - "test:test_app": "cross-env DAPP=\"test_app\" npm run test_dapp", |
49 |
| - "test:contracts_app": "cross-env DAPP=\"contracts_app\" npm run test_dapp", |
50 |
| - "test_dapp": "cross-env-shell \"cd test_apps/$DAPP && npm install && npm test\"", |
51 |
| - "release": "./scripts/release", |
| 49 | + "prepare": "npm run --silent check-no-prepare && npm-run-all install_all clean build || exit 0", |
| 50 | + "prepublishOnly": "npm-run-all test check-working-tree", |
| 51 | + "release": "node scripts/release.js", |
52 | 52 | "start": "run-p start:*",
|
53 | 53 | "start:embark": "run-p start:embark:*",
|
54 | 54 | "start:embark:babel": "npm run babel:watch",
|
55 | 55 | "start:embark:type-check": "npm run type-check:watch",
|
56 | 56 | "start:ui": "cd embark-ui && npm run start",
|
| 57 | + "test": "npm-run-all lint test:*", |
| 58 | + "test:core": "mocha dist/test/ --exit --no-timeouts --require source-map-support/register", |
| 59 | + "test:test_app": "cross-env DAPP=test_app npm run test_dapp", |
| 60 | + "test:contracts_app": "cross-env DAPP=contracts_app npm run test_dapp", |
| 61 | + "test_dapp": "cross-env-shell \"cd test_apps/$DAPP && npm install && npm test\"", |
57 | 62 | "tsc": "tsc",
|
58 | 63 | "tslint": "tslint",
|
59 | 64 | "type-check": "tsc",
|
|
0 commit comments