-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] init template #1
base: main
Are you sure you want to change the base?
Conversation
…e templates [add] shadcn/ui, tailwindcss, eslint, prettier
const config = { | ||
plugins: ["@tailwindcss/postcss"], | ||
}; | ||
|
||
export default config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const config = { | |
plugins: ["@tailwindcss/postcss"], | |
}; | |
export default config; | |
export default { | |
plugins: ["@tailwindcss/postcss"], | |
}; |
export function cn(...inputs: ClassValue[]) { | ||
return twMerge(clsx(inputs)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export function cn(...inputs: ClassValue[]) { | |
return twMerge(clsx(inputs)); | |
} | |
export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs)); |
- main | ||
env: | ||
TEMPLATE_OWNER: idea2app | ||
TEMPLATE_NAME: Next-Bootstrap-ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TEMPLATE_NAME: Next-Bootstrap-ts | |
TEMPLATE_NAME: Next-shadcn-ts |
@@ -1 +1,36 @@ | |||
# Next-shadcn-ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一级标题保留
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文中链接用 Git Pager 刷一遍。
console.log( | ||
locale, | ||
"======redirect", | ||
pathnameIsMissingLocale, | ||
"=======pathnameIsMissingLocale", | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log( | |
locale, | |
"======redirect", | |
pathnameIsMissingLocale, | |
"=======pathnameIsMissingLocale", | |
); |
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"noEmit": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"lib": ["dom", "dom.iterable", "esnext"], | |
"allowJs": true, | |
"skipLibCheck": true, | |
"strict": true, | |
"noEmit": true, | |
"esModuleInterop": true, | |
"module": "esnext", | |
"lib": ["DOM", "DOM.Iterable", "ESNext"], | |
"allowJs": true, | |
"skipLibCheck": true, | |
"strict": true, | |
"noEmit": true, | |
"esModuleInterop": true, | |
"module": "ESNext", |
"class-variance-authority": "^0.7.1", | ||
"clsx": "^2.1.1", | ||
"lucide-react": "^0.475.0", | ||
"next": "15.1.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"next": "15.1.7", | |
"next": "^15.1.7", |
"husky": "^9.1.7", | ||
"lint-staged": "^15.4.3", | ||
"tailwindcss": "^4.0.8", | ||
"typescript": "^5.7.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"typescript": "^5.7.3" | |
"typescript": "~5.7.3" |
"lint": "next lint", | ||
"lint:all": "eslint --fix .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"lint": "next lint", | |
"lint:all": "eslint --fix .", | |
"lint": "next lint --fix", |
Next.js 封装的命令就是处理全部。
[add] github actions, husky, lint-staged, pull request template
[add] shadcn/ui, tailwindcss, eslint, prettier
[add] i18n