Skip to content

Commit

Permalink
add turbo to make building faster
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Dec 30, 2023
1 parent a6bc068 commit 81de836
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.turbo/
build/
dist/
node_modules/
.env
Expand Down
96 changes: 96 additions & 0 deletions package-lock.json

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

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.1",
"tsd": "^0.29.0",
"turbo": "^1.11.2",
"typedoc": "^0.24.8",
"typescript": "^5.1.1"
},
"scripts": {
"lint": "npm run lint --workspaces --if-present",
"build": "npm run build --workspaces --if-present",
"rebuild": "npm run rebuild --workspaces --if-present",
"build": "npx turbo build",
"rebuild": "npx turbo build --force",
"test": "NETWORK=Mainnet npx turbo test",
"compile": "npm run compile --workspaces --if-present",
"coverage": "npm run coverage --workspaces --if-present",
"clean": "npm run clean --workspaces --if-present",
"prettier": "npm run prettier --workspaces --if-present",
"test:tilt": "jest --verbose --config ./jest.config.ts --roots ./__tests__/tilt",
"test": "NETWORK=Mainnet npm run test --workspaces --if-present",
"docs": "NODE_OPTIONS=--max_old_space_size=8192 typedoc --options typedoc.json",
"sync": "tsx syncVersion.ts && npm install && npm run build",
"publish": "npm publish --access public --tag $TAG --workspace core --workspace connect --workspace platforms --workspace platforms/evm/protocols --workspace platforms/solana/protocols --workspace platforms/cosmwasm/protocols --workspace platforms/algorand/protocols",
Expand Down Expand Up @@ -65,4 +66,4 @@
"platforms/aptos/protocols/core",
"platforms/aptos/protocols/tokenBridge"
]
}
}
16 changes: 16 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"]
},
"test": {
"dependsOn": ["build"],
"inputs": ["src/**", "__test__/**/*.ts"]

},
"lint": {},
"dev": { "cache": false, "persistent": true }
}
}

0 comments on commit 81de836

Please sign in to comment.