Skip to content

Commit 160941e

Browse files
author
Dimitri POSTOLOV
authored
setup turbo for dev and build commands (#407)
1 parent 989664e commit 160941e

File tree

9 files changed

+177
-81
lines changed

9 files changed

+177
-81
lines changed

.github/workflows/next-js-bundle-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Build Next.js App
4848
# change this if your site requires a custom build command
49-
run: pnpm build
49+
run: cd .. && pnpm build
5050

5151
# Here's the first place where next-bundle-analysis' own script is used
5252
# This step pulls the raw bundle stats for the current bundle

.gitignore

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
# dependencies
22
node_modules/
3-
/.pnp
4-
.pnp.js
5-
.yalc
6-
yalc.lock
73

84
# testing
9-
/coverage
5+
coverage/
106

117
# next.js
12-
.next
13-
/out/
8+
.next/
9+
out/
1410

1511
# production
16-
/build
12+
build/
1713

1814
# misc
1915
.DS_Store
2016
*.pem
21-
.vscode
17+
.vscode/
2218

2319
# debug
24-
npm-debug.log*
25-
yarn-debug.log*
26-
yarn-error.log*
20+
*.log*
2721

2822
# local env files
2923
.env.local
@@ -32,7 +26,7 @@ yarn-error.log*
3226
.env.production.local
3327

3428
# vercel
35-
.vercel
29+
.vercel/
3630

3731
# typescript
3832
*.tsbuildinfo
@@ -42,3 +36,4 @@ yarn-error.log*
4236
*/public/sitemap*.xml
4337
.eslintcache
4438
dist/
39+
.turbo/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM node:18-alpine as builder
33
ENV PNPM_HOME="/usr/bin"
44

55
RUN apk add --no-cache git
6-
RUN npm install -g pnpm@8.6.0
6+
RUN npm install -g pnpm@8.6.2
77

88
WORKDIR /app
99

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "the-graph-docs-monorepo",
33
"private": true,
4-
"packageManager": "pnpm@8.6.0",
4+
"packageManager": "pnpm@8.6.2",
55
"scripts": {
6-
"build": "pnpm -r build",
6+
"build": "turbo run build",
77
"check": "pnpm typecheck && pnpm lint && pnpm prettier:check",
8-
"check:fix": "pnpm typecheck; pnpm lint:fix; exit 0",
9-
"dev": "pnpm --filter @graphprotocol/docs dev",
8+
"check:fix": "pnpm typecheck && pnpm lint:fix",
9+
"dev": "turbo run dev --parallel",
1010
"docker:build": "DOCKER_BUILDKIT=1 docker build . -t docs --no-cache",
1111
"docker:clean": "docker builder prune",
1212
"docker:up": "docker run --rm -it -p 3000:80 -v \"$(pwd)/nginx.conf:/etc/nginx/nginx.conf\" docs",
@@ -19,7 +19,7 @@
1919
"prettier": "prettier . --loglevel warn --write",
2020
"prettier:check": "prettier . --loglevel warn --check",
2121
"start": "pnpm --filter @graphprotocol/docs start",
22-
"typecheck": "pnpm --filter @graphprotocol/docs typecheck"
22+
"typecheck": "turbo run typecheck"
2323
},
2424
"devDependencies": {
2525
"@edgeandnode/eslint-config": "^1.3.5",
@@ -34,6 +34,7 @@
3434
"remark-lint-heading-increment": "^3.1.2",
3535
"remark-lint-no-heading-punctuation": "^3.1.2",
3636
"remark-lint-restrict-elements": "workspace:*",
37+
"turbo": "^1.10.3",
3738
"typescript": "~5.0.4"
3839
},
3940
"lint-staged": {

packages/nextra-theme/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
"dist"
2121
],
2222
"scripts": {
23+
"//FIXME typecheck": "tsc --noEmit",
2324
"build": "tsup",
2425
"dev": "tsup --watch"
2526
},
2627
"peerDependencies": {
2728
"@edgeandnode/gds": "^1.3.2",
2829
"@emotion/react": "^11.10.6",
29-
"next": "^13.3.1",
30+
"next": "^13.4.5",
3031
"next-seo": "^5.15.0",
3132
"nextra": "^2.7.1",
3233
"react-dom": "^18.2.0",
@@ -47,7 +48,7 @@
4748
"@types/lodash": "^4.14.195",
4849
"@types/react": "18.2.7",
4950
"@types/react-dom": "^18.2.4",
50-
"next": "^13.4.4",
51+
"next": "^13.4.5",
5152
"next-seo": "^6.0.0",
5253
"nextra": "2.7.1",
5354
"react": "18.2.0",

0 commit comments

Comments
 (0)