create-wenuts-cli 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wenuts-cli",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx lint-staged
@@ -0,0 +1,14 @@
1
+ {
2
+ "printWidth": 180,
3
+ "tabWidth": 4,
4
+ "useTabs": false,
5
+ "semi": true,
6
+ "singleQuote": true,
7
+ "arrowParens": "avoid",
8
+ "bracketSpacing": true,
9
+ "htmlWhitespaceSensitivity": "ignore",
10
+ "stylelintIntegration": false,
11
+ "trailingComma": "es5",
12
+ "tslintIntegration": false,
13
+ "plugins": ["prettier-plugin-tailwindcss"]
14
+ }
@@ -0,0 +1,35 @@
1
+
2
+ 
3
+ > wenuts-template-default@0.1.0 build /Users/wenuts/Desktop/create-project-template/create-project-template/packages/cli/template/default
4
+ > next build
5
+
6
+ ▲ Next.js 15.3.6
7
+
8
+   Creating an optimized production build ...
9
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (148kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
10
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (148kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
11
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
12
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
13
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
14
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
15
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (148kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
16
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (148kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
17
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
18
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
19
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
20
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
21
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
22
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
23
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
24
+ <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
25
+ ✓ Compiled successfully in 11.0s
26
+ [?25l   Linting and checking validity of types .   Linting and checking validity of types .. ⨯ ESLint: Cannot find package 'eslint-plugin-prettier' imported from /Users/wenuts/Desktop/create-project-template/create-project-template/packages/cli/template/default/eslint.config.mjs
27
+    Linting and checking validity of types ...   Linting and checking validity of types .   Linting and checking validity of types ..   Linting and checking validity of types ...   Linting and checking validity of types .   Linting and checking validity of types ..   Linting and checking validity of types ...   Linting and checking validity of types .Failed to compile.
28
+
29
+ src/app/[local]/(no-layout)/login/page.tsx
30
+ Type error: Type 'IProps' does not satisfy the constraint 'PageProps'.
31
+ Types of property 'searchParams' are incompatible.
32
+ Type '{ redirect: string; }' is missing the following properties from type 'Promise<any>': then, catch, finally, [Symbol.toStringTag]
33
+
34
+ [?25hNext.js build worker exited with code: 1 and signal: null
35
+ [?25l
36
  .
@@ -1,15 +1,24 @@
1
- export default {
2
- extends: ["next/core-web-vitals", "plugin:prettier/recommended"],
3
- env: {
4
- browser: true,
5
- node: true,
6
- es6: true,
7
- },
8
- rules: {
9
- "prettier/prettier": 2,
10
- "import/no-anonymous-default-export": 0,
11
- "react-hooks/exhaustive-deps": 0,
12
- "react/no-children-prop": 0,
13
- "react/no-unescaped-entities": 0,
14
- },
15
- };
1
+ /**
2
+ * eslint-plugin-prettier: 将 Prettier 的格式化问题作为 ESLint 的规则来报告。
3
+ * eslint-config-prettier: 关闭所有与 Prettier 冲突的 ESLint 格式化规则,
4
+ */
5
+
6
+ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
7
+ import { FlatCompat } from '@eslint/eslintrc';
8
+
9
+ const compat = new FlatCompat({});
10
+
11
+ const eslintConfig = [
12
+ ...compat.config({
13
+ extends: ['next/core-web-vitals', 'prettier'],
14
+ }),
15
+ {
16
+ rules: {
17
+ 'react-hooks/exhaustive-deps': 'off',
18
+ 'import/no-anonymous-default-export': 'off',
19
+ },
20
+ },
21
+ eslintPluginPrettierRecommended,
22
+ ];
23
+
24
+ export default eslintConfig;
@@ -6,20 +6,21 @@
6
6
  "dev": "next dev",
7
7
  "build": "next build",
8
8
  "start": "next start",
9
- "lint": "next lint"
9
+ "lint": "next lint",
10
+ "prepare": "husky"
10
11
  },
11
12
  "dependencies": {
12
13
  "@mantine/core": "^8.1.2",
13
14
  "@mantine/hooks": "^8.1.2",
14
15
  "@types/js-cookie": "^3.0.6",
15
16
  "js-cookie": "^3.0.5",
16
- "next": "15.3.5",
17
+ "next": "15.3.6",
17
18
  "next-auth": "^4.24.11",
18
19
  "next-extra": "^0.6.2",
19
20
  "next-intl": "^4.3.4",
20
21
  "query-string": "^9.2.2",
21
- "react": "^19.0.0",
22
- "react-dom": "^19.0.0",
22
+ "react": "^19.0.1",
23
+ "react-dom": "^19.0.1",
23
24
  "sonner": "^2.0.6",
24
25
  "zustand": "^5.0.6"
25
26
  },
@@ -34,7 +35,20 @@
34
35
  "postcss": "^8.5.6",
35
36
  "postcss-preset-mantine": "^1.18.0",
36
37
  "postcss-simple-vars": "^7.0.1",
38
+ "prettier": "^3.7.4",
39
+ "prettier-eslint": "^16.4.2",
37
40
  "tailwindcss": "^4",
38
- "typescript": "^5"
41
+ "typescript": "^5",
42
+ "husky": "^9.0.11",
43
+ "lint-staged": "^15.2.0"
44
+ },
45
+ "lint-staged": {
46
+ "*.{js,jsx,ts,tsx}": [
47
+ "eslint --max-warnings=0",
48
+ "prettier --write"
49
+ ],
50
+ "*.{json,css,scss,md}": [
51
+ "prettier --write"
52
+ ]
39
53
  }
40
- }
54
+ }