Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up build script #654

Merged
merged 15 commits into from
Aug 21, 2020
107 changes: 43 additions & 64 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,24 @@
"test:pkg": "cross-env CI=true ts-node ./scripts/test --pkg",
"test:watch": "ts-node ./scripts/test packages",
"test:coverage": "yarn test --coverage",
"build:changed": "lerna run build --since origin/main",
"build": "lerna run build --stream",
"build": "node -r ts-node/register --max-old-space-size=3049 scripts/build-all",
"build:pkg": "ts-node --transpile-only scripts/build-package",
"ver": "lerna version --no-push --exact",
"changes": "dotenv lerna-changelog",
"clean": "git clean -e '!/.env' -e '!/website-deploy-key' -e '!/website-deploy-key.pub' -fdX .",
"lint": "eslint .",
"//": "postinstall\": \"patch-package"
"lint": "eslint ."
},
"dependencies": {
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.2",
"@babel/helper-module-imports": "^7.10.1",
"@babel/parser": "^7.10.2",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1",
"@babel/plugin-proposal-optional-chaining": "^7.10.1",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"@reach/router": "^1.3.3",
"@rollup/plugin-commonjs": "^13.0.0",
"@babel/core": "^7.11.4",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.4",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@reach/router": "^1.3.4",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^8.0.1",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@storybook/addon-actions": "^5.3.19",
"@storybook/addon-docs": "^5.3.19",
Expand All @@ -49,98 +43,83 @@
"@testing-library/jest-dom": "^5.10.1",
"@testing-library/react": "^10.2.1",
"@testing-library/user-event": "^11.4.2",
"@types/babel-traverse": "^6.25.5",
"@types/eslint": "^7.2.0",
"@types/execa": "^2.0.0",
"@types/fs-extra": "^9.0.1",
"@types/highlight-words-core": "^1.2.0",
"@types/invariant": "^2.2.33",
"@types/jest": "^26.0.0",
"@types/lodash": "^4.14.155",
"@types/match-sorter": "^4.0.0",
"@types/mri": "^1.1.0",
"@types/ms": "0.7.31",
"@types/node": "^12.12.47",
"@types/ora": "^3.2.0",
"@types/react": "^16.9.36",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.5",
"@types/react-test-renderer": "^16.9.2",
"@types/react-test-renderer": "^16.9.3",
"@types/rollup-plugin-json": "^3.0.2",
"@types/rollup-plugin-sourcemaps": "0.4.2",
"@types/sinon": "^9.0.4",
"@types/styled-components": "^5.1.0",
"@types/styled-components": "^5.1.2",
"@types/tabbable": "^3.1.0",
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^3.2.0",
"@typescript-eslint/parser": "^3.2.0",
"asyncro": "^3.0.0",
"autoprefixer": "^9.8.0",
"@typescript-eslint/eslint-plugin": "^3.9.1",
"@typescript-eslint/parser": "^3.9.1",
"autoprefixer": "^9.8.6",
"awesome-typescript-loader": "^5.2.1",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.0.1",
"babel-jest": "^26.3.0",
"babel-loader": "^8.1.0",
"babel-plugin-annotate-pure-calls": "0.4.0",
"babel-plugin-dev-expression": "0.2.2",
"babel-plugin-macros": "^2.8.0",
"babel-traverse": "^6.26.0",
"babylon": "^6.18.0",
"chalk": "^4.1.0",
"chokidar-cli": "^2.1.0",
"cross-env": "7.0.2",
"cross-spawn": "^7.0.3",
"doctoc": "^1.4.0",
"dotenv-cli": "^3.1.0",
"enquirer": "^2.3.5",
"eslint": "^7.2.0",
"cross-env": "^7.0.2",
"eslint": "^7.7.0",
"eslint-config-react-app": "^5.2.1",
"eslint-plugin-flowtype": "^5.1.3",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.4",
"execa": "4.0.2",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.0",
"fs-extra": "^9.0.1",
"husky": "^4.2.5",
"jest": "^26.0.1",
"jest": "^26.4.1",
"jest-watch-typeahead": "0.6.0",
"jest-axe": "^3.4.0",
"jest-axe": "^3.5.0",
"lerna": "^3.22.1",
"lerna-changelog": "^1.0.1",
"lodash": "^4.17.15",
"match-sorter": "^4.1.0",
"mri": "^1.1.5",
"ora": "^4.0.4",
"patch-package": "^6.2.2",
"postinstall-postinstall": "^2.1.0",
"lerna-script": "^1.3.2",
"lodash": "^4.17.20",
"match-sorter": "^4.2.0",
"mri": "^1.1.6",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"progress-estimator": "0.2.2",
"pretty-ms": "^7.0.0",
"pretty-quick": "^3.0.0",
"progress-estimator": "0.3.0",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-docgen-typescript-loader": "^3.7.2",
"react-dom": "^16.13.1",
"react-is": "^16.13.1",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-spring": "^8.0.27",
"react-test-renderer": "^16.13.1",
"rollup": "^2.16.1",
"rollup": "^2.26.4",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-sourcemaps": "0.6.2",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-typescript2": "0.27.1",
"sinon": "^9.0.2",
"rollup-plugin-terser": "^7.0.0",
"rollup-plugin-typescript2": "0.27.2",
"sinon": "^9.0.3",
"styled-components": "^5.1.1",
"tiny-glob": "0.2.6",
"ts-jest": "^26.1.0",
"ts-loader": "^7.0.5",
"ts-jest": "^26.2.0",
"ts-loader": "^8.0.2",
"ts-node": "^8.10.2",
"typescript": "^3.9.5",
"typescript": "^4.0.2",
"use-throttle": "0.0.3"
},
"resolutions": {
"@types/react": "^16.9.36",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8"
},
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/accordion"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/auto-id": "0.10.5",
Expand Down
7 changes: 0 additions & 7 deletions packages/accordion/tsconfig.build.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/alert-dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/alert-dialog"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/auto-id": "0.10.5",
Expand Down
7 changes: 0 additions & 7 deletions packages/alert-dialog/tsconfig.build.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/alert"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/utils": "0.10.5",
Expand Down
7 changes: 0 additions & 7 deletions packages/alert/tsconfig.build.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/auto-id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/auto-id"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"peerDependencies": {
"react": "^16.8.0",
Expand Down
File renamed without changes.
7 changes: 0 additions & 7 deletions packages/auto-id/tsconfig.build.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"directory": "packages/checkbox"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/auto-id": "0.10.5",
Expand Down
7 changes: 0 additions & 7 deletions packages/checkbox/tsconfig.build.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/combobox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/combobox"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/auto-id": "0.10.5",
Expand Down
7 changes: 0 additions & 7 deletions packages/combobox/tsconfig.build.json

This file was deleted.

23 changes: 0 additions & 23 deletions packages/component-component/babel.config.js

This file was deleted.

47 changes: 0 additions & 47 deletions packages/component-component/build-package.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/component-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/component-component"
},
"scripts": {
"build": "node ./build-package"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"prop-types": "^15.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/descendants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/descendants"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/utils": "0.10.5",
Expand Down
7 changes: 0 additions & 7 deletions packages/descendants/tsconfig.build.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/dialog"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/portal": "0.10.5",
Expand Down
7 changes: 0 additions & 7 deletions packages/dialog/tsconfig.build.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/disclosure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"directory": "packages/disclosure"
},
"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/auto-id": "0.10.5",
Expand Down
Loading