@coze-arch/cli 0.0.1-alpha.d85d9d → 0.0.1-alpha.db1c06
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/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +13 -12
- package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +9 -8
- package/lib/__templates__/expo/client/metro.config.js +3 -0
- package/lib/__templates__/expo/client/package.json +35 -35
- package/lib/__templates__/expo/client/screens/demo/index.tsx +3 -3
- package/lib/__templates__/expo/package.json +1 -1
- package/lib/__templates__/expo/patches/{expo@54.0.32.patch → expo@54.0.33.patch} +3 -2
- package/lib/__templates__/expo/pnpm-lock.yaml +340 -1736
- package/lib/__templates__/expo/server/package.json +9 -7
- package/lib/__templates__/expo/server/src/index.ts +1 -0
- package/lib/__templates__/expo/template.config.js +56 -0
- package/lib/__templates__/native-static/.coze +11 -0
- package/lib/__templates__/native-static/index.html +33 -0
- package/lib/__templates__/native-static/styles/main.css +136 -0
- package/lib/__templates__/native-static/template.config.js +22 -0
- package/lib/__templates__/nextjs/package.json +3 -1
- package/lib/__templates__/nextjs/pnpm-lock.yaml +119 -106
- package/lib/__templates__/nextjs/src/app/page.tsx +18 -60
- package/lib/__templates__/nextjs/template.config.js +49 -14
- package/lib/__templates__/taro/.coze +1 -1
- package/lib/__templates__/taro/.cozeproj/scripts/deploy_build.sh +5 -6
- package/lib/__templates__/taro/.cozeproj/scripts/deploy_run.sh +6 -8
- package/lib/__templates__/taro/.cozeproj/scripts/dev_build.sh +0 -15
- package/lib/__templates__/taro/.cozeproj/scripts/dev_run.sh +117 -24
- package/lib/__templates__/taro/.cozeproj/scripts/pack.sh +24 -1
- package/lib/__templates__/taro/README.md +81 -17
- package/lib/__templates__/taro/_gitignore +40 -0
- package/lib/__templates__/taro/_npmrc +18 -0
- package/lib/__templates__/taro/config/index.ts +4 -3
- package/lib/__templates__/taro/eslint.config.mjs +79 -0
- package/lib/__templates__/taro/package.json +32 -33
- package/lib/__templates__/taro/pnpm-lock.yaml +742 -677
- package/lib/__templates__/taro/server/package.json +10 -7
- package/lib/__templates__/taro/server/src/main.ts +14 -2
- package/lib/__templates__/taro/src/app.css +18 -18
- package/lib/__templates__/taro/src/app.tsx +9 -0
- package/lib/__templates__/taro/src/index.html +20 -1
- package/lib/__templates__/taro/src/pages/index/index.tsx +14 -11
- package/lib/__templates__/taro/src/presets/h5-navbar.tsx +171 -0
- package/lib/__templates__/taro/src/{utils → presets}/h5-styles.ts +15 -4
- package/lib/__templates__/taro/src/presets/index.tsx +18 -0
- package/lib/__templates__/taro/src/presets/wx-debug.ts +23 -0
- package/lib/__templates__/templates.json +11 -0
- package/lib/__templates__/vite/package.json +5 -1
- package/lib/__templates__/vite/pnpm-lock.yaml +146 -1659
- package/lib/__templates__/vite/src/main.ts +17 -47
- package/lib/__templates__/vite/template.config.js +49 -14
- package/lib/__templates__/vite/vite.config.ts +1 -0
- package/lib/cli.js +62 -68
- package/package.json +2 -1
- package/lib/__templates__/taro/.eslintrc +0 -40
- package/lib/__templates__/taro/commitlint.config.mjs +0 -1
- package/lib/__templates__/taro/src/app.ts +0 -28
|
@@ -3,29 +3,30 @@
|
|
|
3
3
|
"version": "1.0.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Coze Mini Program Application",
|
|
6
|
-
"templateInfo": {
|
|
7
|
-
"name": "default",
|
|
8
|
-
"typescript": true,
|
|
9
|
-
"css": "Less",
|
|
10
|
-
"framework": "React"
|
|
11
|
-
},
|
|
12
6
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"build
|
|
15
|
-
"
|
|
7
|
+
"build": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,weapp,server -c red,blue,green,yellow,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:weapp\" \"pnpm build:server\"",
|
|
8
|
+
"build:server": "pnpm --filter server build",
|
|
9
|
+
"build:weapp": "taro build --type weapp",
|
|
10
|
+
"build:web": "taro build --type h5",
|
|
11
|
+
"dev": "pnpm exec concurrently --kill-others --kill-signal SIGKILL -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
|
|
12
|
+
"dev:server": "pnpm --filter server dev",
|
|
13
|
+
"dev:weapp": "taro build --type weapp --watch",
|
|
14
|
+
"dev:web": "taro build --type h5 --watch",
|
|
15
|
+
"preinstall": "npx only-allow pnpm",
|
|
16
16
|
"postinstall": "weapp-tw patch",
|
|
17
|
-
"
|
|
18
|
-
"prepare": "husky",
|
|
17
|
+
"kill:all": "pkill -9 -f 'concurrently' 2>/dev/null || true; pkill -9 -f 'nest start' 2>/dev/null || true; pkill -9 -f 'taro build' 2>/dev/null || true; pkill -9 -f 'node.*dev' 2>/dev/null || true; echo 'All dev processes cleaned'",
|
|
19
18
|
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
20
19
|
"lint:build": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --max-warnings=0",
|
|
21
20
|
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
21
|
+
"new": "taro new",
|
|
22
|
+
"preview:weapp": "taro build --type weapp --preview",
|
|
22
23
|
"tsc": "npx tsc --noEmit --skipLibCheck",
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
"validate": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc -c red,blue \"pnpm lint:build\" \"pnpm tsc\""
|
|
25
|
+
},
|
|
26
|
+
"lint-staged": {
|
|
27
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
28
|
+
"eslint"
|
|
29
|
+
]
|
|
29
30
|
},
|
|
30
31
|
"browserslist": [
|
|
31
32
|
"last 3 versions",
|
|
@@ -37,30 +38,23 @@
|
|
|
37
38
|
"@tarojs/components": "4.1.9",
|
|
38
39
|
"@tarojs/helper": "4.1.9",
|
|
39
40
|
"@tarojs/plugin-framework-react": "4.1.9",
|
|
40
|
-
"@tarojs/plugin-platform-alipay": "4.1.9",
|
|
41
41
|
"@tarojs/plugin-platform-h5": "4.1.9",
|
|
42
|
-
"@tarojs/plugin-platform-harmony-hybrid": "4.1.9",
|
|
43
|
-
"@tarojs/plugin-platform-jd": "4.1.9",
|
|
44
|
-
"@tarojs/plugin-platform-qq": "4.1.9",
|
|
45
|
-
"@tarojs/plugin-platform-swan": "4.1.9",
|
|
46
|
-
"@tarojs/plugin-platform-tt": "4.1.9",
|
|
47
42
|
"@tarojs/plugin-platform-weapp": "4.1.9",
|
|
48
43
|
"@tarojs/react": "4.1.9",
|
|
49
44
|
"@tarojs/runtime": "4.1.9",
|
|
50
45
|
"@tarojs/shared": "4.1.9",
|
|
51
46
|
"@tarojs/taro": "4.1.9",
|
|
52
|
-
"
|
|
47
|
+
"drizzle-kit": "^0.31.8",
|
|
48
|
+
"lucide-react-taro": "^1.2.0",
|
|
53
49
|
"react": "^18.0.0",
|
|
54
50
|
"react-dom": "^18.0.0",
|
|
55
|
-
"drizzle-kit": "^0.31.8",
|
|
56
51
|
"zustand": "^5.0.9"
|
|
57
52
|
},
|
|
58
53
|
"devDependencies": {
|
|
59
54
|
"@babel/core": "^7.24.4",
|
|
60
55
|
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
61
56
|
"@babel/preset-react": "^7.24.1",
|
|
62
|
-
"@
|
|
63
|
-
"@commitlint/config-conventional": "^19.8.1",
|
|
57
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
64
58
|
"@tailwindcss/postcss": "^4.1.18",
|
|
65
59
|
"@tarojs/cli": "4.1.9",
|
|
66
60
|
"@tarojs/plugin-generator": "4.1.9",
|
|
@@ -76,10 +70,10 @@
|
|
|
76
70
|
"eslint-config-taro": "4.1.9",
|
|
77
71
|
"eslint-plugin-react": "^7.34.1",
|
|
78
72
|
"eslint-plugin-react-hooks": "^4.4.0",
|
|
79
|
-
"husky": "^9.1.7",
|
|
80
73
|
"less": "^4.2.0",
|
|
81
74
|
"lint-staged": "^16.1.2",
|
|
82
75
|
"miniprogram-ci": "^2.1.26",
|
|
76
|
+
"only-allow": "^1.2.2",
|
|
83
77
|
"postcss": "^8.5.6",
|
|
84
78
|
"react-refresh": "^0.14.0",
|
|
85
79
|
"stylelint": "^16.4.0",
|
|
@@ -90,9 +84,14 @@
|
|
|
90
84
|
"vite": "^4.2.0",
|
|
91
85
|
"weapp-tailwindcss": "^4.9.2"
|
|
92
86
|
},
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
87
|
+
"packageManager": "pnpm@9.0.0",
|
|
88
|
+
"engines": {
|
|
89
|
+
"pnpm": ">=9.0.0"
|
|
90
|
+
},
|
|
91
|
+
"templateInfo": {
|
|
92
|
+
"name": "default",
|
|
93
|
+
"typescript": true,
|
|
94
|
+
"css": "Less",
|
|
95
|
+
"framework": "React"
|
|
97
96
|
}
|
|
98
|
-
}
|
|
97
|
+
}
|