@coze-arch/cli 0.0.1-alpha.d5effa → 0.0.1-alpha.de5a13
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/.coze +7 -2
- package/lib/__templates__/expo/.cozeproj/scripts/dev_build.sh +46 -0
- package/lib/__templates__/expo/.cozeproj/scripts/dev_run.sh +229 -0
- package/lib/__templates__/expo/.cozeproj/scripts/prod_build.sh +47 -0
- package/lib/__templates__/expo/.cozeproj/scripts/prod_run.sh +34 -0
- package/lib/__templates__/expo/.cozeproj/scripts/server_dev_run.sh +46 -0
- package/lib/__templates__/expo/README.md +68 -7
- package/lib/__templates__/expo/_gitignore +1 -1
- package/lib/__templates__/expo/_npmrc +2 -4
- package/lib/__templates__/expo/client/app/+not-found.tsx +15 -64
- package/lib/__templates__/expo/client/app/_layout.tsx +15 -12
- package/lib/__templates__/expo/client/app/index.tsx +1 -0
- package/lib/__templates__/expo/client/app.config.ts +76 -0
- package/lib/__templates__/expo/client/components/Screen.tsx +1 -17
- package/lib/__templates__/expo/client/components/ThemedText.tsx +33 -0
- package/lib/__templates__/expo/client/components/ThemedView.tsx +37 -0
- package/lib/__templates__/expo/client/constants/theme.ts +117 -58
- package/lib/__templates__/expo/client/declarations.d.ts +5 -0
- package/lib/__templates__/expo/{eslint.config.mjs → client/eslint.config.mjs} +33 -10
- package/lib/__templates__/expo/client/hooks/useColorScheme.tsx +48 -0
- package/lib/__templates__/expo/client/hooks/useSafeRouter.ts +152 -0
- package/lib/__templates__/expo/client/hooks/useTheme.ts +26 -6
- package/lib/__templates__/expo/client/metro.config.js +121 -0
- package/lib/__templates__/expo/client/package.json +95 -0
- package/lib/__templates__/expo/client/screens/demo/index.tsx +25 -0
- package/lib/__templates__/expo/client/screens/demo/styles.ts +28 -0
- package/lib/__templates__/expo/client/scripts/install-missing-deps.js +1 -0
- package/lib/__templates__/expo/client/tsconfig.json +24 -0
- package/lib/__templates__/expo/client/utils/index.ts +22 -0
- package/lib/__templates__/expo/eslint-plugins/fontawesome6/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/fontawesome6/names.js +1889 -0
- package/lib/__templates__/expo/eslint-plugins/fontawesome6/rule.js +174 -0
- package/lib/__templates__/expo/eslint-plugins/fontawesome6/v5-only-names.js +388 -0
- package/lib/__templates__/expo/eslint-plugins/react-native/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/react-native/rule.js +64 -0
- package/lib/__templates__/expo/eslint-plugins/reanimated/index.js +9 -0
- package/lib/__templates__/expo/eslint-plugins/reanimated/rule.js +88 -0
- package/lib/__templates__/expo/package.json +16 -103
- package/lib/__templates__/expo/patches/expo@54.0.33.patch +45 -0
- package/lib/__templates__/expo/pnpm-lock.yaml +1436 -3173
- package/lib/__templates__/expo/pnpm-workspace.yaml +3 -0
- package/lib/__templates__/expo/server/build.js +21 -0
- package/lib/__templates__/expo/server/package.json +34 -0
- package/lib/__templates__/expo/server/src/index.ts +20 -0
- package/lib/__templates__/expo/server/tsconfig.json +24 -0
- package/lib/__templates__/expo/template.config.js +57 -0
- package/lib/__templates__/expo/tsconfig.json +1 -24
- package/lib/__templates__/nextjs/.babelrc +12 -0
- package/lib/__templates__/nextjs/.coze +1 -0
- package/lib/__templates__/nextjs/_npmrc +1 -0
- package/lib/__templates__/nextjs/next.config.ts +12 -0
- package/lib/__templates__/nextjs/package.json +13 -2
- package/lib/__templates__/nextjs/pnpm-lock.yaml +2679 -1786
- package/lib/__templates__/nextjs/scripts/prepare.sh +9 -0
- package/lib/__templates__/nextjs/src/app/globals.css +109 -89
- package/lib/__templates__/nextjs/src/app/layout.tsx +5 -14
- package/lib/__templates__/nextjs/src/app/page.tsx +18 -48
- package/lib/__templates__/nextjs/src/components/ui/resizable.tsx +29 -22
- package/lib/__templates__/nextjs/src/components/ui/sidebar.tsx +228 -230
- package/lib/__templates__/nextjs/template.config.js +67 -2
- package/lib/__templates__/taro/.coze +14 -0
- package/lib/__templates__/taro/.cozeproj/scripts/deploy_build.sh +19 -0
- package/lib/__templates__/taro/.cozeproj/scripts/deploy_run.sh +14 -0
- package/lib/__templates__/taro/.cozeproj/scripts/dev_build.sh +2 -0
- package/lib/__templates__/taro/.cozeproj/scripts/dev_run.sh +81 -0
- package/lib/__templates__/taro/.cozeproj/scripts/init_env.sh +5 -0
- package/lib/__templates__/taro/.cozeproj/scripts/pack.sh +1 -0
- package/lib/__templates__/taro/README.md +687 -0
- package/lib/__templates__/taro/_gitignore +40 -0
- package/lib/__templates__/taro/_npmrc +18 -0
- package/lib/__templates__/taro/babel.config.js +12 -0
- package/lib/__templates__/taro/config/dev.ts +9 -0
- package/lib/__templates__/taro/config/index.ts +173 -0
- package/lib/__templates__/taro/config/prod.ts +35 -0
- package/lib/__templates__/taro/eslint.config.mjs +57 -0
- package/lib/__templates__/taro/key/private.appid.key +0 -0
- package/lib/__templates__/taro/package.json +96 -0
- package/lib/__templates__/taro/pnpm-lock.yaml +22428 -0
- package/lib/__templates__/taro/pnpm-workspace.yaml +2 -0
- package/lib/__templates__/taro/project.config.json +15 -0
- package/lib/__templates__/taro/server/nest-cli.json +10 -0
- package/lib/__templates__/taro/server/package.json +38 -0
- package/lib/__templates__/taro/server/src/app.controller.ts +23 -0
- package/lib/__templates__/taro/server/src/app.module.ts +10 -0
- package/lib/__templates__/taro/server/src/app.service.ts +8 -0
- package/lib/__templates__/taro/server/src/interceptors/http-status.interceptor.ts +23 -0
- package/lib/__templates__/taro/server/src/main.ts +49 -0
- package/lib/__templates__/taro/server/tsconfig.json +24 -0
- package/lib/__templates__/taro/src/app.config.ts +11 -0
- package/lib/__templates__/taro/src/app.css +63 -0
- package/lib/__templates__/taro/src/app.ts +14 -0
- package/lib/__templates__/taro/src/index.html +39 -0
- package/lib/__templates__/taro/src/network.ts +39 -0
- package/lib/__templates__/taro/src/pages/index/index.config.ts +3 -0
- package/lib/__templates__/taro/src/pages/index/index.css +1 -0
- package/lib/__templates__/taro/src/pages/index/index.tsx +33 -0
- package/lib/__templates__/taro/src/utils/h5-styles.ts +22 -0
- package/lib/__templates__/taro/src/utils/wx-debug.ts +23 -0
- package/lib/__templates__/taro/stylelint.config.mjs +4 -0
- package/lib/__templates__/taro/template.config.js +68 -0
- package/lib/__templates__/taro/tsconfig.json +29 -0
- package/lib/__templates__/taro/types/global.d.ts +32 -0
- package/lib/__templates__/templates.json +93 -43
- package/lib/__templates__/vite/.coze +1 -0
- package/lib/__templates__/vite/_npmrc +1 -0
- package/lib/__templates__/vite/eslint.config.mjs +9 -0
- package/lib/__templates__/vite/package.json +13 -2
- package/lib/__templates__/vite/pnpm-lock.yaml +1694 -222
- package/lib/__templates__/vite/scripts/prepare.sh +9 -0
- package/lib/__templates__/vite/src/main.ts +17 -48
- package/lib/__templates__/vite/template.config.js +67 -6
- package/lib/__templates__/vite/vite.config.ts +0 -1
- package/lib/cli.js +986 -148
- package/package.json +8 -3
- package/lib/__templates__/expo/.cozeproj/scripts/deploy_build.sh +0 -116
- package/lib/__templates__/expo/.cozeproj/scripts/deploy_run.sh +0 -239
- package/lib/__templates__/expo/app.json +0 -63
- package/lib/__templates__/expo/babel.config.js +0 -9
- package/lib/__templates__/expo/client/app/(tabs)/_layout.tsx +0 -43
- package/lib/__templates__/expo/client/app/(tabs)/home.tsx +0 -1
- package/lib/__templates__/expo/client/app/(tabs)/index.tsx +0 -7
- package/lib/__templates__/expo/client/hooks/useColorScheme.ts +0 -1
- package/lib/__templates__/expo/client/index.js +0 -12
- package/lib/__templates__/expo/client/screens/home/index.tsx +0 -51
- package/lib/__templates__/expo/client/screens/home/styles.ts +0 -60
- package/lib/__templates__/expo/metro.config.js +0 -53
- package/lib/__templates__/expo/src/index.ts +0 -12
- package/lib/__templates__/nextjs/.vscode/settings.json +0 -121
- package/lib/__templates__/vite/.vscode/settings.json +0 -7
- /package/lib/__templates__/expo/{eslint-formatter-simple.mjs → client/eslint-formatter-simple.mjs} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
loglevel=error
|
|
2
|
+
registry=https://registry.npmmirror.com
|
|
3
|
+
|
|
4
|
+
strictStorePkgContentCheck=false
|
|
5
|
+
verifyStoreIntegrity=false
|
|
6
|
+
|
|
7
|
+
network-concurrency=16
|
|
8
|
+
fetch-retries=3
|
|
9
|
+
fetch-timeout=60000
|
|
10
|
+
|
|
11
|
+
strict-peer-dependencies=false
|
|
12
|
+
|
|
13
|
+
auto-install-peers=true
|
|
14
|
+
|
|
15
|
+
lockfile=true
|
|
16
|
+
prefer-frozen-lockfile=true
|
|
17
|
+
|
|
18
|
+
resolution-mode=highest
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import dotenv from 'dotenv';
|
|
3
|
+
|
|
4
|
+
import tailwindcss from '@tailwindcss/postcss';
|
|
5
|
+
import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite';
|
|
6
|
+
import { defineConfig, type UserConfigExport } from '@tarojs/cli';
|
|
7
|
+
import type { PluginItem } from '@tarojs/taro/types/compile/config/project';
|
|
8
|
+
|
|
9
|
+
// 加载环境变量
|
|
10
|
+
dotenv.config({ path: path.resolve(__dirname, '../.env.local') });
|
|
11
|
+
|
|
12
|
+
import devConfig from './dev';
|
|
13
|
+
import prodConfig from './prod';
|
|
14
|
+
import pkg from '../package.json';
|
|
15
|
+
|
|
16
|
+
// https://taro-docs.jd.com/docs/next/config#defineconfig-辅助函数
|
|
17
|
+
export default defineConfig<'vite'>(async (merge, _env) => {
|
|
18
|
+
const isWeChatApp = process.env.TARO_ENV === 'weapp';
|
|
19
|
+
const outputRoot = isWeChatApp ? 'dist' : 'dist-web';
|
|
20
|
+
|
|
21
|
+
const baseConfig: UserConfigExport<'vite'> = {
|
|
22
|
+
projectName: '<%= appName %>',
|
|
23
|
+
date: '2026-1-13',
|
|
24
|
+
alias: {
|
|
25
|
+
'@': path.resolve(__dirname, '..', 'src'),
|
|
26
|
+
},
|
|
27
|
+
designWidth: 750,
|
|
28
|
+
deviceRatio: {
|
|
29
|
+
640: 2.34 / 2,
|
|
30
|
+
750: 1,
|
|
31
|
+
375: 2,
|
|
32
|
+
828: 1.81 / 2,
|
|
33
|
+
},
|
|
34
|
+
sourceRoot: 'src',
|
|
35
|
+
outputRoot,
|
|
36
|
+
plugins: [
|
|
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
|
+
],
|
|
54
|
+
defineConstants: {
|
|
55
|
+
PROJECT_DOMAIN: JSON.stringify(
|
|
56
|
+
process.env.PROJECT_DOMAIN ||
|
|
57
|
+
process.env.COZE_PROJECT_DOMAIN_DEFAULT ||
|
|
58
|
+
'',
|
|
59
|
+
),
|
|
60
|
+
TARO_ENV: JSON.stringify(process.env.TARO_ENV),
|
|
61
|
+
},
|
|
62
|
+
copy: {
|
|
63
|
+
patterns: [],
|
|
64
|
+
options: {},
|
|
65
|
+
},
|
|
66
|
+
framework: 'react',
|
|
67
|
+
compiler: {
|
|
68
|
+
type: 'vite',
|
|
69
|
+
vitePlugins: [
|
|
70
|
+
{
|
|
71
|
+
name: 'postcss-config-loader-plugin',
|
|
72
|
+
config(config) {
|
|
73
|
+
// 通过 postcss 配置注册 tailwindcss 插件
|
|
74
|
+
if (typeof config.css?.postcss === 'object') {
|
|
75
|
+
config.css?.postcss.plugins?.unshift(tailwindcss());
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'hmr-config-plugin',
|
|
81
|
+
config() {
|
|
82
|
+
if (!process.env.PROJECT_DOMAIN) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
server: {
|
|
87
|
+
hmr: {
|
|
88
|
+
overlay: true,
|
|
89
|
+
path: '/hot/vite-hmr',
|
|
90
|
+
port: 6000,
|
|
91
|
+
clientPort: 443,
|
|
92
|
+
timeout: 30000,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
UnifiedViteWeappTailwindcssPlugin({
|
|
99
|
+
rem2rpx: true,
|
|
100
|
+
cssEntries: [
|
|
101
|
+
// 你 @import "tailwindcss"; 那个文件的绝对路径
|
|
102
|
+
path.resolve(__dirname, '../src/app.css'),
|
|
103
|
+
],
|
|
104
|
+
}),
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
mini: {
|
|
108
|
+
postcss: {
|
|
109
|
+
pxtransform: {
|
|
110
|
+
enable: true,
|
|
111
|
+
config: {},
|
|
112
|
+
},
|
|
113
|
+
cssModules: {
|
|
114
|
+
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
|
|
115
|
+
config: {
|
|
116
|
+
namingPattern: 'module', // 转换模式,取值为 global/module
|
|
117
|
+
generateScopedName: '[name]__[local]___[hash:base64:5]',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
h5: {
|
|
123
|
+
publicPath: '/',
|
|
124
|
+
staticDirectory: 'static',
|
|
125
|
+
devServer: {
|
|
126
|
+
port: <%= port %>,
|
|
127
|
+
host: '0.0.0.0',
|
|
128
|
+
open: false,
|
|
129
|
+
proxy: {
|
|
130
|
+
'/api': {
|
|
131
|
+
target: 'http://localhost:<%= serverPort %>',
|
|
132
|
+
changeOrigin: true,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
miniCssExtractPluginOption: {
|
|
137
|
+
ignoreOrder: true,
|
|
138
|
+
filename: 'css/[name].[hash].css',
|
|
139
|
+
chunkFilename: 'css/[name].[chunkhash].css',
|
|
140
|
+
},
|
|
141
|
+
postcss: {
|
|
142
|
+
autoprefixer: {
|
|
143
|
+
enable: true,
|
|
144
|
+
config: {},
|
|
145
|
+
},
|
|
146
|
+
cssModules: {
|
|
147
|
+
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
|
|
148
|
+
config: {
|
|
149
|
+
namingPattern: 'module', // 转换模式,取值为 global/module
|
|
150
|
+
generateScopedName: '[name]__[local]___[hash:base64:5]',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
rn: {
|
|
156
|
+
appName: '<%= appName %>',
|
|
157
|
+
postcss: {
|
|
158
|
+
cssModules: {
|
|
159
|
+
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
process.env.BROWSERSLIST_ENV = process.env.NODE_ENV;
|
|
166
|
+
|
|
167
|
+
if (process.env.NODE_ENV === 'development') {
|
|
168
|
+
// 本地开发构建配置(不混淆压缩)
|
|
169
|
+
return merge({}, baseConfig, devConfig);
|
|
170
|
+
}
|
|
171
|
+
// 生产构建配置(默认开启压缩混淆等)
|
|
172
|
+
return merge({}, baseConfig, prodConfig);
|
|
173
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { UserConfigExport } from "@tarojs/cli"
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
mini: {},
|
|
5
|
+
h5: {
|
|
6
|
+
// 确保产物为 es5
|
|
7
|
+
legacy: true,
|
|
8
|
+
/**
|
|
9
|
+
* WebpackChain 插件配置
|
|
10
|
+
* @docs https://github.com/neutrinojs/webpack-chain
|
|
11
|
+
*/
|
|
12
|
+
// webpackChain (chain) {
|
|
13
|
+
// /**
|
|
14
|
+
// * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。
|
|
15
|
+
// * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer
|
|
16
|
+
// */
|
|
17
|
+
// chain.plugin('analyzer')
|
|
18
|
+
// .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
|
|
19
|
+
// /**
|
|
20
|
+
// * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。
|
|
21
|
+
// * @docs https://github.com/chrisvfritz/prerender-spa-plugin
|
|
22
|
+
// */
|
|
23
|
+
// const path = require('path')
|
|
24
|
+
// const Prerender = require('prerender-spa-plugin')
|
|
25
|
+
// const staticDir = path.join(__dirname, '..', 'dist')
|
|
26
|
+
// chain
|
|
27
|
+
// .plugin('prerender')
|
|
28
|
+
// .use(new Prerender({
|
|
29
|
+
// staticDir,
|
|
30
|
+
// routes: [ '/pages/index/index' ],
|
|
31
|
+
// postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') })
|
|
32
|
+
// }))
|
|
33
|
+
// }
|
|
34
|
+
}
|
|
35
|
+
} satisfies UserConfigExport<'vite'>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { FlatCompat } from '@eslint/eslintrc';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = path.dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const compat = new FlatCompat({
|
|
9
|
+
baseDirectory: __dirname,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export default [
|
|
13
|
+
...compat.extends('taro/react'),
|
|
14
|
+
{
|
|
15
|
+
rules: {
|
|
16
|
+
'react/jsx-uses-react': 'off',
|
|
17
|
+
'react/react-in-jsx-scope': 'off',
|
|
18
|
+
'jsx-quotes': ['error', 'prefer-double'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
files: ['src/**/*.{js,jsx,ts,tsx}'],
|
|
23
|
+
ignores: ['src/network.ts'],
|
|
24
|
+
rules: {
|
|
25
|
+
'no-restricted-syntax': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
selector:
|
|
29
|
+
"MemberExpression[object.name='process'][property.name='env']",
|
|
30
|
+
message:
|
|
31
|
+
'请勿在 src 目录下直接使用 process.env\n如需获取 URL 请求前缀,请使用已经注入全局的 PROJECT_DOMAIN()',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
'no-restricted-properties': [
|
|
35
|
+
'error',
|
|
36
|
+
{
|
|
37
|
+
object: 'Taro',
|
|
38
|
+
property: 'request',
|
|
39
|
+
message: '请使用 Network.request 替代 Taro.request',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
object: 'Taro',
|
|
43
|
+
property: 'uploadFile',
|
|
44
|
+
message: '请使用 Network.uploadFile 替代 Taro.uploadFile',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
object: 'Taro',
|
|
48
|
+
property: 'downloadFile',
|
|
49
|
+
message: '请使用 Network.downloadFile 替代 Taro.downloadFile',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
ignores: ['dist/**', 'dist-*/**', 'node_modules/**'],
|
|
56
|
+
},
|
|
57
|
+
];
|
|
File without changes
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= appName %>",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"description": "Coze Mini Program Application",
|
|
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\"",
|
|
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 -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
|
+
"postinstall": "weapp-tw patch",
|
|
17
|
+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
18
|
+
"lint:build": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --max-warnings=0",
|
|
19
|
+
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
20
|
+
"new": "taro new",
|
|
21
|
+
"preview:weapp": "taro build --type weapp --preview",
|
|
22
|
+
"tsc": "npx tsc --noEmit --skipLibCheck"
|
|
23
|
+
},
|
|
24
|
+
"lint-staged": {
|
|
25
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
26
|
+
"eslint"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"browserslist": [
|
|
30
|
+
"last 3 versions",
|
|
31
|
+
"Android >= 4.1",
|
|
32
|
+
"ios >= 8"
|
|
33
|
+
],
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@babel/runtime": "^7.24.4",
|
|
36
|
+
"@tarojs/components": "4.1.9",
|
|
37
|
+
"@tarojs/helper": "4.1.9",
|
|
38
|
+
"@tarojs/plugin-framework-react": "4.1.9",
|
|
39
|
+
"@tarojs/plugin-platform-h5": "4.1.9",
|
|
40
|
+
"@tarojs/plugin-platform-weapp": "4.1.9",
|
|
41
|
+
"@tarojs/react": "4.1.9",
|
|
42
|
+
"@tarojs/runtime": "4.1.9",
|
|
43
|
+
"@tarojs/shared": "4.1.9",
|
|
44
|
+
"@tarojs/taro": "4.1.9",
|
|
45
|
+
"drizzle-kit": "^0.31.8",
|
|
46
|
+
"lucide-react": "^0.511.0",
|
|
47
|
+
"react": "^18.0.0",
|
|
48
|
+
"react-dom": "^18.0.0",
|
|
49
|
+
"zustand": "^5.0.9"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@babel/core": "^7.24.4",
|
|
53
|
+
"@babel/plugin-transform-class-properties": "7.25.9",
|
|
54
|
+
"@babel/preset-react": "^7.24.1",
|
|
55
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
56
|
+
"@supabase/supabase-js": "2.95.3",
|
|
57
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
58
|
+
"@tarojs/cli": "4.1.9",
|
|
59
|
+
"@tarojs/plugin-generator": "4.1.9",
|
|
60
|
+
"@tarojs/plugin-mini-ci": "^4.1.9",
|
|
61
|
+
"@tarojs/vite-runner": "4.1.9",
|
|
62
|
+
"@types/minimatch": "^5",
|
|
63
|
+
"@types/react": "^18.0.0",
|
|
64
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
65
|
+
"babel-preset-taro": "4.1.9",
|
|
66
|
+
"concurrently": "^9.2.1",
|
|
67
|
+
"dotenv": "^17.2.3",
|
|
68
|
+
"eslint": "^8.57.0",
|
|
69
|
+
"eslint-config-taro": "4.1.9",
|
|
70
|
+
"eslint-plugin-react": "^7.34.1",
|
|
71
|
+
"eslint-plugin-react-hooks": "^4.4.0",
|
|
72
|
+
"less": "^4.2.0",
|
|
73
|
+
"lint-staged": "^16.1.2",
|
|
74
|
+
"miniprogram-ci": "^2.1.26",
|
|
75
|
+
"only-allow": "^1.2.2",
|
|
76
|
+
"postcss": "^8.5.6",
|
|
77
|
+
"react-refresh": "^0.14.0",
|
|
78
|
+
"stylelint": "^16.4.0",
|
|
79
|
+
"stylelint-config-standard": "^38.0.0",
|
|
80
|
+
"tailwindcss": "^4.1.18",
|
|
81
|
+
"terser": "^5.30.4",
|
|
82
|
+
"typescript": "^5.4.5",
|
|
83
|
+
"vite": "^4.2.0",
|
|
84
|
+
"weapp-tailwindcss": "^4.9.2"
|
|
85
|
+
},
|
|
86
|
+
"packageManager": "pnpm@9.0.0",
|
|
87
|
+
"engines": {
|
|
88
|
+
"pnpm": ">=9.0.0"
|
|
89
|
+
},
|
|
90
|
+
"templateInfo": {
|
|
91
|
+
"name": "default",
|
|
92
|
+
"typescript": true,
|
|
93
|
+
"css": "Less",
|
|
94
|
+
"framework": "React"
|
|
95
|
+
}
|
|
96
|
+
}
|