Skip to content

Commit cb15f89

Browse files
authored
Merge pull request #9 from danangekal/feature/update-next-deps
perf: update deps next, eslint, husky, prettier, ts & other
2 parents 3b3ece3 + 3eb3a77 commit cb15f89

File tree

4 files changed

+1165
-1792
lines changed

4 files changed

+1165
-1792
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ You can check [demo](https://next-typescript-tailwind-starter.vercel.app/)
66

77
## Features
88

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.
1111
- [Typescript 4](https://www.typescriptlang.org/) - Documentation of typescript.
1212
- [Next PWA 5](https://www.npmjs.com/package/next-pwa) - Documentation of next pwa.
1313
- [Tailwind CSS 3](https://tailwindcss.com/docs/) - Documentation of tailwind css.
1414
- [Next PWA 5](https://www.npmjs.com/package/next-pwa) - Documentation of next pwa.
1515
- [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.
1717
- [Prettier 2](https://prettier.io/docs/en/index.html) - Documentation of prettier.
1818
- [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.
2020

2121
## Usage
2222

23-
This project using node >= 12.13.0 & yarn
23+
This project using node >= 14.19.2 & yarn
2424

2525
### Installation
2626

next.config.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
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+
});
27

38
module.exports = withPWA({
4-
pwa: {
5-
disable: process.env.NODE_ENV === 'development',
6-
dest: 'public',
7-
},
9+
reactStrictMode: true,
10+
swcMinify: true,
811
});

package.json

+19-18
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,28 @@
3939
"postpublish": "pinst --enable"
4040
},
4141
"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"
4949
},
5050
"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"
6162
},
6263
"engines": {
63-
"node": ">=12.13.0"
64+
"node": ">=14.19.2"
6465
}
6566
}

0 commit comments

Comments
 (0)