embark/package.json
Michael Bradley, Jr 991d958436 build: merge test_dapps with the root monorepo
[PR 1318][PR1318] introduces a monorepo member that's used as a DApp
dependency, but the present arrangement whereby `test_dapps/` is an embedded
monorepo makes it difficult to develop and test such packages in tandem with
changes to `test_dapps/packages/*`.

Reorganize `test_dapps/*` as members of the root monorepo and make various
adjustments accordingly. This makes it easy to develop test dapps and any
packages they depend on simultaneously, but we lose the CI/QA arrangement where
test dapps are run with an embark installed from fresh tarballs. That
arrangement, which is quite worthwhile as a means to detect problems arising
from transitive dependencies as soon as possible, will be re-introduced in
another PR, possibly involving an auxiliary repository such as
embark-framework/dapp-bin.

Since the `package.json` `"test"` scripts of `test_dapps/*` are now kicked off
as part of `yarn test` in the root, and since port allocation isn't fully
dynamic, it's important to run `yarn test` with `lerna run`'s `--concurrency=1`
option. For the same reasons, the root `ci` and `qa` scripts are similarly
restricted. In the future, this setup can be refactored and improved, along
with use of `lerna run`'s `--since` option to increase testing efficiency in
CI.

[PR1318]: https://github.com/embark-framework/embark/pull/1318
2019-02-12 16:59:54 -05:00

66 lines
2.2 KiB
JSON

{
"devDependencies": {
"@babel/core": "7.2.2",
"@babel/plugin-proposal-class-properties": "7.3.0",
"@babel/plugin-proposal-decorators": "7.3.0",
"@babel/plugin-proposal-optional-chaining": "7.2.0",
"@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-transform-runtime": "7.2.0",
"@babel/preset-env": "7.3.1",
"@babel/preset-typescript": "7.1.0",
"babel-plugin-dynamic-import-node": "2.2.0",
"babel-plugin-macros": "2.4.5",
"chalk": "2.4.2",
"lerna": "3.10.7",
"lodash.clonedeep": "4.5.0",
"minimist": "1.2.0",
"npm-run-all": "4.1.5",
"rimraf": "2.6.3",
"semver": "5.6.0"
},
"engines": {
"node": ">=8.12.0",
"npm": ">=6.4.1",
"yarn": ">=1.12.3"
},
"name": "root",
"private": true,
"scripts": {
"build": "lerna run --stream build",
"build:no-ui": "npm run build -- --ignore embark-ui",
"ci": "yarn install && npm-run-all cwtree ci_ cwtree",
"ci_": "lerna run --concurrency=1 --stream ci",
"clean": "npx lerna run --parallel clean",
"cwtree": "node scripts/check-working-tree",
"globalize": "node scripts/globalize",
"lint": "lerna run --parallel lint",
"package": "lerna run --parallel package",
"preqa": "yarn install && npm-run-all cwtree build:no-ui",
"qa": "npm-run-all cwtree reboot:full cwtree qa_ cwtree",
"qa_": "lerna run --concurrency=1 --stream qa",
"reboot": "npm run reset && yarn install",
"reboot:full": "npm run reset:full && yarn install",
"release": "node scripts/release",
"reset": "npx lerna run --parallel reset",
"reset:full": "npx npm-run-all reset reset:top",
"reset:top": "npx rimraf node_modules",
"start": "lerna run --parallel start",
"test": "lerna run --concurrency=1 --stream test",
"test:full": "npm-run-all lint typecheck test",
"typecheck": "lerna run --parallel typecheck",
"watch": "lerna run --parallel watch"
},
"workspaces": {
"packages": [
"packages/*",
"test_dapps/*"
],
"nohoist": [
"embark/embark-test-contract-0",
"embark/embark-test-contract-1",
"test_app/embark-service",
"test_app/zeppelin-solidity"
]
}
}