Skip to content

Commit 4664955

Browse files
committed
upgrade next tailwind
chore
1 parent 1a820ab commit 4664955

File tree

6 files changed

+10454
-7048
lines changed

6 files changed

+10454
-7048
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ yarn-error.log*
3333
# typescript
3434
*.tsbuildinfo
3535
next-env.d.ts
36+
37+
.yarn/
38+
39+
.pnp.loader.mjs
40+
41+
.pnp.cjs

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"editor.defaultFormatter": "esbenp.prettier-vscode",
33
"editor.formatOnSave": true,
44
"editor.codeActionsOnSave": {
5-
"source.organizeImports": true
5+
"source.organizeImports": "explicit"
66
},
77
"prettier.requireConfig": true,
88
"prettier.configPath": ".prettierrc",

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# 🐕 nextjs-tailwind-starter
22

3-
A starter for Next.js 14+ with preconfigured Tailwind CSS, ESLint, VSCode Settings and Prettier.
3+
A starter for [Next.js 14+](https://nextjs.org/) with preconfigured [Tailwind CSS](https://tailwindcss.com/), [ESLint](https://eslint.org/), [VSCode](https://code.visualstudio.com/) Settings and [Prettier](https://prettier.io/).
44

5-
To get started, install [nvm](https://github.com/nvm-sh/nvm) and use it to install the desired version of Node.js and Yarn.
5+
## Getting Started
66

7+
To get started, install [nvm](https://github.com/nvm-sh/nvm) and use it to install the desired version of Node.js and [Yarn](https://yarnpkg.com/).
78

89
```bash
910
nvm install 20 # node v20
@@ -44,3 +45,13 @@ yarn test
4445
```
4546

4647
For an example of an api request, let's make a `GET` to `http://localhost:3001/api/hello`.
48+
49+
## Upgrade guide
50+
51+
```bash
52+
# Next.js
53+
yarn add next@latest react@latest react-dom@latest eslint-config-next@latest
54+
55+
# Tailwind
56+
yarn add -D tailwindcss@latest postcss@latest autoprefixer@latest @tailwindcss/typography@latest eslint-plugin-tailwindcss@latest prettier-plugin-tailwindcss@latest
57+
```

package.json

+19-14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
22
"name": "nextjs-tailwind-starter",
3-
"version": "1.0.2",
3+
"version": "1.1.1",
44
"author": "Anh-Thi Dinh",
55
"private": true,
6+
"engines": {
7+
"npm": "^10.0.8",
8+
"node": "^20.10.0"
9+
},
10+
"packageManager": "yarn@4.1.1",
11+
"license": "MIT",
612
"scripts": {
713
"dev": "next dev",
814
"build": "next build",
@@ -19,38 +25,37 @@
1925
"@types/node": "20.9.0",
2026
"@types/react": "18.2.37",
2127
"@types/react-dom": "18.2.15",
22-
"autoprefixer": "10.4.16",
23-
"classnames": "^2.3.2",
24-
"eslint": "8.53.0",
25-
"eslint-config-next": "14.0.2",
26-
"next": "^14.0.2",
27-
"react": "18.2.0",
28-
"react-dom": "18.2.0",
28+
"eslint": "8.56.0",
29+
"eslint-config-next": "^14.2.3",
30+
"next": "^14.2.3",
31+
"react": "^18.3.1",
32+
"react-dom": "^18.3.1",
2933
"sass": "^1.69.5",
30-
"typescript": "5.2.2"
34+
"typescript": "5.3.3"
3135
},
3236
"devDependencies": {
33-
"@tailwindcss/typography": "^0.5.10",
37+
"@tailwindcss/typography": "^0.5.13",
3438
"@testing-library/jest-dom": "^6.1.4",
3539
"@testing-library/react": "^14.1.0",
3640
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
3741
"@types/jest": "^29.5.8",
3842
"@typescript-eslint/eslint-plugin": "^6.10.0",
3943
"@typescript-eslint/parser": "^6.10.0",
44+
"autoprefixer": "^10.4.19",
4045
"eslint-config-prettier": "^9.0.0",
4146
"eslint-config-react-app": "^7.0.1",
4247
"eslint-plugin-prettier": "^5.0.1",
4348
"eslint-plugin-react": "^7.33.2",
44-
"eslint-plugin-tailwindcss": "^3.13.0",
49+
"eslint-plugin-tailwindcss": "^3.17.0",
4550
"eslint-plugin-unicorn": "^49.0.0",
4651
"eslint-plugin-unused-imports": "^3.0.0",
4752
"jest": "^29.7.0",
4853
"jest-environment-jsdom": "^29.7.0",
49-
"postcss": "8.4.31",
54+
"postcss": "^8.4.38",
5055
"prettier": "^3.0.3",
5156
"prettier-plugin-organize-imports": "^3.2.4",
52-
"prettier-plugin-tailwindcss": "^0.5.7",
57+
"prettier-plugin-tailwindcss": "^0.6.1",
5358
"rimraf": "^5.0.5",
54-
"tailwindcss": "3.3.5"
59+
"tailwindcss": "^3.4.3"
5560
}
5661
}
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
/** @type {import('tailwindcss').Config} */
21
module.exports = {
32
content: [
43
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
54
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
6-
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
5+
'./src/app/**/*.{js,ts,jsx,tsx,mdx}'
76
],
87
theme: {
98
extend: {
109
backgroundImage: {
1110
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
12-
'gradient-conic':
13-
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
14-
},
15-
},
11+
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))'
12+
}
13+
}
1614
},
17-
plugins: [],
15+
plugins: []
1816
}

0 commit comments

Comments
 (0)