Skip to content

Commit 09c2599

Browse files
authored
Merge pull request #415 from dojoengine/feat/add-turbo
feat: add turbo
2 parents 4c07059 + 89cf198 commit 09c2599

File tree

134 files changed

+3679
-393
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+3679
-393
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ jobs:
1616
with:
1717
version: 10.0.0
1818

19+
- name: Cache turbo
20+
uses: actions/cache@v3
21+
with:
22+
path: |
23+
.turbo
24+
**/.turbo
25+
key: ${{ runner.os }}-turbo-${{ github.sha }}
26+
restore-keys: |
27+
${{ runner.os }}-turbo-
28+
1929
- name: Update Submodules
2030
run: git submodule update --init --recursive
2131

@@ -45,13 +55,10 @@ jobs:
4555
run: pnpm i
4656

4757
- name: Run Prettier
48-
run: pnpm run prettier --check .
49-
50-
- name: Build packages
51-
run: pnpm run build
58+
run: pnpm run format:check --ui stream
5259

53-
- name: Build examples
54-
run: pnpm run build-examples
60+
- name: Build packages and examples
61+
run: pnpm run build --ui stream
5562

5663
# - name: Upload coverage reports to Codecov
5764
# uses: codecov/codecov-action@v3

.github/workflows/docs.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ jobs:
1919
- uses: pnpm/action-setup@v2
2020
with:
2121
version: 10.0.0
22+
23+
- name: Cache turbo
24+
uses: actions/cache@v3
25+
with:
26+
path: |
27+
.turbo
28+
**/.turbo
29+
key: ${{ runner.os }}-turbo-${{ github.sha }}
30+
restore-keys: |
31+
${{ runner.os }}-turbo-
2232
2333
- name: Install Protobuf Compiler
2434
run: sudo apt-get install -y protobuf-compiler
@@ -27,7 +37,7 @@ jobs:
2737
run: pnpm install
2838

2939
- name: Build dependencies
30-
run: pnpm run build
40+
run: pnpm run build:deps --ui stream
3141

3242
- name: Build docs
3343
run: pnpm run docs

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ docs
55
# Local Netlify folder
66
.netlify
77
lerna-debug.log
8+
9+
.turbo/

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm run prettier-check
1+
pnpm run format:check --ui stream

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ packages/create-burner/coverage
99
packages/core/coverage
1010

1111
worlds/dojo-starter
12+
worlds/onchain-dash
1213

1314
# ignore lock files
1415
**/*-lock.yaml

biome.json

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4-
"files": { "ignoreUnknown": false, "ignore": [] },
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": true },
4+
"files": {
5+
"ignoreUnknown": false,
6+
"ignore": [
7+
"**/*/target",
8+
"**/*/dist",
9+
"packages/torii-client/wasm",
10+
"packages/torii-client/pkg",
11+
"packages/torii-wasm/pkg/",
12+
"packages/utils-wasm/pkg/",
13+
"packages/create-burner/coverage",
14+
"packages/core/coverage",
15+
"worlds/dojo-starter",
16+
"**/*-lock.yaml",
17+
"**/package-lock.json",
18+
"**/dev-dist",
19+
"**/CHANGELOG.md",
20+
"worlds",
21+
".changeset",
22+
".turbo",
23+
"**/*/.turbo"
24+
]
25+
},
526
"formatter": {
627
"enabled": true,
728
"useEditorconfig": true,
@@ -25,7 +46,11 @@
2546
"**/*-lock.yaml",
2647
"**/package-lock.json",
2748
"**/dev-dist",
28-
"**/CHANGELOG.md"
49+
"**/CHANGELOG.md",
50+
"worlds",
51+
".changeset",
52+
".turbo",
53+
"**/*/.turbo"
2954
]
3055
},
3156
"organizeImports": { "enabled": true },
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
**/*/target
2+
**/*/dist
3+
packages/torii-client/wasm
4+
packages/torii-client/pkg
5+
packages/torii-wasm/pkg/
6+
packages/utils-wasm/pkg/
7+
8+
packages/create-burner/coverage
9+
packages/core/coverage
10+
11+
worlds/dojo-starter
12+
worlds/onchain-dash
13+
14+
# ignore lock files
15+
**/*-lock.yaml
16+
package-lock.json
17+
dev-dist
18+
19+
**/CHANGELOG.md
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": true },
4+
"files": {
5+
"ignoreUnknown": false,
6+
"ignore": [
7+
"**/*/target",
8+
"**/*/dist",
9+
"packages/torii-client/wasm",
10+
"packages/torii-client/pkg",
11+
"packages/torii-wasm/pkg/",
12+
"packages/utils-wasm/pkg/",
13+
"packages/create-burner/coverage",
14+
"packages/core/coverage",
15+
"worlds/dojo-starter",
16+
"**/*-lock.yaml",
17+
"**/package-lock.json",
18+
"**/dev-dist",
19+
"**/CHANGELOG.md",
20+
"worlds",
21+
".changeset",
22+
".turbo",
23+
"**/*/.turbo"
24+
]
25+
},
26+
"formatter": {
27+
"enabled": true,
28+
"useEditorconfig": true,
29+
"formatWithErrors": false,
30+
"indentStyle": "space",
31+
"indentWidth": 4,
32+
"lineEnding": "lf",
33+
"lineWidth": 80,
34+
"attributePosition": "auto",
35+
"bracketSpacing": true,
36+
"ignore": [
37+
"**/*/target",
38+
"**/*/dist",
39+
"packages/torii-client/wasm",
40+
"packages/torii-client/pkg",
41+
"packages/torii-wasm/pkg/",
42+
"packages/utils-wasm/pkg/",
43+
"packages/create-burner/coverage",
44+
"packages/core/coverage",
45+
"worlds/dojo-starter",
46+
"**/*-lock.yaml",
47+
"**/package-lock.json",
48+
"**/dev-dist",
49+
"**/CHANGELOG.md",
50+
"worlds",
51+
".changeset",
52+
".turbo",
53+
"**/*/.turbo"
54+
]
55+
},
56+
"organizeImports": { "enabled": true },
57+
"linter": { "enabled": true, "rules": { "recommended": true } },
58+
"javascript": {
59+
"formatter": {
60+
"jsxQuoteStyle": "double",
61+
"quoteProperties": "asNeeded",
62+
"trailingCommas": "es5",
63+
"semicolons": "always",
64+
"arrowParentheses": "always",
65+
"bracketSameLine": false,
66+
"quoteStyle": "double",
67+
"attributePosition": "auto",
68+
"bracketSpacing": true
69+
}
70+
}
71+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/** @type {import('prettier').Config} */
2+
module.exports = {
3+
endOfLine: "lf",
4+
semi: true,
5+
singleQuote: false,
6+
tabWidth: 4,
7+
trailingComma: "es5",
8+
bracketSpacing: true,
9+
printWidth: 80,
10+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
**/*/target
2+
**/*/dist
3+
packages/torii-client/wasm
4+
packages/torii-client/pkg
5+
packages/torii-wasm/pkg/
6+
packages/utils-wasm/pkg/
7+
8+
packages/create-burner/coverage
9+
packages/core/coverage
10+
11+
worlds/dojo-starter
12+
worlds/onchain-dash
13+
14+
# ignore lock files
15+
**/*-lock.yaml
16+
package-lock.json
17+
dev-dist
18+
19+
**/CHANGELOG.md

0 commit comments

Comments
 (0)