feat: api-core SHA1/多transport 扩展 + JS 产物;mp lane 基建(名字真源+sync+护栏)
- api-core:新增 sha1/crypto、createSha1Signer(secret 前后包裹+全签+大写,与原生 mp sign.js 字节级一致)、createWxSender/UniSender/FetchSender/AutoSender、 GatewayStrategy.fixedParams(dispatcher 签名前并入);tsup 出 CJS+ESM+dts 供原生小程序构建 npm 消费(miniprogram 字段指 dist/index.cjs) - mp lane 基建:apps/mp/manifest.json 名字唯一真源(usedcar/sales/store/points, 含 source gitlab 仓与 backend 家族提示);scripts/sync-mp-apps.mjs 消费端 (--prune 清旧 lane;dir 含连字符时派生 camelCase 标识符修非法命名 bug); 4 个 lane 脚手架(createWxSender+createSha1Signer+fixedParams) - typescript-config/mini-program.json + eslint mp() 预设;check-boundaries 双 lane 护栏(mp 禁引 platform-core/web-*/wujie) - 根 eslint ignores:apps/mp/**/*.js(原生 mp 代码归 devtool 管,工具链只查 src/)、 temp/**(已 gitignore 的暂存目录此前被 lint:all 误扫,顺手修复)
Showing
33 changed files
with
1029 additions
and
22 deletions
apps/mp/example/eslint.config.js
0 → 100644
apps/mp/example/package.json
0 → 100644
apps/mp/example/src/index.ts
0 → 100644
apps/mp/example/tsconfig.json
0 → 100644
apps/mp/manifest.json
0 → 100644
apps/mp/sales/eslint.config.js
0 → 100644
apps/mp/sales/package.json
0 → 100644
apps/mp/sales/src/index.ts
0 → 100644
apps/mp/sales/tsconfig.json
0 → 100644
apps/mp/store/eslint.config.js
0 → 100644
apps/mp/store/package.json
0 → 100644
apps/mp/store/src/index.ts
0 → 100644
apps/mp/store/tsconfig.json
0 → 100644
apps/mp/usedcar/eslint.config.js
0 → 100644
apps/mp/usedcar/package.json
0 → 100644
apps/mp/usedcar/src/index.ts
0 → 100644
apps/mp/usedcar/tsconfig.json
0 → 100644
packages/api-core/tsup.config.ts
0 → 100644
packages/typescript-config/mini-program.json
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/sync-mp-apps.mjs
0 → 100644
-
Please register or sign in to post a comment