Skip to content

Commit

Permalink
chore: wrap more tasks with turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed May 2, 2024
1 parent ddca703 commit 0b5186e
Show file tree
Hide file tree
Showing 3 changed files with 450 additions and 520 deletions.
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@
"test:subgraph": "yarn workspace semaphore-subgraph test",
"test:contracts": "yarn workspace semaphore-contracts test:coverage",
"test:circuits": "yarn workspace @semaphore-protocol/circuits test",
"lint:eslint": "eslint . --ext .js,.ts,.tsx",
"lint": "turbo lint:eslint lint:solhint",
"format:prettier": "prettier -c .",
"format:prettier:write": "prettier -w .",
"format:write": "turbo format:prettier:write format:remark:write",
"format": "turbo format:prettier format:remark",
"_lint:eslint": "eslint . --ext .js,.ts,.tsx",
"lint:eslint": "turbo _lint:eslint",
"lint": "turbo _lint:eslint lint:solhint",
"_format:prettier": "prettier -c .",
"format:prettier": "turbo _format:prettier",
"_format:prettier:write": "prettier -w .",
"format:prettier:write": "turbo _format:prettier:write",
"format:write": "turbo _format:prettier:write format:remark:write",
"format": "turbo _format:prettier format:remark",
"docs": "typedoc --cname js.semaphore.pse.dev --githubPages true",
"version:bump": "yarn workspaces foreach -A --no-private version -d ${0} && yarn version apply --all && yarn remove:stable-version-field && NO_HOOK=1 git commit -am \"chore: v${0}\" && git tag v${0}",
"version:publish": "yarn build:libraries && yarn clean:cli-templates && yarn workspaces foreach -A --no-private npm publish --tolerate-republish --access public",
Expand Down
8 changes: 4 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
],
"outputs": ["apps/subgraph/generated/**/*"]
},
"//#format:prettier": {
"//#_format:prettier": {
"inputs": [
"*.{js,json,md,ts,yml}",
"{apps,packages}/**/*.{json,md,mdx,sol,ts,ts,tsx,yaml,yml}",
"!{apps,packages}/**/{build,dist,generated}/**/*"
]
},
"//#format:prettier:write": {
"//#_format:prettier:write": {
"inputs": [
"*.{js,json,md,ts,yml}",
"{apps,packages}/**/*.{js,json,md,mdx,sol,ts,ts,tsx,yaml,yml}",
Expand All @@ -41,8 +41,8 @@
"format:remark:write": {
"inputs": ["apps/docs/**/*.mdx"]
},
"//#lint:eslint": {
"dependsOn": ["@semaphore-protocol/proof#build"],
"//#_lint:eslint": {
"dependsOn": ["^build"],
"inputs": [
"{apps,packages}/**/*.{js,ts,tsx}",
"!{apps,packages}/**/{build,dist,generated}/**/*",
Expand Down
Loading

0 comments on commit 0b5186e

Please sign in to comment.