Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit 6659409

Browse files
committed
Merge branch 'master' of github.com:zerodays/next-template into feat/custom-axiom-logging
2 parents 34cd79e + 72ce256 commit 6659409

File tree

10 files changed

+6820
-7201
lines changed

10 files changed

+6820
-7201
lines changed

.github/workflows/i18n.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
11+
- uses: pnpm/action-setup@v2
1212
with:
13-
node-version: 18
14-
cache: 'yarn'
15-
- name: Install Dependencies
16-
run: yarn add --dev ts-node
13+
run_install: true
1714
- name: Check Localization
1815
run: |
19-
yarn i18n
16+
pnpm i18n

.github/workflows/lint.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,24 @@ name: Lint
22
on:
33
push:
44
pull_request:
5-
65
jobs:
76
lint:
87
runs-on: ubuntu-latest
98
steps:
109
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
10+
- uses: pnpm/action-setup@v2
1211
with:
13-
node-version: 18
14-
cache: 'yarn'
15-
- name: Install dependencies
16-
run: yarn install --frozen-lockfile
12+
run_install: true
1713
- name: Lint
1814
run: |
19-
yarn lint
15+
pnpm lint
2016
typecheck:
2117
runs-on: ubuntu-latest
2218
steps:
2319
- uses: actions/checkout@v3
24-
- uses: actions/setup-node@v3
20+
- uses: pnpm/action-setup@v2
2521
with:
26-
node-version: 18
27-
cache: 'yarn'
28-
- name: Install dependencies
29-
run: yarn install --frozen-lockfile
22+
run_install: true
3023
- name: Typecheck
3124
run: |
32-
yarn tsc
25+
pnpm tsc

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
- uses: pnpm/action-setup@v2
15+
with:
16+
run_install: true
1417
- uses: ArtiomTr/jest-coverage-report-action@v2
1518
with:
16-
package-manager: yarn
19+
package-manager: pnpm

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
# debug
2323
npm-debug.log*
24-
yarn-debug.log*
25-
yarn-error.log*
24+
pnpm-debug.log*
25+
pnpm-error.log*
2626

2727
# local env files
2828
.env*.local

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Next.js: debug server-side",
66
"type": "node-terminal",
77
"request": "launch",
8-
"command": "yarn dev"
8+
"command": "pnpm dev"
99
},
1010
{
1111
"name": "Next.js: debug client-side",
@@ -17,7 +17,7 @@
1717
"name": "Next.js: debug full stack",
1818
"type": "node-terminal",
1919
"request": "launch",
20-
"command": "yarn dev",
20+
"command": "pnpm dev",
2121
"serverReadyAction": {
2222
"pattern": "started server on .+, url: (https?://.+)",
2323
"uriFormat": "%s",

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ This is template to bootstrap new Next.js projects. It includes everything you n
77
1. Use this template to create new Next.js project.
88

99
```
10-
yarn create next-app -e https://github.com/zerodays/next-template
10+
pnpm create next-app -e https://github.com/zerodays/next-template
1111
```
1212

1313
2. After that, install dependencies:
1414

1515
```bash
16-
yarn install
16+
pnpm install
1717
```
1818

1919
3. Start the development server:
2020

2121
```bash
22-
yarn dev
22+
pnpm dev
2323
```
2424

2525
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
2929
Lint your code and typecheck it:
3030

3131
```bash
32-
yarn lint
33-
yarn tsc
32+
pnpm lint
33+
pnpm tsc
3434
```
3535

3636
Run unit tests:
3737

3838
```bash
39-
yarn test
39+
pnpm test
4040
```
4141

4242
Check if all localizations keys match between languages:
4343

4444
```bash
45-
yarn i18n
45+
pnpm i18n
4646
```
4747

4848
Analyze bundle size:
4949

5050
```bash
51-
ANALYZE=true yarn build
51+
ANALYZE=true pnpm build
5252
```
5353

5454
## What's included?

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "next-template",
33
"version": "0.1.0",
44
"private": true,
5+
"packageManager": "[email protected]",
56
"scripts": {
67
"dev": "next dev",
78
"build": "next build",
@@ -16,7 +17,7 @@
1617
"dependencies": {
1718
"@hookform/resolvers": "^3.1.0",
1819
"@next/bundle-analyzer": "^14.0.0",
19-
"@sentry/nextjs": "7.76.0",
20+
"@sentry/nextjs": "7.77.0",
2021
"autoprefixer": "10.4.14",
2122
"next": "^14.0.0",
2223
"next-axiom": "^1.1.0",

0 commit comments

Comments
 (0)