Skip to content

Commit 825988f

Browse files
committed
adding in generate command to turbo
1 parent 65202fc commit 825988f

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ To build all apps and packages, run the following command:
7676
pnpm run build
7777
```
7878

79+
### Generate: SSG
80+
81+
To statically generate this project:
82+
83+
```
84+
pnpm run generate
85+
```
86+
7987
### Remote Caching
8088

8189
Turborepo can use a technique known as [Remote Caching](https://turborepo.org/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
],
99
"scripts": {
1010
"build": "turbo run build",
11+
"generate": "turbo run generate",
1112
"dev": "turbo run dev --parallel",
1213
"lint": "turbo run lint",
1314
"lint:fix": "turbo run lint:fix",

turbo.json

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
"**/.vitepress/dist/**"
1111
]
1212
},
13+
"generate" : {
14+
"dependsOn": ["^generate"],
15+
"outputs": [
16+
"dist/**",
17+
".output/**"
18+
]
19+
},
1320
"lint": {
1421
"outputs": []
1522
},

0 commit comments

Comments
 (0)