Skip to content

Commit

Permalink
chore: setup turbo test(s) tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Apr 4, 2024
1 parent 8b0dbab commit 347ce51
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"private": true,
"scripts": {
"build": "turbo build",
"test": "yarn test:libraries && yarn test:contracts && yarn test:circuits",
"test": "turbo test:libraries test:circuits test:coverage",
"test:libraries": "jest --coverage",
"test:library": "jest packages/${0}",
"test:circuits": "yarn workspace @zk-kit/circuits test",
"test:contracts": "yarn workspace imt.sol test:coverage",
"test:contracts": "turbo test:coverage",
"version:bump": "yarn workspace @zk-kit/${0} version ${1} && yarn remove:stable-version-field ${0} && NO_HOOK=1 git commit -am \"chore(${0}): v${1}\" && git tag ${0}-v${1}",
"version:publish": "yarn workspaces foreach -A --no-private npm publish --tolerate-republish --access public",
"version:release": "changelogithub",
Expand Down
18 changes: 13 additions & 5 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"build": {
"dependsOn": ["^build"],
"inputs": ["packages/**/*.{js,ts,sol}"],
"outputs":["packages/**/{artifacts,dist,typechain-types}/**"]
"outputs": ["packages/**/{artifacts,dist,typechain-types}/**"]
},
"//#format:prettier": {
"inputs": [
Expand All @@ -20,13 +20,21 @@
"!packages/**/dist/**"
]
},
"//#lint:eslint":{
"inputs":[
"{packages,scripts,types}/**/*.{js,ts}"
]
"//#lint:eslint": {
"inputs": ["{packages,scripts,types}/**/*.{js,ts}"]
},
"lint": {
"inputs": ["**/*.sol"]
},
"//#test:libraries": {
"dependsOn": ["^build"],
"inputs": ["packages/**/*.{js,ts}"]
},
"//#test:circuits": {
"inputs": ["packages/circuits/**/*.{circom,nr,ts}"]
},
"test:coverage": {
"inputs": ["**/*.sol"]
}
}
}

0 comments on commit 347ce51

Please sign in to comment.