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

Making all base yarn actions act on all packages including integration tests #45

Merged
merged 1 commit into from
Mar 19, 2020
Merged
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
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
"packages/*"
],
"scripts": {
"pkgparse": "echo ${PKGS:-'*'} | sed -e 's#,# @eth-optimism/#g' -e 's#^#@eth-optimism/#'",
"pkgparse": "echo ${PKGS:-'*'} | sed -e 's#,# @eth-optimism*/#g' -e 's#^#@eth-optimism*/#'",
"pkgparse:core": "echo ${PKGS:-'*'} | sed -e 's#,# @eth-optimism/#g' -e 's#^#@eth-optimism/#'",
"pkgparse:integration": "echo ${PKGS:-'*'} | sed -e 's#,# @eth-optimism-test/#g' -e 's#^#@eth-optimism-test/#'",
"lint": "wsrun -p $(yarn --silent run pkgparse) --parallel --exclude-missing lint",
"fix": "wsrun -p $(yarn --silent run pkgparse) --fast-exit --parallel --exclude-missing fix",
"clean": "wsrun -p $(yarn --silent run pkgparse) -r --fast-exit --parallel --exclude-missing clean",
"clean_modules": "rm -rf node_modules && find ./packages -type d -maxdepth 2 -name \"node_modules\" -exec rm -r {} +",
"clean_manual": "find ./packages -type d -maxdepth 2 -name \"build\" -exec rm -r {} +",
"test:integration": "for package in `ls packages | grep '^test-'`; do\n cd packages/$package && yarn test; cd -; done",
"test:core": "for package in `ls packages | grep -v '^test-'`; do\n cd packages/$package && yarn test; cd -; done",
"test": "wsrun -p $(yarn --silent run pkgparse) --fast-exit --parallel --no-prefix --exclude-missing --timeout 5000 test",
"test:integration": "wsrun -p $(yarn --silent run pkgparse:integration) --fast-exit --serial --no-prefix --exclude-missing --timeout 5000 test",
"test:core": "wsrun -p $(yarn --silent run pkgparse:core) --fast-exit --parallel --no-prefix --exclude-missing --timeout 5000 test",
"test": "yarn test:core && yarn test:integration",
"build": "lerna link && wsrun -p $(yarn --silent run pkgparse) -r --fast-exit --stages --exclude-missing build",
"all": "yarn clean && yarn build && yarn test && yarn fix && yarn lint",
"release": "yarn run build && lerna publish --force-publish --exact -m \"chore(@ethereum-optimism) publish %s release\"",
Expand Down