File tree 4 files changed +1165
-1792
lines changed
4 files changed +1165
-1792
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,21 @@ You can check [demo](https://next-typescript-tailwind-starter.vercel.app/)
6
6
7
7
## Features
8
8
9
- - [ React.js 17 ] ( https://reactjs.org/blog/2020/10/20 /react-v17 .html ) - Blog introduce react v17 .0.
10
- - [ Next.js 12] ( https://nextjs.org/blog/next-12 ) - Blog introduce next.js 11 .
9
+ - [ React.js 18 ] ( https://reactjs.org/blog/2022/03/29 /react-v18 .html ) - Blog introduce react v18 .0.
10
+ - [ Next.js 12] ( https://nextjs.org/blog/next-12 ) - Blog introduce next.js 12 .
11
11
- [ Typescript 4] ( https://www.typescriptlang.org/ ) - Documentation of typescript.
12
12
- [ Next PWA 5] ( https://www.npmjs.com/package/next-pwa ) - Documentation of next pwa.
13
13
- [ Tailwind CSS 3] ( https://tailwindcss.com/docs/ ) - Documentation of tailwind css.
14
14
- [ Next PWA 5] ( https://www.npmjs.com/package/next-pwa ) - Documentation of next pwa.
15
15
- [ Docker] ( https://docs.docker.com/ ) - Documentation of Docker.
16
- - [ Eslint 7 ] ( https://eslint.org/docs/user-guide/getting-started ) - Documentation of eslint.
16
+ - [ Eslint 8 ] ( https://eslint.org/docs/user-guide/getting-started ) - Documentation of eslint.
17
17
- [ Prettier 2] ( https://prettier.io/docs/en/index.html ) - Documentation of prettier.
18
18
- [ Husky 7] ( https://typicode.github.io/husky/#/ ) - Documentation of husky.
19
- - [ Lint Staged 12 ] ( https://github.com/okonet/lint-staged ) - Documentation of lint staged.
19
+ - [ Lint Staged 13 ] ( https://github.com/okonet/lint-staged ) - Documentation of lint staged.
20
20
21
21
## Usage
22
22
23
- This project using node >= 12.13.0 & yarn
23
+ This project using node >= 14.19.2 & yarn
24
24
25
25
### Installation
26
26
Original file line number Diff line number Diff line change 1
- const withPWA = require ( 'next-pwa' ) ;
1
+ /** @type {import('next').NextConfig } */
2
+
3
+ const withPWA = require ( 'next-pwa' ) ( {
4
+ disable : process . env . NODE_ENV === 'development' ,
5
+ dest : 'public' ,
6
+ } ) ;
2
7
3
8
module . exports = withPWA ( {
4
- pwa : {
5
- disable : process . env . NODE_ENV === 'development' ,
6
- dest : 'public' ,
7
- } ,
9
+ reactStrictMode : true ,
10
+ swcMinify : true ,
8
11
} ) ;
Original file line number Diff line number Diff line change 39
39
"postpublish" : " pinst --enable"
40
40
},
41
41
"dependencies" : {
42
- "autoprefixer" : " ^10.4.1 " ,
43
- "next" : " ^12.0.7 " ,
44
- "next-pwa" : " ^5.4.4 " ,
45
- "postcss" : " ^8.4.5 " ,
46
- "react" : " ^17.0.2 " ,
47
- "react-dom" : " ^17.0.2 " ,
48
- "tailwindcss" : " ^3.0 .8"
42
+ "autoprefixer" : " ^10.4.12 " ,
43
+ "next" : " ^12.3.1 " ,
44
+ "next-pwa" : " ^5.6.0 " ,
45
+ "postcss" : " ^8.4.17 " ,
46
+ "react" : " ^18.2.0 " ,
47
+ "react-dom" : " ^18.2.0 " ,
48
+ "tailwindcss" : " ^3.1 .8"
49
49
},
50
50
"devDependencies" : {
51
- "@types/node" : " ^16.10.3" ,
52
- "@types/react" : " ^17.0.37" ,
53
- "eslint" : " 8.5.0" ,
54
- "eslint-config-next" : " ^12.0.7" ,
55
- "eslint-config-prettier" : " ^8.3.0" ,
56
- "husky" : " ^7.0.4" ,
57
- "lint-staged" : " ^12.1.3" ,
58
- "pinst" : " ^2.1.6" ,
59
- "prettier" : " ^2.5.1" ,
60
- "typescript" : " ^4.5.4"
51
+ "@types/node" : " 18.8.4" ,
52
+ "@types/react" : " ^18.0.21" ,
53
+ "@types/react-dom" : " 18.0.6" ,
54
+ "eslint" : " 8.25.0" ,
55
+ "eslint-config-next" : " ^12.3.1" ,
56
+ "eslint-config-prettier" : " ^8.5.0" ,
57
+ "husky" : " ^8.0.1" ,
58
+ "lint-staged" : " ^13.0.3" ,
59
+ "pinst" : " ^3.0.0" ,
60
+ "prettier" : " ^2.7.1" ,
61
+ "typescript" : " 4.8.4"
61
62
},
62
63
"engines" : {
63
- "node" : " >=12.13.0 "
64
+ "node" : " >=14.19.2 "
64
65
}
65
66
}
You can’t perform that action at this time.
0 commit comments