@rx-frontend/pages-collect
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

小程序路由收集

主要用于收集小程序的路由作为后台选择器的选择列表,并上传的oss上。

使用

pnpm i -D @rx-frontend/pages-collect

npx pages-collect --upload

参数说明

  -p, --path [path]  [string] pages.json所在的位置
  --region <region>  bucket所在地域
  --key <key>        accessKeyId
  --secret <secret>  accessKeySecret
  --bucket <bucket>  bucket名称
  --upload <env>     是否上传到oss上
  -h, --help         Display this message
  -v, --version      Display version number

数据结构

字段 取值
label style.navigatorTitleText
value path

pages.json扩展

字段 说明
__CP_NAME__ 优化级比navigatorTitleText
__CP_EXCLUDE__ 路由收集时会被忽略

文件配置

通过文件collect.config可以进行oss上传的配置,支持以下文件类型

  • collect.config.js
  • collect.config.mjs
  • collect.config.ts
  • collect.config.cjs
  • collect.config.mts
  • collect.config.cts
import { defineConfig } from '@rx-frontend/pages-collect'

export default defineConfig({
  ...
})

Readme

Keywords

none

Package Sidebar

Install

npm i @rx-frontend/pages-collect

Weekly Downloads

3

Version

0.1.3

License

ISC

Unpacked Size

1.11 MB

Total Files

12

Last publish

Collaborators

  • rx-frontend