chore: 补全工程配置,部署云函数,建立数据库索引
- 新增 .gitignore(排除 node_modules、私有配置、编译产物) - 新增 cloudbaserc.json,绑定云环境 cloud1-d4g697lte499543d8 - project.config.json:补 miniprogramRoot、开启 useCompilerPlugins typescript,修复预览报 app.json 找不到的问题 - tsconfig.json:移除无效 typeRoots,解除 TypeScript 编译阻断 - miniprogram/app.json:移除 glass-easel(需基础库 3.x,兼容性差) - miniprogram/utils/constants.ts:填入真实云环境 ID - cloudfunctions/updateLocation:位置字段改用 GeoPoint 以支持地理索引 - cloudfunctions/getNearbyPets:改用 geoNear 聚合管道,支持真实距离排序 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
{
|
||||
"appid": "YOUR_APPID_HERE",
|
||||
"appid": "wx8b033e454024200b",
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "2.25.0",
|
||||
"libVersion": "3.16.1",
|
||||
"packOptions": {
|
||||
"ignore": [
|
||||
{ "type": "regexp", "value": "\\.eslintrc\\.js" },
|
||||
{ "type": "regexp", "value": "\\.gitignore" }
|
||||
]
|
||||
{
|
||||
"value": "\\.eslintrc\\.js",
|
||||
"type": "regexp"
|
||||
},
|
||||
{
|
||||
"value": "\\.gitignore",
|
||||
"type": "regexp"
|
||||
}
|
||||
],
|
||||
"include": []
|
||||
},
|
||||
"setting": {
|
||||
"coverView": true,
|
||||
@@ -31,19 +38,26 @@
|
||||
},
|
||||
"enableEngineNative": false,
|
||||
"bundle": false,
|
||||
"useIsolateContext": true,
|
||||
"userConfirmedBundleSwitch": false,
|
||||
"packNpmManually": false,
|
||||
"packNpmRelationList": [],
|
||||
"minifyWXSS": true,
|
||||
"disableUseStrict": false,
|
||||
"ignoreUploadUnusedFiles": true,
|
||||
"uploadWithSourceMap": true
|
||||
"compileWorklet": false,
|
||||
"minifyWXML": true,
|
||||
"localPlugins": false,
|
||||
"useCompilerPlugins": ["typescript"],
|
||||
"condition": false,
|
||||
"swc": false,
|
||||
"disableSWC": true
|
||||
},
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
"tabIndent": "insertSpaces",
|
||||
"tabSize": 2
|
||||
},
|
||||
"srcMiniprogramRoot": "miniprogram/"
|
||||
}
|
||||
"miniprogramRoot": "miniprogram/",
|
||||
"srcMiniprogramRoot": "miniprogram/",
|
||||
"simulatorPluginLibVersion": {}
|
||||
}
|
||||
Reference in New Issue
Block a user