Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

[feature] init template #1

wants to merge 2 commits into from

Conversation

Soecka
Copy link
Contributor

@Soecka Soecka commented Feb 22, 2025

[add] github actions, husky, lint-staged, pull request template
[add] shadcn/ui, tailwindcss, eslint, prettier
[add] i18n

@Soecka Soecka added the feature label Feb 22, 2025
@Soecka Soecka requested a review from TechQuery February 22, 2025 16:32
Comment on lines +1 to +5
const config = {
plugins: ["@tailwindcss/postcss"],
};

export default config;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const config = {
plugins: ["@tailwindcss/postcss"],
};
export default config;
export default {
plugins: ["@tailwindcss/postcss"],
};

Comment on lines +4 to +6
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TEMPLATE_NAME: Next-Bootstrap-ts
TEMPLATE_NAME: Next-shadcn-ts

@@ -1 +1,36 @@
# Next-shadcn-ts
Copy link
Member

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).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文中链接用 Git Pager 刷一遍。

Comment on lines +37 to +42
console.log(
locale,
"======redirect",
pathnameIsMissingLocale,
"=======pathnameIsMissingLocale",
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log(
locale,
"======redirect",
pathnameIsMissingLocale,
"=======pathnameIsMissingLocale",
);

Comment on lines +4 to +10
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"typescript": "^5.7.3"
"typescript": "~5.7.3"

Comment on lines +51 to +52
"lint": "next lint",
"lint:all": "eslint --fix .",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"lint": "next lint",
"lint:all": "eslint --fix .",
"lint": "next lint --fix",

Next.js 封装的命令就是处理全部。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

2 participants