Skip to content

Commit 3b3ece3

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

File tree

6 files changed

+1473
-1777
lines changed

6 files changed

+1473
-1777
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ You can check [demo](https://next-typescript-tailwind-starter.vercel.app/)
77
## Features
88

99
- [React.js 17](https://reactjs.org/blog/2020/10/20/react-v17.html) - Blog introduce react v17.0.
10-
- [Next.js 11](https://nextjs.org/blog/next-11) - Blog introduce next.js 11.
10+
- [Next.js 12](https://nextjs.org/blog/next-12) - Blog introduce next.js 11.
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.
13-
- [Tailwind CSS 2](https://tailwindcss.com/docs/) - Documentation of tailwind css.
13+
- [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.
1616
- [Eslint 7](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 11](https://github.com/okonet/lint-staged) - Documentation of lint staged.
19+
- [Lint Staged 12](https://github.com/okonet/lint-staged) - Documentation of lint staged.
2020

2121
## Usage
2222

next-env.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
32
/// <reference types="next/image-types/global" />
43

54
// NOTE: This file should not be edited

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,25 @@
3939
"postpublish": "pinst --enable"
4040
},
4141
"dependencies": {
42-
"autoprefixer": "^10.3.7",
43-
"next": "^11.1.2",
44-
"next-pwa": "^5.3.1",
45-
"postcss": "^8.3.9",
42+
"autoprefixer": "^10.4.1",
43+
"next": "^12.0.7",
44+
"next-pwa": "^5.4.4",
45+
"postcss": "^8.4.5",
4646
"react": "^17.0.2",
4747
"react-dom": "^17.0.2",
48-
"tailwindcss": "^2.2.16"
48+
"tailwindcss": "^3.0.8"
4949
},
5050
"devDependencies": {
5151
"@types/node": "^16.10.3",
52-
"@types/react": "^17.0.27",
53-
"eslint": "7.32.0",
54-
"eslint-config-next": "^11.1.2",
52+
"@types/react": "^17.0.37",
53+
"eslint": "8.5.0",
54+
"eslint-config-next": "^12.0.7",
5555
"eslint-config-prettier": "^8.3.0",
56-
"husky": "^7.0.2",
57-
"lint-staged": "^11.2.3",
56+
"husky": "^7.0.4",
57+
"lint-staged": "^12.1.3",
5858
"pinst": "^2.1.6",
59-
"prettier": "^2.4.1",
60-
"typescript": "^4.3.5"
59+
"prettier": "^2.5.1",
60+
"typescript": "^4.5.4"
6161
},
6262
"engines": {
6363
"node": ">=12.13.0"

tailwind.config.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
module.exports = {
2-
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
3-
darkMode: false, // or 'media' or 'class'
2+
content: [
3+
'./pages/**/*.{js,ts,jsx,tsx}',
4+
'./components/**/*.{js,ts,jsx,tsx}',
5+
],
6+
darkMode: 'media', // or 'media' or 'class'
47
theme: {
58
extend: {},
69
},

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
/* Advanced Options */
6262
"skipLibCheck": true /* Skip type checking of declaration files. */,
6363
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
64-
"resolveJsonModule": true
64+
"resolveJsonModule": true,
65+
"incremental": true
6566
},
6667
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
6768
"exclude": ["node_modules", ".next"]

0 commit comments

Comments
 (0)