refactor: 项目架构重构 - 目录标准化 + 清理冗余
- 目录重命名: backend/wdkj-server/ → server/, frontend/ai-dimension/ → client/ - 删除 20+ 冗余文件(WDKJ 旧脚本、Windows 脚本、过时文档、设计稿) - 更新 package.json 元数据(移除 wdkj 命名) - 完善三级 .gitignore(根 + server + client) - 重写 README.md 和 CHANGELOG.md - 工具脚本移至 scripts/
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
const ci = require('miniprogram-ci');
|
||||
const path = require('path');
|
||||
|
||||
(async () => {
|
||||
const project = new ci.Project({
|
||||
appid: 'wxdad62baf4ccd09e3',
|
||||
type: 'miniProgram',
|
||||
projectPath: path.resolve(__dirname, 'frontend/ai-dimension/dist/build/mp-weixin'),
|
||||
privateKeyPath: path.resolve('/root/Hermes-workspace/宇之然AI维度appid/private.wxdad62baf4ccd09e3.key'),
|
||||
ignores: ['node_modules/**/*'],
|
||||
});
|
||||
|
||||
console.log('→ 正在上传微信小程序...');
|
||||
const uploadResult = await ci.upload({
|
||||
project,
|
||||
version: '1.1.0',
|
||||
desc: 'AI维度 - 完整版开发',
|
||||
setting: {
|
||||
es6: true,
|
||||
es7: true,
|
||||
minify: true,
|
||||
autoPrefixWXSS: true,
|
||||
},
|
||||
onProgressUpdate: console.log,
|
||||
});
|
||||
console.log('✅ 上传成功!', uploadResult);
|
||||
})().catch(err => {
|
||||
console.error('❌ 上传失败:', err);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user