embark/package.json
Michael Bradley, Jr 3f61e314d9 build: implement a common babel config
Setup a `babel.config.js` in the root of the monorepo to be used by
`packages/*`. It won't be used by some packages, e.g. `packages/embark-ui`, but
most of them should use it instead of rolling their own.

Allow for package-level modifications by specifying `babelrcRoots` in the root
`babel.config.js`

Use the babel `--root-mode upward` option in `packages/embark`'s `build`
script. Other packages intending to use the common config should do likewise.

Use a `.babelrc.js` in `packages/embark` to supply the package-specific
`ignore` settings.

Make packages used by the common config devDeps of the root.

Extract babel-related devDeps from `packages/embark`, but don't extract the
non-dev deps since those are used by embark's pipeline in a production
install. Normally, it should only be necessary to have `@babel/cli` and
`@babel/core` in devDeps, and possibly `@babel/runtime-corejs2` in deps, plus
any package-specific babel-related dev/deps. Once we deprecate the pipeline, we
can finish the extraction.

Use `ncu -f '/babel/' -u` to bump the versions of all babel-related deps in the
root and in `packages/embark`. We get better space/time savings from the yarn
workspace when versions match.
2019-02-06 11:34:47 -05:00

69 lines
2.3 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:*",
"ci:packages": "npm-run-all ci_ cwtree",
"ci:test_dapps": "npm-run-all test_dapps:ci cwtree",
"ci_": "lerna run --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:*",
"qa:packages": "npm-run-all qa_ cwtree",
"qa:test_dapps": "npm-run-all test_dapps:qa cwtree",
"qa_": "lerna run --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 --stream test",
"test:full": "npm-run-all lint typecheck test test_dapps",
"test_dapps": "cd test_dapps && yarn install && npm run test",
"test_dapps:ci": "cd test_dapps && npm run ci",
"test_dapps:qa": "cd test_dapps && npm run qa",
"typecheck": "lerna run --parallel typecheck"
},
"workspaces": {
"packages": [
"packages/*"
],
"nohoist": [
"embark/embark-test-contract-0",
"embark/embark-test-contract-1"
]
}
}