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

feat(dev): Clean up package.json scripts and add build:dev option #4048

Merged
merged 1 commit into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@
"private": true,
"scripts": {
"build": "node ./scripts/verify-packages-versions.js && lerna run --stream --concurrency 1 --sort build",
"build:dev": "lerna run --stream --concurrency 1 --sort build:dev",
"build:dev:filter": "lerna run --stream --concurrency 1 --sort build:dev --include-filtered-dependencies --include-filtered-dependents --scope",
"build:es5": "lerna run --stream --concurrency 1 --sort build:es5",
"build:esm": "lerna run --stream --concurrency 1 --sort build:esm",
"build:watch": "lerna run --parallel build:watch",
"build:dev:watch": "lerna run --parallel build:dev:watch",
"circularDepCheck": "lerna run --parallel circularDepCheck",
"clean": "lerna run --parallel clean && lerna clean --yes",
"codecov": "codecov",
"fix": "lerna run --parallel fix",
"link:yarn": "lerna run --stream --concurrency 1 link:yarn",
"lint": "lerna run --parallel lint",
"lint:eslint": "lerna run --parallel lint:eslint",
"test": "lerna run --stream --concurrency 1 --sort test",
"codecov": "codecov",
"pack:changed": "lerna run pack --since",
"prepublishOnly": "lerna run --stream --concurrency 1 prepublishOnly",
"postpublish": "make publish-docs && lerna run --stream --concurrency 1 postpublish",
"circularDepCheck": "lerna run --parallel circularDepCheck"
"test": "lerna run --stream --concurrency 1 --sort test"
},
"volta": {
"node": "14.17.0",
Expand Down
20 changes: 11 additions & 9 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,23 @@
},
"scripts": {
"build": "run-p build:es5 build:esm",
"build:dev": "run-s build",
"build:es5": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "run-p build:watch:es5 build:watch:esm",
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:watch": "run-p build:es5:watch build:esm:watch",
"build:dev:watch": "run-s build:watch",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"circularDepCheck": "madge --circular src/index.ts",
"clean": "rimraf dist esm build coverage",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"pack": "npm pack",
"circularDepCheck": "madge --circular src/index.ts"
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack"
},
"volta": {
"extends": "../../package.json"
Expand Down
36 changes: 18 additions & 18 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,36 +54,36 @@
"webpack": "^4.30.0"
},
"scripts": {
"build": "run-s build:dist build:esm build:bundle",
"build": "run-s build:es5 build:esm build:bundle",
"build:bundle": "rollup --config",
"build:bundle:watch": "rollup --config --watch",
"build:dist": "tsc -p tsconfig.build.json",
"build:dist:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:es5": "run-s build:dist",
"build:es5:watch": "run-s build:dist:watch",
"build:dev": "run-s build:es5 build:esm",
"build:es5": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "run-p build:es5:watch build:esm:watch build:bundle:watch",
"build:bundle:watch": "rollup --config --watch",
"build:dev:watch": "run-p build:es5:watch build:esm:watch",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:watch": "run-p build:dist:watch build:esm:watch build:bundle:watch",
"circularDepCheck": "madge --circular src/index.ts",
"clean": "rimraf dist esm build coverage .rpt2_cache",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack",
"size:check": "run-p size:check:es5 size:check:es6",
"size:check:es5": "cat build/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'",
"size:check:es6": "cat build/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'",
"test": "run-s test:unit",
"test:unit": "jest --config test/unit/jest.config.js",
"test:unit:watch": "jest --config test/unit/jest.config.js --watch",
"test:integration": "test/integration/run.js",
"test:integration:watch": "test/integration/run.js --watch",
"test:integration:checkbrowsers": "node scripts/checkbrowsers.js",
"test:package": "node test/package/npm-build.js && rm test/package/tmp.js",
"size:check": "run-p size:check:es5 size:check:es6",
"size:check:es5": "cat build/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'",
"size:check:es6": "cat build/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'",
"pack": "npm pack",
"circularDepCheck": "madge --circular src/index.ts"
"test:unit:watch": "jest --config test/unit/jest.config.js --watch",
"test:integration:watch": "test/integration/run.js --watch"
},
"volta": {
"extends": "../../package.json"
Expand Down
22 changes: 12 additions & 10 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,26 @@
},
"scripts": {
"build": "run-p build:es5 build:esm",
"build:dev": "run-s build",
"build:es5": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "run-p build:watch:es5 build:watch:esm",
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:watch": "run-p build:es5:watch build:esm:watch",
"build:dev:watch": "run-s build:watch",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"circularDepCheck": "madge --circular src/index.ts",
"clean": "rimraf dist esm coverage",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack",
"test": "jest",
"test:watch": "jest --watch",
"pack": "npm pack",
"version": "node ../../scripts/versionbump.js src/version.ts",
"circularDepCheck": "madge --circular src/index.ts"
"version": "node ../../scripts/versionbump.js src/version.ts"
},
"volta": {
"extends": "../../package.json"
Expand Down
8 changes: 4 additions & 4 deletions packages/ember/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint . --cache --cache-location '../../eslintcache/'",
"pack": "npm pack",
"prepublishOnly": "ember ts:precompile",
"postpublish": "ember ts:clean",
"start": "ember serve",
"test": "node ./scripts/run_tests.js",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each",
"prepublishOnly": "ember ts:precompile",
"postpublish": "ember ts:clean",
"pack": "npm pack"
"test:ember-compatibility": "ember try:each"
},
"dependencies": {
"@embroider/macros": "~0.37.0",
Expand Down
22 changes: 12 additions & 10 deletions packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,25 @@
},
"scripts": {
"build": "run-p build:es5 build:esm",
"build:dev": "run-s build",
"build:es5": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "run-p build:watch:es5 build:watch:esm",
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:watch": "run-p build:es5:watch build:esm:watch",
"build:dev:watch": "run-s build:watch",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"circularDepCheck": "madge --circular src/index.ts",
"clean": "rimraf dist esm build coverage",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"test": "jest",
"test:watch": "jest --watch",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack",
"circularDepCheck": "madge --circular src/index.ts"
"test": "jest",
"test:watch": "jest --watch"
},
"volta": {
"extends": "../../package.json"
Expand Down
22 changes: 12 additions & 10 deletions packages/hub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,25 @@
},
"scripts": {
"build": "run-p build:es5 build:esm",
"build:dev": "run-s build",
"build:es5": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "run-p build:watch:es5 build:watch:esm",
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:watch": "run-p build:es5:watch build:esm:watch",
"build:dev:watch": "run-s build:watch",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"circularDepCheck": "madge --circular src/index.ts",
"clean": "rimraf dist esm coverage",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"test": "jest",
"test:watch": "jest --watch",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack",
"circularDepCheck": "madge --circular src/index.ts"
"test": "jest",
"test:watch": "jest --watch"
},
"volta": {
"extends": "../../package.json"
Expand Down
24 changes: 13 additions & 11 deletions packages/integrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,26 @@
},
"scripts": {
"build": "run-p build:es5 build:esm build:bundle",
"build:bundle": "rollup --config",
"build:dev": "run-s build:es5 build:esm",
"build:es5": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "run-p build:watch:es5 build:watch:esm",
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:bundle": "rollup --config",
"build:watch": "run-p build:es5:watch build:esm:watch",
"build:dev:watch": "run-p build:es5:watch build:esm:watch",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"circularDepCheck": "madge --circular src/index.ts",
"clean": "rimraf dist esm build coverage .rpt2_cache",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"test": "jest",
"test:watch": "jest --watch",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack",
"circularDepCheck": "madge --circular src/index.ts"
"test": "jest",
"test:watch": "jest --watch"
},
"volta": {
"extends": "../../package.json"
Expand Down
22 changes: 12 additions & 10 deletions packages/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,25 @@
},
"scripts": {
"build": "run-p build:es5 build:esm",
"build:dev": "run-s build",
"build:es5": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "run-p build:watch:es5 build:watch:esm",
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:watch": "run-p build:es5:watch build:esm:watch",
"build:dev:watch": "run-s build:watch",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"circularDepCheck": "madge --circular src/index.ts",
"clean": "rimraf dist esm coverage",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"test": "jest",
"test:watch": "jest --watch",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack",
"circularDepCheck": "madge --circular src/index.ts"
"test": "jest",
"test:watch": "jest --watch"
},
"volta": {
"extends": "../../package.json"
Expand Down
24 changes: 13 additions & 11 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,29 @@
},
"scripts": {
"build": "run-p build:esm build:es5",
"build:dev": "run-s build",
"build:esm": "tsc -p tsconfig.esm.json",
"build:es5": "tsc -p tsconfig.build.json",
"build:watch": "run-p build:watch:esm build:watch:es5",
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:watch": "run-p build:esm:watch build:es5:watch",
"build:dev:watch": "run-s build:watch",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts",
"clean": "rimraf dist esm coverage *.js *.js.map *.d.ts",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack",
"test": "run-s test:unit test:integration",
"test:watch": "jest --watch",
"test:unit": "jest",
"test:integration": "test/run-integration-tests.sh",
"pack": "npm pack",
"test:watch": "jest --watch",
"vercel:branch": "source vercel/set-up-branch-for-test-app-use.sh",
"vercel:project": "source vercel/make-project-use-current-branch.sh",
"circularDepCheck": "madge --circular src/index.client.ts && madge --circular src/index.server.ts"
"vercel:project": "source vercel/make-project-use-current-branch.sh"
},
"volta": {
"extends": "../../package.json"
Expand Down
26 changes: 14 additions & 12 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,29 @@
},
"scripts": {
"build": "run-p build:es5 build:esm",
"build:dev": "run-s build",
"build:es5": "tsc -p tsconfig.build.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:watch": "run-p build:watch:es5 build:watch:esm",
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"build:watch": "run-p build:es5:watch build:esm:watch",
"build:dev:watch": "run-s build:watch",
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
"circularDepCheck": "madge --circular src/index.ts",
"clean": "rimraf dist esm coverage",
"fix": "run-s fix:eslint fix:prettier",
"fix:eslint": "eslint . --format stylish --fix",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"link:yarn": "yarn link",
"lint": "run-s lint:prettier lint:eslint",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"fix": "run-s fix:eslint fix:prettier",
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
"fix:eslint": "eslint . --format stylish --fix",
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
"pack": "npm pack",
"test": "run-s test:jest test:express test:webpack test:release-health",
"test:jest": "jest",
"test:watch": "jest --watch",
"test:express": "node test/manual/express-scope-separation/start.js",
"test:webpack": "cd test/manual/webpack-domain/ && yarn && node npm-build.js",
"test:jest": "jest",
"test:release-health": "node test/manual/release-health/runner.js",
"pack": "npm pack",
"circularDepCheck": "madge --circular src/index.ts"
"test:webpack": "cd test/manual/webpack-domain/ && yarn && node npm-build.js",
"test:watch": "jest --watch"
},
"volta": {
"extends": "../../package.json"
Expand Down
Loading