@coze-arch/cli 0.0.1-alpha.e665f4 → 0.0.1-alpha.e70f72
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/README.md +1 -0
- package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +1 -1
- package/lib/__templates__/expo/client/components/Screen.tsx +2 -2
- package/lib/__templates__/expo/client/eslint.config.mjs +4 -0
- package/lib/__templates__/expo/client/metro.config.js +3 -0
- package/lib/__templates__/expo/client/package.json +35 -35
- package/lib/__templates__/expo/client/scripts/install-missing-deps.js +10 -10
- package/lib/__templates__/expo/eslint-plugins/forbid-emoji/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/forbid-emoji/rule.js +112 -0
- package/lib/__templates__/expo/eslint-plugins/forbid-emoji/tech.md +94 -0
- package/lib/__templates__/expo/package.json +1 -1
- package/lib/__templates__/expo/pnpm-lock.yaml +394 -221
- 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 +1 -1
- 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/README.md +5 -0
- package/lib/__templates__/nextjs/eslint.config.mjs +5 -0
- package/lib/__templates__/nextjs/next.config.ts +1 -2
- package/lib/__templates__/nextjs/package.json +5 -6
- package/lib/__templates__/nextjs/pnpm-lock.yaml +1145 -109
- package/lib/__templates__/nextjs/scripts/build.sh +4 -1
- package/lib/__templates__/nextjs/scripts/dev.sh +4 -4
- package/lib/__templates__/nextjs/scripts/start.sh +1 -1
- package/lib/__templates__/nextjs/src/app/layout.tsx +1 -1
- package/lib/__templates__/nextjs/src/app/page.tsx +4 -3
- package/lib/__templates__/nextjs/src/server.ts +35 -0
- package/lib/__templates__/nextjs/tsconfig.json +1 -1
- package/lib/__templates__/nuxt-vue/.coze +12 -0
- package/lib/__templates__/nuxt-vue/README.md +73 -0
- package/lib/__templates__/nuxt-vue/_gitignore +24 -0
- package/lib/__templates__/nuxt-vue/_npmrc +23 -0
- package/lib/__templates__/nuxt-vue/app/app.vue +6 -0
- package/lib/__templates__/nuxt-vue/app/pages/index.vue +23 -0
- package/lib/__templates__/nuxt-vue/assets/css/main.css +24 -0
- package/lib/__templates__/nuxt-vue/nuxt.config.ts +116 -0
- package/lib/__templates__/nuxt-vue/package.json +35 -0
- package/lib/__templates__/nuxt-vue/pnpm-lock.yaml +8759 -0
- package/lib/__templates__/nuxt-vue/postcss.config.mjs +8 -0
- package/lib/__templates__/nuxt-vue/public/favicon.ico +0 -0
- package/lib/__templates__/nuxt-vue/public/robots.txt +2 -0
- package/lib/__templates__/nuxt-vue/scripts/build.sh +14 -0
- package/lib/__templates__/nuxt-vue/scripts/dev.sh +32 -0
- package/lib/__templates__/nuxt-vue/scripts/prepare.sh +14 -0
- package/lib/__templates__/nuxt-vue/scripts/start.sh +15 -0
- package/lib/__templates__/nuxt-vue/server/api/hello.ts +10 -0
- package/lib/__templates__/nuxt-vue/server/middleware/logger.ts +10 -0
- package/lib/__templates__/nuxt-vue/server/routes/health.ts +10 -0
- package/lib/__templates__/nuxt-vue/tailwind.config.js +13 -0
- package/lib/__templates__/nuxt-vue/template.config.js +87 -0
- package/lib/__templates__/nuxt-vue/tsconfig.json +18 -0
- package/lib/__templates__/taro/.cozeproj/scripts/deploy_build.sh +2 -2
- package/lib/__templates__/taro/.cozeproj/scripts/deploy_run.sh +4 -3
- 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/config/index.ts +87 -37
- package/lib/__templates__/taro/config/prod.ts +4 -5
- package/lib/__templates__/taro/eslint.config.mjs +27 -4
- package/lib/__templates__/taro/package.json +16 -4
- package/lib/__templates__/taro/patches/@tarojs__plugin-mini-ci@4.1.9.patch +30 -0
- package/lib/__templates__/taro/pnpm-lock.yaml +785 -115
- package/lib/__templates__/taro/server/package.json +3 -1
- 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/presets/dev-debug.ts +23 -0
- package/lib/__templates__/taro/src/presets/h5-container.tsx +15 -0
- package/lib/__templates__/taro/src/presets/h5-navbar.tsx +201 -0
- package/lib/__templates__/taro/src/presets/h5-styles.ts +142 -0
- package/lib/__templates__/taro/src/presets/index.tsx +18 -0
- package/lib/__templates__/templates.json +43 -0
- package/lib/__templates__/vite/README.md +190 -11
- package/lib/__templates__/vite/_gitignore +1 -0
- package/lib/__templates__/vite/eslint.config.mjs +6 -1
- package/lib/__templates__/vite/package.json +14 -3
- package/lib/__templates__/vite/pnpm-lock.yaml +820 -1593
- package/lib/__templates__/vite/scripts/build.sh +4 -1
- package/lib/__templates__/vite/scripts/dev.sh +5 -4
- package/lib/__templates__/vite/scripts/start.sh +3 -3
- package/lib/__templates__/vite/server/routes/index.ts +31 -0
- package/lib/__templates__/vite/server/server.ts +55 -0
- package/lib/__templates__/vite/server/vite.ts +71 -0
- package/lib/__templates__/vite/src/main.ts +2 -2
- package/lib/__templates__/vite/tsconfig.json +4 -3
- package/lib/__templates__/vite/vite.config.ts +1 -0
- package/lib/cli.js +123 -156
- package/package.json +7 -3
- package/lib/__templates__/taro/src/app.ts +0 -14
- package/lib/__templates__/taro/src/utils/h5-styles.ts +0 -22
- package/lib/__templates__/taro/src/utils/wx-debug.ts +0 -23
- /package/lib/__templates__/expo/patches/{expo@54.0.32.patch → expo@54.0.33.patch} +0 -0
|
@@ -1,22 +1,75 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
1
2
|
import path from 'node:path';
|
|
2
|
-
import dotenv from 'dotenv';
|
|
3
3
|
|
|
4
4
|
import tailwindcss from '@tailwindcss/postcss';
|
|
5
5
|
import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite';
|
|
6
6
|
import { defineConfig, type UserConfigExport } from '@tarojs/cli';
|
|
7
7
|
import type { PluginItem } from '@tarojs/taro/types/compile/config/project';
|
|
8
|
-
|
|
9
|
-
// 加载环境变量
|
|
10
|
-
dotenv.config({ path: path.resolve(__dirname, '../.env.local') });
|
|
11
|
-
|
|
8
|
+
import dotenv from 'dotenv';
|
|
12
9
|
import devConfig from './dev';
|
|
13
10
|
import prodConfig from './prod';
|
|
14
11
|
import pkg from '../package.json';
|
|
15
12
|
|
|
13
|
+
dotenv.config({ path: path.resolve(__dirname, '../.env.local') });
|
|
14
|
+
|
|
15
|
+
const generateTTProjectConfig = () => {
|
|
16
|
+
const config = {
|
|
17
|
+
miniprogramRoot: './',
|
|
18
|
+
projectname: '<%= appName %>',
|
|
19
|
+
appid: process.env.TARO_APP_TT_APPID || '',
|
|
20
|
+
setting: {
|
|
21
|
+
urlCheck: false,
|
|
22
|
+
es6: false,
|
|
23
|
+
postcss: false,
|
|
24
|
+
minified: false,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
const outputDir = path.resolve(__dirname, '../dist-tt');
|
|
28
|
+
if (!fs.existsSync(outputDir)) {
|
|
29
|
+
fs.mkdirSync(outputDir, { recursive: true });
|
|
30
|
+
}
|
|
31
|
+
fs.writeFileSync(
|
|
32
|
+
path.resolve(outputDir, 'project.config.json'),
|
|
33
|
+
JSON.stringify(config, null, 2),
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
16
37
|
// https://taro-docs.jd.com/docs/next/config#defineconfig-辅助函数
|
|
17
38
|
export default defineConfig<'vite'>(async (merge, _env) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
39
|
+
const outputRootMap: Record<string, string> = {
|
|
40
|
+
weapp: 'dist',
|
|
41
|
+
tt: 'dist-tt',
|
|
42
|
+
h5: 'dist-web',
|
|
43
|
+
};
|
|
44
|
+
const outputRoot = outputRootMap[process.env.TARO_ENV || ''] || 'dist-web';
|
|
45
|
+
|
|
46
|
+
const buildMiniCIPluginConfig = () => {
|
|
47
|
+
const hasWeappConfig = !!process.env.TARO_APP_WEAPP_APPID
|
|
48
|
+
const hasTTConfig = !!process.env.TARO_APP_TT_EMAIL
|
|
49
|
+
if (!hasWeappConfig && !hasTTConfig) {
|
|
50
|
+
return []
|
|
51
|
+
}
|
|
52
|
+
const miniCIConfig: Record<string, any> = {
|
|
53
|
+
version: pkg.version,
|
|
54
|
+
desc: pkg.description,
|
|
55
|
+
}
|
|
56
|
+
if (hasWeappConfig) {
|
|
57
|
+
miniCIConfig.weapp = {
|
|
58
|
+
appid: process.env.TARO_APP_WEAPP_APPID,
|
|
59
|
+
privateKeyPath: 'key/private.appid.key',
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (hasTTConfig) {
|
|
63
|
+
miniCIConfig.tt = {
|
|
64
|
+
email: process.env.TARO_APP_TT_EMAIL,
|
|
65
|
+
password: process.env.TARO_APP_TT_PASSWORD,
|
|
66
|
+
setting: {
|
|
67
|
+
skipDomainCheck: true,
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return [['@tarojs/plugin-mini-ci', miniCIConfig]] as PluginItem[]
|
|
72
|
+
}
|
|
20
73
|
|
|
21
74
|
const baseConfig: UserConfigExport<'vite'> = {
|
|
22
75
|
projectName: '<%= appName %>',
|
|
@@ -33,24 +86,7 @@ export default defineConfig<'vite'>(async (merge, _env) => {
|
|
|
33
86
|
},
|
|
34
87
|
sourceRoot: 'src',
|
|
35
88
|
outputRoot,
|
|
36
|
-
|
|
37
|
-
'@tarojs/plugin-generator',
|
|
38
|
-
...(process.env.TARO_APP_WEAPP_APPID
|
|
39
|
-
? ([
|
|
40
|
-
[
|
|
41
|
-
'@tarojs/plugin-mini-ci',
|
|
42
|
-
{
|
|
43
|
-
version: pkg.version,
|
|
44
|
-
desc: pkg.description,
|
|
45
|
-
weapp: {
|
|
46
|
-
appid: process.env.TARO_APP_WEAPP_APPID,
|
|
47
|
-
privateKeyPath: 'key/private.appid.key',
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
] as PluginItem[])
|
|
52
|
-
: []),
|
|
53
|
-
],
|
|
89
|
+
plugins: ['@tarojs/plugin-generator', ...buildMiniCIPluginConfig()],
|
|
54
90
|
defineConstants: {
|
|
55
91
|
PROJECT_DOMAIN: JSON.stringify(
|
|
56
92
|
process.env.PROJECT_DOMAIN ||
|
|
@@ -63,6 +99,13 @@ export default defineConfig<'vite'>(async (merge, _env) => {
|
|
|
63
99
|
patterns: [],
|
|
64
100
|
options: {},
|
|
65
101
|
},
|
|
102
|
+
...(process.env.TARO_ENV === 'tt' && {
|
|
103
|
+
tt: {
|
|
104
|
+
appid: process.env.TARO_APP_TT_APPID,
|
|
105
|
+
projectName: '<%= appName %>',
|
|
106
|
+
},
|
|
107
|
+
}),
|
|
108
|
+
jsMinimizer: 'esbuild',
|
|
66
109
|
framework: 'react',
|
|
67
110
|
compiler: {
|
|
68
111
|
type: 'vite',
|
|
@@ -97,11 +140,18 @@ export default defineConfig<'vite'>(async (merge, _env) => {
|
|
|
97
140
|
},
|
|
98
141
|
UnifiedViteWeappTailwindcssPlugin({
|
|
99
142
|
rem2rpx: true,
|
|
100
|
-
cssEntries: [
|
|
101
|
-
// 你 @import "tailwindcss"; 那个文件的绝对路径
|
|
102
|
-
path.resolve(__dirname, '../src/app.css'),
|
|
103
|
-
],
|
|
143
|
+
cssEntries: [path.resolve(__dirname, '../src/app.css')],
|
|
104
144
|
}),
|
|
145
|
+
...(process.env.TARO_ENV === 'tt'
|
|
146
|
+
? [
|
|
147
|
+
{
|
|
148
|
+
name: 'generate-tt-project-config',
|
|
149
|
+
closeBundle() {
|
|
150
|
+
generateTTProjectConfig();
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
]
|
|
154
|
+
: []),
|
|
105
155
|
],
|
|
106
156
|
},
|
|
107
157
|
mini: {
|
|
@@ -123,15 +173,15 @@ export default defineConfig<'vite'>(async (merge, _env) => {
|
|
|
123
173
|
publicPath: '/',
|
|
124
174
|
staticDirectory: 'static',
|
|
125
175
|
devServer: {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
},
|
|
176
|
+
port: <%= port %>,
|
|
177
|
+
host: '0.0.0.0',
|
|
178
|
+
open: false,
|
|
179
|
+
proxy: {
|
|
180
|
+
'/api': {
|
|
181
|
+
target: 'http://localhost:<%= serverPort %>',
|
|
182
|
+
changeOrigin: true,
|
|
134
183
|
},
|
|
184
|
+
},
|
|
135
185
|
},
|
|
136
186
|
miniCssExtractPluginOption: {
|
|
137
187
|
ignoreOrder: true,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { UserConfigExport } from
|
|
1
|
+
import type { UserConfigExport } from '@tarojs/cli';
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
mini: {},
|
|
5
5
|
h5: {
|
|
6
|
-
|
|
7
|
-
legacy: true,
|
|
6
|
+
legacy: false,
|
|
8
7
|
/**
|
|
9
8
|
* WebpackChain 插件配置
|
|
10
9
|
* @docs https://github.com/neutrinojs/webpack-chain
|
|
@@ -31,5 +30,5 @@ export default {
|
|
|
31
30
|
// postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') })
|
|
32
31
|
// }))
|
|
33
32
|
// }
|
|
34
|
-
}
|
|
35
|
-
} satisfies UserConfigExport<'vite'
|
|
33
|
+
},
|
|
34
|
+
} satisfies UserConfigExport<'vite'>;
|
|
@@ -16,6 +16,7 @@ export default [
|
|
|
16
16
|
'react/jsx-uses-react': 'off',
|
|
17
17
|
'react/react-in-jsx-scope': 'off',
|
|
18
18
|
'jsx-quotes': ['error', 'prefer-double'],
|
|
19
|
+
'react-hooks/exhaustive-deps': 'off',
|
|
19
20
|
},
|
|
20
21
|
},
|
|
21
22
|
{
|
|
@@ -28,7 +29,13 @@ export default [
|
|
|
28
29
|
selector:
|
|
29
30
|
"MemberExpression[object.name='process'][property.name='env']",
|
|
30
31
|
message:
|
|
31
|
-
'请勿在 src 目录下直接使用 process.env\n如需获取 URL 请求前缀,请使用已经注入全局的 PROJECT_DOMAIN
|
|
32
|
+
'请勿在 src 目录下直接使用 process.env\n如需获取 URL 请求前缀,请使用已经注入全局的 PROJECT_DOMAIN',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
selector:
|
|
36
|
+
":matches(ExportNamedDeclaration, ExportDefaultDeclaration) :matches([id.name='Network'], [declaration.id.name='Network'])",
|
|
37
|
+
message:
|
|
38
|
+
"禁止自行定义 Network,项目已提供 src/network.ts,请直接使用: import { Network } from '@/network'",
|
|
32
39
|
},
|
|
33
40
|
],
|
|
34
41
|
'no-restricted-properties': [
|
|
@@ -36,17 +43,33 @@ export default [
|
|
|
36
43
|
{
|
|
37
44
|
object: 'Taro',
|
|
38
45
|
property: 'request',
|
|
39
|
-
message:
|
|
46
|
+
message:
|
|
47
|
+
"请使用 Network.request 替代 Taro.request,导入方式: import { Network } from '@/network'",
|
|
40
48
|
},
|
|
41
49
|
{
|
|
42
50
|
object: 'Taro',
|
|
43
51
|
property: 'uploadFile',
|
|
44
|
-
message:
|
|
52
|
+
message:
|
|
53
|
+
"请使用 Network.uploadFile 替代 Taro.uploadFile,导入方式: import { Network } from '@/network'",
|
|
45
54
|
},
|
|
46
55
|
{
|
|
47
56
|
object: 'Taro',
|
|
48
57
|
property: 'downloadFile',
|
|
49
|
-
message:
|
|
58
|
+
message:
|
|
59
|
+
"请使用 Network.downloadFile 替代 Taro.downloadFile,导入方式: import { Network } from '@/network'",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
files: ['src/pages/index/index.tsx'],
|
|
66
|
+
rules: {
|
|
67
|
+
'no-restricted-syntax': [
|
|
68
|
+
'error',
|
|
69
|
+
{
|
|
70
|
+
selector: 'JSXText[value=/应用开发中/]',
|
|
71
|
+
message:
|
|
72
|
+
'检测到首页 (src/pages/index/index) 仍为默认占位页面,这会导致用户无法进入新增页面,请根据用户需求开发实际的首页功能和界面。如果已经开发了新的首页,也需要删除旧首页,并更新 src/app.config.ts 文件',
|
|
50
73
|
},
|
|
51
74
|
],
|
|
52
75
|
},
|
|
@@ -4,22 +4,27 @@
|
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Coze Mini Program Application",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "pnpm exec concurrently -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\"",
|
|
7
|
+
"build": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc,web,weapp,tt,server -c red,blue,green,yellow,cyan,magenta \"pnpm lint:build\" \"pnpm tsc\" \"pnpm build:web\" \"pnpm build:weapp\" \"pnpm build:tt\" \"pnpm build:server\"",
|
|
8
8
|
"build:server": "pnpm --filter server build",
|
|
9
|
+
"build:tt": "taro build --type tt",
|
|
9
10
|
"build:weapp": "taro build --type weapp",
|
|
10
11
|
"build:web": "taro build --type h5",
|
|
11
|
-
"dev": "pnpm exec concurrently -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
|
|
12
|
+
"dev": "pnpm exec concurrently --kill-others --kill-signal SIGKILL -n web,server -c blue,green \"pnpm dev:web\" \"pnpm dev:server\"",
|
|
12
13
|
"dev:server": "pnpm --filter server dev",
|
|
14
|
+
"dev:tt": "taro build --type tt --watch",
|
|
13
15
|
"dev:weapp": "taro build --type weapp --watch",
|
|
14
16
|
"dev:web": "taro build --type h5 --watch",
|
|
15
17
|
"preinstall": "npx only-allow pnpm",
|
|
16
18
|
"postinstall": "weapp-tw patch",
|
|
19
|
+
"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'",
|
|
17
20
|
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
18
21
|
"lint:build": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --max-warnings=0",
|
|
19
22
|
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
20
23
|
"new": "taro new",
|
|
24
|
+
"preview:tt": "taro build --type tt --preview",
|
|
21
25
|
"preview:weapp": "taro build --type weapp --preview",
|
|
22
|
-
"tsc": "npx tsc --noEmit --skipLibCheck"
|
|
26
|
+
"tsc": "npx tsc --noEmit --skipLibCheck",
|
|
27
|
+
"validate": "pnpm exec concurrently --kill-others-on-fail --kill-signal SIGKILL -n lint,tsc -c red,blue \"pnpm lint:build\" \"pnpm tsc\""
|
|
23
28
|
},
|
|
24
29
|
"lint-staged": {
|
|
25
30
|
"src/**/*.{js,jsx,ts,tsx}": [
|
|
@@ -37,13 +42,14 @@
|
|
|
37
42
|
"@tarojs/helper": "4.1.9",
|
|
38
43
|
"@tarojs/plugin-framework-react": "4.1.9",
|
|
39
44
|
"@tarojs/plugin-platform-h5": "4.1.9",
|
|
45
|
+
"@tarojs/plugin-platform-tt": "4.1.9",
|
|
40
46
|
"@tarojs/plugin-platform-weapp": "4.1.9",
|
|
41
47
|
"@tarojs/react": "4.1.9",
|
|
42
48
|
"@tarojs/runtime": "4.1.9",
|
|
43
49
|
"@tarojs/shared": "4.1.9",
|
|
44
50
|
"@tarojs/taro": "4.1.9",
|
|
45
51
|
"drizzle-kit": "^0.31.8",
|
|
46
|
-
"lucide-react": "^
|
|
52
|
+
"lucide-react-taro": "^1.2.0",
|
|
47
53
|
"react": "^18.0.0",
|
|
48
54
|
"react-dom": "^18.0.0",
|
|
49
55
|
"zustand": "^5.0.9"
|
|
@@ -78,6 +84,7 @@
|
|
|
78
84
|
"stylelint-config-standard": "^38.0.0",
|
|
79
85
|
"tailwindcss": "^4.1.18",
|
|
80
86
|
"terser": "^5.30.4",
|
|
87
|
+
"tt-ide-cli": "^0.1.31",
|
|
81
88
|
"typescript": "^5.4.5",
|
|
82
89
|
"vite": "^4.2.0",
|
|
83
90
|
"weapp-tailwindcss": "^4.9.2"
|
|
@@ -86,6 +93,11 @@
|
|
|
86
93
|
"engines": {
|
|
87
94
|
"pnpm": ">=9.0.0"
|
|
88
95
|
},
|
|
96
|
+
"pnpm": {
|
|
97
|
+
"patchedDependencies": {
|
|
98
|
+
"@tarojs/plugin-mini-ci@4.1.9": "patches/@tarojs__plugin-mini-ci@4.1.9.patch"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
89
101
|
"templateInfo": {
|
|
90
102
|
"name": "default",
|
|
91
103
|
"typescript": true,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
diff --git a/dist/TTCI.js b/dist/TTCI.js
|
|
2
|
+
index e5fe6a5f9a0ca8670ffa2b7e14cdfd8d49d0d792..6f24020a3388ea8fc7d1cbc41c1df104a8c37cb8 100644
|
|
3
|
+
--- a/dist/TTCI.js
|
|
4
|
+
+++ b/dist/TTCI.js
|
|
5
|
+
@@ -63,7 +63,10 @@ class TTCI extends BaseCi_1.default {
|
|
6
|
+
output: previewQrcodePath,
|
|
7
|
+
},
|
|
8
|
+
copyToClipboard: true,
|
|
9
|
+
- cache: true
|
|
10
|
+
+ cache: true,
|
|
11
|
+
+ ideConfig: {
|
|
12
|
+
+ skipDomainCheck: this.pluginOpts.tt && this.pluginOpts.tt.setting && this.pluginOpts.tt.setting.skipDomainCheck
|
|
13
|
+
+ }
|
|
14
|
+
});
|
|
15
|
+
console.log(chalk.green(`开发版上传成功 ${new Date().toLocaleString()}\n`));
|
|
16
|
+
const qrContent = previewResult.shortUrl;
|
|
17
|
+
diff --git a/dist/index.js b/dist/index.js
|
|
18
|
+
index bb245e34a477bcd738b18fdd754b252a456efe4f..588fe56131be52de2d798ee959ef257b4fa53313 100644
|
|
19
|
+
--- a/dist/index.js
|
|
20
|
+
+++ b/dist/index.js
|
|
21
|
+
@@ -43,7 +43,8 @@ exports.default = (ctx, _pluginOpts) => {
|
|
22
|
+
/** 字节跳动小程序上传配置 */
|
|
23
|
+
tt: joi.object({
|
|
24
|
+
email: joi.string().required(),
|
|
25
|
+
- password: joi.string().required()
|
|
26
|
+
+ password: joi.string().required(),
|
|
27
|
+
+ setting: joi.object()
|
|
28
|
+
}),
|
|
29
|
+
/** 阿里小程序上传配置 */
|
|
30
|
+
alipay: joi.alternatives().try(joi.object({
|