Skip to content

Commit

Permalink
add turbo to make building faster (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin authored Jan 1, 2024
1 parent 25334d5 commit c33fe76
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 10 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.

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,22 @@
"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",
"compile": "npm run compile --workspaces --if-present",
"coverage": "npm run coverage --workspaces --if-present",
"clean": "npm run clean --workspaces --if-present",
"lint": "npx turbo lint",
"build": "npx turbo build",
"rebuild": "npx turbo build --force",
"test": "NETWORK=Mainnet npx turbo test",
"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",
"pub:beta": "TAG=beta npm run publish",
"pub:latest": "TAG=latest npm run publish"
"pub:latest": "TAG=latest npm run publish",
"test:tilt": "jest --verbose --config ./jest.config.ts --roots ./__tests__/tilt"
},
"workspaces": [
"core/base",
Expand Down Expand Up @@ -65,4 +63,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 c33fe76

Please sign in to comment.