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
|
@@ -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
|
+
[1m[38;2;173;127;168m▲ Next.js 15.3.6[39m[22m
|
|
7
|
+
|
|
8
|
+
[37m[1m [22m[39m Creating an optimized production build ...
|
|
9
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (148kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
10
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (148kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
11
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
12
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
13
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
14
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
15
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (148kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
16
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (148kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
17
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
18
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
19
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
20
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
21
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
22
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
23
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
24
|
+
<w> [1m[33m[webpack.cache.PackFileCacheStrategy] Serializing big strings (147kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)[39m[22m
|
|
25
|
+
[32m[1m✓[22m[39m Compiled successfully in 11.0s
|
|
26
|
+
[?25l [37m[1m [22m[39m Linting and checking validity of types [36m.[39m[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m..[39m ⨯ 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
|
+
[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m...[39m[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m.[39m[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m..[39m[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m...[39m[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m.[39m[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m..[39m[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m...[39m[2K[1G [37m[1m [22m[39m Linting and checking validity of types [36m.[39mFailed 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
|
+
[2K[1G[?25hNext.js build worker exited with code: 1 and signal: null
|
|
35
|
+
[?25l
|
|
36
|
[36m.[39m
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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.
|
|
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.
|
|
22
|
-
"react-dom": "^19.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
|
+
}
|