Skip to content

Commit d79fc7a

Browse files
committed
update 03-boilerplate
1 parent 4f46d7b commit d79fc7a

38 files changed

+46
-30
lines changed

04-frameworks/08-nextjs/03-boilerplate/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
Next.js is unopinionated about how you [organize your project](https://nextjs.org/docs/app/building-your-application/routing/colocation) but it gives you some features to avoid create unnecessary routes like:
44

5+
- [src directory](https://nextjs.org/docs/app/building-your-application/routing/colocation#src-directory)
6+
7+
- [Store project files outside of app](https://nextjs.org/docs/app/building-your-application/routing/colocation#store-project-files-outside-of-app)
8+
59
- [Private folders](https://nextjs.org/docs/app/building-your-application/routing/colocation#private-folders) using underscore as prefix: `_folderName`.
610

711
- [Route groups](https://nextjs.org/docs/app/building-your-application/routing/colocation#route-groups): `(folderName)` to groups several routes under the same folder without create a new group route.
812

9-
- Or even [store files outside `app` folder](https://nextjs.org/docs/app/building-your-application/routing/colocation#store-project-files-outside-of-app)
10-
1113
- [Using fonts](https://nextjs.org/docs/app/building-your-application/optimizing/fonts)
14+
- [Font display values](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display#values)
1215

1316
- [Working on support emotion and MUI](https://nextjs.org/docs/app/building-your-application/styling/css-in-js)
1417

04-frameworks/08-nextjs/03-boilerplate/api-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "Lemoncode",
1010
"license": "MIT",
1111
"devDependencies": {
12-
"json-server": "^0.17.3"
12+
"json-server": "^1.0.0-beta.2"
1313
}
1414
}

04-frameworks/08-nextjs/03-boilerplate/app/cars/[carId]/_components/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

04-frameworks/08-nextjs/03-boilerplate/app/cars/_components/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

04-frameworks/08-nextjs/03-boilerplate/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

04-frameworks/08-nextjs/03-boilerplate/package.json

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,29 @@
99
"start:api-server": "cd api-server && npm run mock-server",
1010
"postinstall": "cd ./api-server && npm install"
1111
},
12+
"imports": {
13+
"#*": [
14+
"./src/*",
15+
"./src/*.ts",
16+
"./src/*.tsx",
17+
"./src/*/index.ts",
18+
"./src/*/index.tsx"
19+
]
20+
},
1221
"author": "Lemoncode",
1322
"license": "MIT",
1423
"dependencies": {
15-
"next": "^14.1.0",
24+
"next": "^14.2.9",
1625
"normalize.css": "^8.0.1",
17-
"react": "^18.2.0",
18-
"react-dom": "^18.2.0",
19-
"sharp": "^0.33.2"
26+
"react": "^18.3.1",
27+
"react-dom": "^18.3.1"
2028
},
2129
"devDependencies": {
22-
"@types/node": "20.11.16",
23-
"@types/react": "^18.2.55",
24-
"@types/react-dom": "^18.2.19",
30+
"@types/node": "22.5.4",
31+
"@types/react": "^18.3.5",
32+
"@types/react-dom": "^18.3.0",
2533
"npm-run-all": "^4.1.5",
26-
"rimraf": "^5.0.5",
27-
"typescript": "^5.3.3"
34+
"rimraf": "^6.0.1",
35+
"typescript": "^5.6.2"
2836
}
2937
}

0 commit comments

Comments
 (0)