This repository was archived by the owner on May 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +6820
-7201
lines changed Expand file tree Collapse file tree 10 files changed +6820
-7201
lines changed Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v3
11
- - uses : actions/setup-node@v3
11
+ - uses : pnpm/action-setup@v2
12
12
with :
13
- node-version : 18
14
- cache : ' yarn'
15
- - name : Install Dependencies
16
- run : yarn add --dev ts-node
13
+ run_install : true
17
14
- name : Check Localization
18
15
run : |
19
- yarn i18n
16
+ pnpm i18n
Original file line number Diff line number Diff line change @@ -2,31 +2,24 @@ name: Lint
2
2
on :
3
3
push :
4
4
pull_request :
5
-
6
5
jobs :
7
6
lint :
8
7
runs-on : ubuntu-latest
9
8
steps :
10
9
- uses : actions/checkout@v3
11
- - uses : actions/setup-node@v3
10
+ - uses : pnpm/action-setup@v2
12
11
with :
13
- node-version : 18
14
- cache : ' yarn'
15
- - name : Install dependencies
16
- run : yarn install --frozen-lockfile
12
+ run_install : true
17
13
- name : Lint
18
14
run : |
19
- yarn lint
15
+ pnpm lint
20
16
typecheck :
21
17
runs-on : ubuntu-latest
22
18
steps :
23
19
- uses : actions/checkout@v3
24
- - uses : actions/setup-node@v3
20
+ - uses : pnpm/action-setup@v2
25
21
with :
26
- node-version : 18
27
- cache : ' yarn'
28
- - name : Install dependencies
29
- run : yarn install --frozen-lockfile
22
+ run_install : true
30
23
- name : Typecheck
31
24
run : |
32
- yarn tsc
25
+ pnpm tsc
Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v3
14
+ - uses : pnpm/action-setup@v2
15
+ with :
16
+ run_install : true
14
17
- uses : ArtiomTr/jest-coverage-report-action@v2
15
18
with :
16
- package-manager : yarn
19
+ package-manager : pnpm
Original file line number Diff line number Diff line change 21
21
22
22
# debug
23
23
npm-debug.log *
24
- yarn -debug.log*
25
- yarn -error.log*
24
+ pnpm -debug.log*
25
+ pnpm -error.log*
26
26
27
27
# local env files
28
28
.env * .local
Original file line number Diff line number Diff line change 5
5
"name" : " Next.js: debug server-side" ,
6
6
"type" : " node-terminal" ,
7
7
"request" : " launch" ,
8
- "command" : " yarn dev"
8
+ "command" : " pnpm dev"
9
9
},
10
10
{
11
11
"name" : " Next.js: debug client-side" ,
17
17
"name" : " Next.js: debug full stack" ,
18
18
"type" : " node-terminal" ,
19
19
"request" : " launch" ,
20
- "command" : " yarn dev" ,
20
+ "command" : " pnpm dev" ,
21
21
"serverReadyAction" : {
22
22
"pattern" : " started server on .+, url: (https?://.+)" ,
23
23
"uriFormat" : " %s" ,
Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ This is template to bootstrap new Next.js projects. It includes everything you n
7
7
1 . Use this template to create new Next.js project.
8
8
9
9
```
10
- yarn create next-app -e https://github.com/zerodays/next-template
10
+ pnpm create next-app -e https://github.com/zerodays/next-template
11
11
```
12
12
13
13
2 . After that, install dependencies:
14
14
15
15
``` bash
16
- yarn install
16
+ pnpm install
17
17
```
18
18
19
19
3 . Start the development server:
20
20
21
21
``` bash
22
- yarn dev
22
+ pnpm dev
23
23
```
24
24
25
25
Open [ http://localhost:3000 ] ( http://localhost:3000 ) with your browser to see the result.
@@ -29,26 +29,26 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
29
29
Lint your code and typecheck it:
30
30
31
31
``` bash
32
- yarn lint
33
- yarn tsc
32
+ pnpm lint
33
+ pnpm tsc
34
34
```
35
35
36
36
Run unit tests:
37
37
38
38
``` bash
39
- yarn test
39
+ pnpm test
40
40
```
41
41
42
42
Check if all localizations keys match between languages:
43
43
44
44
``` bash
45
- yarn i18n
45
+ pnpm i18n
46
46
```
47
47
48
48
Analyze bundle size:
49
49
50
50
``` bash
51
- ANALYZE=true yarn build
51
+ ANALYZE=true pnpm build
52
52
```
53
53
54
54
## What's included?
Original file line number Diff line number Diff line change 2
2
"name" : " next-template" ,
3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
+ "packageManager" :
" [email protected] " ,
5
6
"scripts" : {
6
7
"dev" : " next dev" ,
7
8
"build" : " next build" ,
16
17
"dependencies" : {
17
18
"@hookform/resolvers" : " ^3.1.0" ,
18
19
"@next/bundle-analyzer" : " ^14.0.0" ,
19
- "@sentry/nextjs" : " 7.76 .0" ,
20
+ "@sentry/nextjs" : " 7.77 .0" ,
20
21
"autoprefixer" : " 10.4.14" ,
21
22
"next" : " ^14.0.0" ,
22
23
"next-axiom" : " ^1.1.0" ,
You can’t perform that action at this time.
0 commit comments