create-turbo 1.8.9-canary.1 → 1.9.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +196 -0
- package/package.json +15 -8
- package/dist/index.js +0 -424
- package/templates/_shared_ts/.eslintrc.js +0 -10
- package/templates/_shared_ts/README.md +0 -25
- package/templates/_shared_ts/apps/docs/.eslintrc.js +0 -4
- package/templates/_shared_ts/apps/docs/README.md +0 -30
- package/templates/_shared_ts/apps/docs/next-env.d.ts +0 -5
- package/templates/_shared_ts/apps/docs/next.config.js +0 -4
- package/templates/_shared_ts/apps/docs/package.json +0 -27
- package/templates/_shared_ts/apps/docs/pages/index.tsx +0 -10
- package/templates/_shared_ts/apps/docs/tsconfig.json +0 -5
- package/templates/_shared_ts/apps/web/.eslintrc.js +0 -4
- package/templates/_shared_ts/apps/web/README.md +0 -30
- package/templates/_shared_ts/apps/web/next-env.d.ts +0 -5
- package/templates/_shared_ts/apps/web/next.config.js +0 -4
- package/templates/_shared_ts/apps/web/package.json +0 -27
- package/templates/_shared_ts/apps/web/pages/index.tsx +0 -10
- package/templates/_shared_ts/apps/web/tsconfig.json +0 -5
- package/templates/_shared_ts/gitignore +0 -33
- package/templates/_shared_ts/package.json +0 -23
- package/templates/_shared_ts/packages/eslint-config-custom/index.js +0 -11
- package/templates/_shared_ts/packages/eslint-config-custom/package.json +0 -19
- package/templates/_shared_ts/packages/tsconfig/README.md +0 -3
- package/templates/_shared_ts/packages/tsconfig/base.json +0 -20
- package/templates/_shared_ts/packages/tsconfig/nextjs.json +0 -22
- package/templates/_shared_ts/packages/tsconfig/package.json +0 -10
- package/templates/_shared_ts/packages/tsconfig/react-library.json +0 -11
- package/templates/_shared_ts/packages/ui/Button.tsx +0 -4
- package/templates/_shared_ts/packages/ui/index.tsx +0 -2
- package/templates/_shared_ts/packages/ui/package.json +0 -18
- package/templates/_shared_ts/packages/ui/tsconfig.json +0 -5
- package/templates/_shared_ts/turbo.json +0 -16
- package/templates/berry/.yarnrc.yml +0 -1
- package/templates/berry/README.md +0 -73
- package/templates/npm/README.md +0 -73
- package/templates/pnpm/README.md +0 -73
- package/templates/pnpm/apps/docs/package.json +0 -27
- package/templates/pnpm/apps/web/package.json +0 -27
- package/templates/pnpm/package.json +0 -19
- package/templates/pnpm/packages/ui/package.json +0 -19
- package/templates/pnpm/pnpm-workspace.yaml +0 -3
- package/templates/yarn/README.md +0 -73
- package/templates/yarn/package.json +0 -19
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "web",
|
3
|
-
"version": "0.0.0",
|
4
|
-
"private": true,
|
5
|
-
"scripts": {
|
6
|
-
"dev": "next dev",
|
7
|
-
"build": "next build",
|
8
|
-
"start": "next start",
|
9
|
-
"lint": "next lint"
|
10
|
-
},
|
11
|
-
"dependencies": {
|
12
|
-
"next": "^13.1.1",
|
13
|
-
"react": "^18.2.0",
|
14
|
-
"react-dom": "^18.2.0",
|
15
|
-
"ui": "*"
|
16
|
-
},
|
17
|
-
"devDependencies": {
|
18
|
-
"@babel/core": "^7.0.0",
|
19
|
-
"eslint": "7.32.0",
|
20
|
-
"eslint-config-custom": "*",
|
21
|
-
"tsconfig": "*",
|
22
|
-
"@types/node": "^17.0.12",
|
23
|
-
"@types/react": "^18.0.22",
|
24
|
-
"@types/react-dom": "^18.0.7",
|
25
|
-
"typescript": "^4.5.3"
|
26
|
-
}
|
27
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
2
|
-
|
3
|
-
# dependencies
|
4
|
-
node_modules
|
5
|
-
.pnp
|
6
|
-
.pnp.js
|
7
|
-
|
8
|
-
# testing
|
9
|
-
coverage
|
10
|
-
|
11
|
-
# next.js
|
12
|
-
.next/
|
13
|
-
out/
|
14
|
-
build
|
15
|
-
|
16
|
-
# misc
|
17
|
-
.DS_Store
|
18
|
-
*.pem
|
19
|
-
|
20
|
-
# debug
|
21
|
-
npm-debug.log*
|
22
|
-
yarn-debug.log*
|
23
|
-
yarn-error.log*
|
24
|
-
.pnpm-debug.log*
|
25
|
-
|
26
|
-
# local env files
|
27
|
-
.env.local
|
28
|
-
.env.development.local
|
29
|
-
.env.test.local
|
30
|
-
.env.production.local
|
31
|
-
|
32
|
-
# turbo
|
33
|
-
.turbo
|
@@ -1,23 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "turborepo-basic-shared",
|
3
|
-
"version": "0.0.0",
|
4
|
-
"private": true,
|
5
|
-
"workspaces": [
|
6
|
-
"apps/*",
|
7
|
-
"packages/*"
|
8
|
-
],
|
9
|
-
"scripts": {
|
10
|
-
"build": "turbo run build",
|
11
|
-
"dev": "turbo run dev",
|
12
|
-
"lint": "turbo run lint",
|
13
|
-
"format": "prettier --write \"**/*.{ts,tsx,md}\""
|
14
|
-
},
|
15
|
-
"devDependencies": {
|
16
|
-
"eslint-config-custom": "*",
|
17
|
-
"prettier": "latest",
|
18
|
-
"turbo": "latest"
|
19
|
-
},
|
20
|
-
"engines": {
|
21
|
-
"node": ">=14.0.0"
|
22
|
-
}
|
23
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "eslint-config-custom",
|
3
|
-
"version": "0.0.0",
|
4
|
-
"main": "index.js",
|
5
|
-
"license": "MIT",
|
6
|
-
"dependencies": {
|
7
|
-
"eslint": "^7.23.0",
|
8
|
-
"eslint-config-next": "13.0.0",
|
9
|
-
"eslint-config-prettier": "^8.3.0",
|
10
|
-
"eslint-plugin-react": "7.31.8",
|
11
|
-
"eslint-config-turbo": "latest"
|
12
|
-
},
|
13
|
-
"devDependencies": {
|
14
|
-
"typescript": "^4.7.4"
|
15
|
-
},
|
16
|
-
"publishConfig": {
|
17
|
-
"access": "public"
|
18
|
-
}
|
19
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
3
|
-
"display": "Default",
|
4
|
-
"compilerOptions": {
|
5
|
-
"composite": false,
|
6
|
-
"declaration": true,
|
7
|
-
"declarationMap": true,
|
8
|
-
"esModuleInterop": true,
|
9
|
-
"forceConsistentCasingInFileNames": true,
|
10
|
-
"inlineSources": false,
|
11
|
-
"isolatedModules": true,
|
12
|
-
"moduleResolution": "node",
|
13
|
-
"noUnusedLocals": false,
|
14
|
-
"noUnusedParameters": false,
|
15
|
-
"preserveWatchOutput": true,
|
16
|
-
"skipLibCheck": true,
|
17
|
-
"strict": true
|
18
|
-
},
|
19
|
-
"exclude": ["node_modules"]
|
20
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
3
|
-
"display": "Next.js",
|
4
|
-
"extends": "./base.json",
|
5
|
-
"compilerOptions": {
|
6
|
-
"target": "es5",
|
7
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
8
|
-
"allowJs": true,
|
9
|
-
"skipLibCheck": true,
|
10
|
-
"strict": true,
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
12
|
-
"noEmit": true,
|
13
|
-
"incremental": true,
|
14
|
-
"esModuleInterop": true,
|
15
|
-
"module": "esnext",
|
16
|
-
"resolveJsonModule": true,
|
17
|
-
"isolatedModules": true,
|
18
|
-
"jsx": "preserve"
|
19
|
-
},
|
20
|
-
"include": ["src", "next-env.d.ts"],
|
21
|
-
"exclude": ["node_modules"]
|
22
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "ui",
|
3
|
-
"version": "0.0.0",
|
4
|
-
"main": "./index.tsx",
|
5
|
-
"types": "./index.tsx",
|
6
|
-
"license": "MIT",
|
7
|
-
"scripts": {
|
8
|
-
"lint": "eslint \"**/*.ts*\""
|
9
|
-
},
|
10
|
-
"devDependencies": {
|
11
|
-
"@types/react": "^18.0.22",
|
12
|
-
"eslint": "^7.32.0",
|
13
|
-
"eslint-config-custom": "*",
|
14
|
-
"react": "^18.2.0",
|
15
|
-
"tsconfig": "*",
|
16
|
-
"typescript": "^4.5.2"
|
17
|
-
}
|
18
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "https://turbo.build/schema.json",
|
3
|
-
"globalDependencies": ["**/.env.*local"],
|
4
|
-
"pipeline": {
|
5
|
-
"build": {
|
6
|
-
"dependsOn": ["^build"],
|
7
|
-
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
|
8
|
-
},
|
9
|
-
"lint": {
|
10
|
-
"outputs": []
|
11
|
-
},
|
12
|
-
"dev": {
|
13
|
-
"cache": false
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
nodeLinker: "node-modules"
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# Turborepo starter
|
2
|
-
|
3
|
-
This is an official Yarn (Berry) starter turborepo.
|
4
|
-
|
5
|
-
## What's inside?
|
6
|
-
|
7
|
-
This turborepo uses [Yarn](https://yarnpkg.com/) as a package manager. It includes the following packages/apps:
|
8
|
-
|
9
|
-
### Apps and Packages
|
10
|
-
|
11
|
-
- `docs`: a [Next.js](https://nextjs.org/) app
|
12
|
-
- `web`: another [Next.js](https://nextjs.org/) app
|
13
|
-
- `ui`: a stub React component library shared by both `web` and `docs` applications
|
14
|
-
- `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
|
15
|
-
- `tsconfig`: `tsconfig.json`s used throughout the monorepo
|
16
|
-
|
17
|
-
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
|
18
|
-
|
19
|
-
### Utilities
|
20
|
-
|
21
|
-
This turborepo has some additional tools already setup for you:
|
22
|
-
|
23
|
-
- [TypeScript](https://www.typescriptlang.org/) for static type checking
|
24
|
-
- [ESLint](https://eslint.org/) for code linting
|
25
|
-
- [Prettier](https://prettier.io) for code formatting
|
26
|
-
|
27
|
-
### Build
|
28
|
-
|
29
|
-
To build all apps and packages, run the following command:
|
30
|
-
|
31
|
-
```
|
32
|
-
cd my-turborepo
|
33
|
-
yarn run build
|
34
|
-
```
|
35
|
-
|
36
|
-
### Develop
|
37
|
-
|
38
|
-
To develop all apps and packages, run the following command:
|
39
|
-
|
40
|
-
```
|
41
|
-
cd my-turborepo
|
42
|
-
yarn run dev
|
43
|
-
```
|
44
|
-
|
45
|
-
### Remote Caching
|
46
|
-
|
47
|
-
Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
|
48
|
-
|
49
|
-
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:
|
50
|
-
|
51
|
-
```
|
52
|
-
cd my-turborepo
|
53
|
-
yarn dlx turbo login
|
54
|
-
```
|
55
|
-
|
56
|
-
This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).
|
57
|
-
|
58
|
-
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
|
59
|
-
|
60
|
-
```
|
61
|
-
yarn dlx turbo link
|
62
|
-
```
|
63
|
-
|
64
|
-
## Useful Links
|
65
|
-
|
66
|
-
Learn more about the power of Turborepo:
|
67
|
-
|
68
|
-
- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
|
69
|
-
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
|
70
|
-
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
|
71
|
-
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
|
72
|
-
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
|
73
|
-
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
|
package/templates/npm/README.md
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
# Turborepo starter
|
2
|
-
|
3
|
-
This is an official npm starter turborepo.
|
4
|
-
|
5
|
-
## What's inside?
|
6
|
-
|
7
|
-
This turborepo uses [npm](https://www.npmjs.com/) as a package manager. It includes the following packages/apps:
|
8
|
-
|
9
|
-
### Apps and Packages
|
10
|
-
|
11
|
-
- `docs`: a [Next.js](https://nextjs.org/) app
|
12
|
-
- `web`: another [Next.js](https://nextjs.org/) app
|
13
|
-
- `ui`: a stub React component library shared by both `web` and `docs` applications
|
14
|
-
- `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
|
15
|
-
- `tsconfig`: `tsconfig.json`s used throughout the monorepo
|
16
|
-
|
17
|
-
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
|
18
|
-
|
19
|
-
### Utilities
|
20
|
-
|
21
|
-
This turborepo has some additional tools already setup for you:
|
22
|
-
|
23
|
-
- [TypeScript](https://www.typescriptlang.org/) for static type checking
|
24
|
-
- [ESLint](https://eslint.org/) for code linting
|
25
|
-
- [Prettier](https://prettier.io) for code formatting
|
26
|
-
|
27
|
-
### Build
|
28
|
-
|
29
|
-
To build all apps and packages, run the following command:
|
30
|
-
|
31
|
-
```
|
32
|
-
cd my-turborepo
|
33
|
-
npm run build
|
34
|
-
```
|
35
|
-
|
36
|
-
### Develop
|
37
|
-
|
38
|
-
To develop all apps and packages, run the following command:
|
39
|
-
|
40
|
-
```
|
41
|
-
cd my-turborepo
|
42
|
-
npm run dev
|
43
|
-
```
|
44
|
-
|
45
|
-
### Remote Caching
|
46
|
-
|
47
|
-
Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
|
48
|
-
|
49
|
-
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:
|
50
|
-
|
51
|
-
```
|
52
|
-
cd my-turborepo
|
53
|
-
npx turbo login
|
54
|
-
```
|
55
|
-
|
56
|
-
This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).
|
57
|
-
|
58
|
-
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
|
59
|
-
|
60
|
-
```
|
61
|
-
npx turbo link
|
62
|
-
```
|
63
|
-
|
64
|
-
## Useful Links
|
65
|
-
|
66
|
-
Learn more about the power of Turborepo:
|
67
|
-
|
68
|
-
- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
|
69
|
-
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
|
70
|
-
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
|
71
|
-
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
|
72
|
-
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
|
73
|
-
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
|
package/templates/pnpm/README.md
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
# Turborepo starter
|
2
|
-
|
3
|
-
This is an official pnpm starter turborepo.
|
4
|
-
|
5
|
-
## What's inside?
|
6
|
-
|
7
|
-
This turborepo uses [pnpm](https://pnpm.io) as a package manager. It includes the following packages/apps:
|
8
|
-
|
9
|
-
### Apps and Packages
|
10
|
-
|
11
|
-
- `docs`: a [Next.js](https://nextjs.org/) app
|
12
|
-
- `web`: another [Next.js](https://nextjs.org/) app
|
13
|
-
- `ui`: a stub React component library shared by both `web` and `docs` applications
|
14
|
-
- `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
|
15
|
-
- `tsconfig`: `tsconfig.json`s used throughout the monorepo
|
16
|
-
|
17
|
-
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
|
18
|
-
|
19
|
-
### Utilities
|
20
|
-
|
21
|
-
This turborepo has some additional tools already setup for you:
|
22
|
-
|
23
|
-
- [TypeScript](https://www.typescriptlang.org/) for static type checking
|
24
|
-
- [ESLint](https://eslint.org/) for code linting
|
25
|
-
- [Prettier](https://prettier.io) for code formatting
|
26
|
-
|
27
|
-
### Build
|
28
|
-
|
29
|
-
To build all apps and packages, run the following command:
|
30
|
-
|
31
|
-
```
|
32
|
-
cd my-turborepo
|
33
|
-
pnpm run build
|
34
|
-
```
|
35
|
-
|
36
|
-
### Develop
|
37
|
-
|
38
|
-
To develop all apps and packages, run the following command:
|
39
|
-
|
40
|
-
```
|
41
|
-
cd my-turborepo
|
42
|
-
pnpm run dev
|
43
|
-
```
|
44
|
-
|
45
|
-
### Remote Caching
|
46
|
-
|
47
|
-
Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
|
48
|
-
|
49
|
-
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:
|
50
|
-
|
51
|
-
```
|
52
|
-
cd my-turborepo
|
53
|
-
pnpm dlx turbo login
|
54
|
-
```
|
55
|
-
|
56
|
-
This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).
|
57
|
-
|
58
|
-
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
|
59
|
-
|
60
|
-
```
|
61
|
-
pnpm dlx turbo link
|
62
|
-
```
|
63
|
-
|
64
|
-
## Useful Links
|
65
|
-
|
66
|
-
Learn more about the power of Turborepo:
|
67
|
-
|
68
|
-
- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
|
69
|
-
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
|
70
|
-
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
|
71
|
-
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
|
72
|
-
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
|
73
|
-
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
|
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "docs",
|
3
|
-
"version": "0.0.0",
|
4
|
-
"private": true,
|
5
|
-
"scripts": {
|
6
|
-
"dev": "next dev --port 3001",
|
7
|
-
"build": "next build",
|
8
|
-
"start": "next start",
|
9
|
-
"lint": "next lint"
|
10
|
-
},
|
11
|
-
"dependencies": {
|
12
|
-
"next": "^13.1.1",
|
13
|
-
"react": "18.2.0",
|
14
|
-
"react-dom": "18.2.0",
|
15
|
-
"ui": "workspace:*"
|
16
|
-
},
|
17
|
-
"devDependencies": {
|
18
|
-
"@babel/core": "^7.0.0",
|
19
|
-
"eslint-config-custom": "workspace:*",
|
20
|
-
"eslint": "7.32.0",
|
21
|
-
"tsconfig": "workspace:*",
|
22
|
-
"@types/node": "^17.0.12",
|
23
|
-
"@types/react": "^18.0.22",
|
24
|
-
"@types/react-dom": "^18.0.7",
|
25
|
-
"typescript": "^4.5.3"
|
26
|
-
}
|
27
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "web",
|
3
|
-
"version": "0.0.0",
|
4
|
-
"private": true,
|
5
|
-
"scripts": {
|
6
|
-
"dev": "next dev",
|
7
|
-
"build": "next build",
|
8
|
-
"start": "next start",
|
9
|
-
"lint": "next lint"
|
10
|
-
},
|
11
|
-
"dependencies": {
|
12
|
-
"next": "^13.1.1",
|
13
|
-
"react": "18.2.0",
|
14
|
-
"react-dom": "18.2.0",
|
15
|
-
"ui": "workspace:*"
|
16
|
-
},
|
17
|
-
"devDependencies": {
|
18
|
-
"@babel/core": "^7.0.0",
|
19
|
-
"eslint-config-custom": "workspace:*",
|
20
|
-
"eslint": "7.32.0",
|
21
|
-
"tsconfig": "workspace:*",
|
22
|
-
"@types/node": "^17.0.12",
|
23
|
-
"@types/react": "^18.0.22",
|
24
|
-
"@types/react-dom": "^18.0.7",
|
25
|
-
"typescript": "^4.5.3"
|
26
|
-
}
|
27
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "turborepo-basic-pnpm",
|
3
|
-
"version": "0.0.0",
|
4
|
-
"private": true,
|
5
|
-
"scripts": {
|
6
|
-
"build": "turbo run build",
|
7
|
-
"dev": "turbo run dev",
|
8
|
-
"lint": "turbo run lint",
|
9
|
-
"format": "prettier --write \"**/*.{ts,tsx,md}\""
|
10
|
-
},
|
11
|
-
"devDependencies": {
|
12
|
-
"eslint-config-custom": "workspace:*",
|
13
|
-
"prettier": "latest",
|
14
|
-
"turbo": "latest"
|
15
|
-
},
|
16
|
-
"engines": {
|
17
|
-
"node": ">=14.0.0"
|
18
|
-
}
|
19
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "ui",
|
3
|
-
"version": "0.0.0",
|
4
|
-
"main": "./index.tsx",
|
5
|
-
"types": "./index.tsx",
|
6
|
-
"license": "MIT",
|
7
|
-
"scripts": {
|
8
|
-
"lint": "eslint *.ts*"
|
9
|
-
},
|
10
|
-
"devDependencies": {
|
11
|
-
"@types/react": "^18.0.17",
|
12
|
-
"@types/react-dom": "^18.0.6",
|
13
|
-
"eslint": "^7.32.0",
|
14
|
-
"eslint-config-custom": "workspace:*",
|
15
|
-
"react": "^18.2.0",
|
16
|
-
"tsconfig": "workspace:*",
|
17
|
-
"typescript": "^4.5.2"
|
18
|
-
}
|
19
|
-
}
|
package/templates/yarn/README.md
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
# Turborepo starter
|
2
|
-
|
3
|
-
This is an official Yarn v1 starter turborepo.
|
4
|
-
|
5
|
-
## What's inside?
|
6
|
-
|
7
|
-
This turborepo uses [Yarn](https://classic.yarnpkg.com/) as a package manager. It includes the following packages/apps:
|
8
|
-
|
9
|
-
### Apps and Packages
|
10
|
-
|
11
|
-
- `docs`: a [Next.js](https://nextjs.org/) app
|
12
|
-
- `web`: another [Next.js](https://nextjs.org/) app
|
13
|
-
- `ui`: a stub React component library shared by both `web` and `docs` applications
|
14
|
-
- `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
|
15
|
-
- `tsconfig`: `tsconfig.json`s used throughout the monorepo
|
16
|
-
|
17
|
-
Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).
|
18
|
-
|
19
|
-
### Utilities
|
20
|
-
|
21
|
-
This turborepo has some additional tools already setup for you:
|
22
|
-
|
23
|
-
- [TypeScript](https://www.typescriptlang.org/) for static type checking
|
24
|
-
- [ESLint](https://eslint.org/) for code linting
|
25
|
-
- [Prettier](https://prettier.io) for code formatting
|
26
|
-
|
27
|
-
### Build
|
28
|
-
|
29
|
-
To build all apps and packages, run the following command:
|
30
|
-
|
31
|
-
```
|
32
|
-
cd my-turborepo
|
33
|
-
yarn run build
|
34
|
-
```
|
35
|
-
|
36
|
-
### Develop
|
37
|
-
|
38
|
-
To develop all apps and packages, run the following command:
|
39
|
-
|
40
|
-
```
|
41
|
-
cd my-turborepo
|
42
|
-
yarn run dev
|
43
|
-
```
|
44
|
-
|
45
|
-
### Remote Caching
|
46
|
-
|
47
|
-
Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
|
48
|
-
|
49
|
-
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:
|
50
|
-
|
51
|
-
```
|
52
|
-
cd my-turborepo
|
53
|
-
npx turbo login
|
54
|
-
```
|
55
|
-
|
56
|
-
This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).
|
57
|
-
|
58
|
-
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
|
59
|
-
|
60
|
-
```
|
61
|
-
npx turbo link
|
62
|
-
```
|
63
|
-
|
64
|
-
## Useful Links
|
65
|
-
|
66
|
-
Learn more about the power of Turborepo:
|
67
|
-
|
68
|
-
- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
|
69
|
-
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
|
70
|
-
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
|
71
|
-
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
|
72
|
-
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
|
73
|
-
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
|