Skip to content

Commit

Permalink
chore: improve turbo.json config and add clean task
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnigir1 committed Sep 11, 2024
1 parent 6f72565 commit ae964ef
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 41 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@
"name": "ts-turborepo-boilerplate",
"version": "0.0.1",
"private": true,
"description": "",
"description": "Start your next offchain project in seconds",
"homepage": "https://github.com/defi-wonderland/ts-turborepo-boilerplate#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/defi-wonderland/ts-turborepo-boilerplate.git"
},
"license": "MIT",
"author": "Wonderland",
"type": "module",
"scripts": {
"build": "turbo run build",
"check-types": "turbo run check-types",
"clean": "turbo run clean",
"dev": "turbo run dev",
"format": "turbo run format",
"format:fix": "turbo run format:fix",
Expand All @@ -29,7 +35,7 @@
"devDependencies": {
"@commitlint/config-conventional": "19.4.1",
"@ianvs/prettier-plugin-sort-imports": "4.3.1",
"@types/node": "22.5.4",
"@types/node": "20.3.1",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@vitest/coverage-v8": "2.0.5",
Expand Down
1 change: 1 addition & 0 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"type": "module",
"scripts": {
"build": "forge build",
"clean": "rm -rf out && rm -rf cache",
"lint": "forge fmt",
"lint:fix": "forge fmt && pnpm lint:sol-tests --fix && pnpm lint:sol-logic --fix",
"lint:sol-logic": "solhint -c .solhint.json 'src/**/*.sol'",
Expand Down
9 changes: 9 additions & 0 deletions packages/sample-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
"author": "Wonderland",
"type": "module",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"directories": {
"src": "src"
},
"files": [
"dist/*",
"package.json",
"!**/*.tsbuildinfo"
],
"scripts": {
"build": "tsc -p tsconfig.build.json",
"check-types": "tsc --noEmit -p ./tsconfig.json",
Expand Down
64 changes: 27 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"clean": {
"cache": false
},
"lint": {
"dependsOn": ["build"]
},
Expand All @@ -20,7 +23,9 @@
"dependsOn": ["build"]
},
"build": {
"dependsOn": ["^build"]
"dependsOn": ["^build"],
"outputs": ["dist/**", "out/**"],
"inputs": ["$TURBO_DEFAULT$", "src/**/*.ts", "src/**/*.json"]
},
"dev": {
"cache": false
Expand All @@ -29,5 +34,5 @@
"dependsOn": ["build"]
}
},
"globalDependencies": [".eslintrc", ".prettierrc"]
"globalDependencies": [".eslintrc.cjs", ".prettierrc", "**/.env", "tsconfig.json"]
}

0 comments on commit ae964ef

Please sign in to comment.