
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
@cloudbase/framework-plugin-auth
Advanced tools
云开发 Tencent CloudBase Framework Auth Plugin 插件,可以一键设置项目下的登录配置。
云开发 CloudBase Framework 框架「小程序」插件: 通过云开发 CloudBase Framework 框架一键部署微信小程序应用。
具体步骤请参照 准备云开发环境和 CloudBase CLI 命令工具
如果是目前已有的小程序应用项目
cloudbase
cloudbase framework:deploy
默认情况下仅需要配置 appid、privateKeyPath 即可使用,以下配置参数针对有特殊需求的场景
cloudbase init 之后会创建云开发的配置文件 cloudbaserc.json,可在配置文件的 plugins 里修改和写入插件配置
{
"envId": "{{envId}}",
"framework": {
"plugins": {
"client": {
"use": "@cloudbase/framework-plugin-mp",
"inputs": {
"appid": "",
"privateKeyPath": "",
"localPath": "./",
"ignores": ["node_modules/**/*"],
"deployMode": "preview",
"previewOptions": {
"desc": "CloudBase Framework 一键预览",
"setting": {
"es6": true
},
"qrcodeOutputPath": "./qrcode.jpg",
"pagePath": "pages/index/index"
}
}
}
}
}
}
默认模板的
appid和privateKeyPath为空,需要开发者填入
appid必填,小程序应用的 appid
privateKeyPath必填,小程序应用的部署私钥的本地相对路径
localPath选填,小程序项目 project.config.json 所在的本地路径,默认值 ./
ignores选填,小程序应用部署时忽略的文件路径,支持通配符,默认值["node_modules/**/*"]
deployMode选填,小程序应用的部署模式,支持 preview|upload 2 种部署模式
previewOptionsdeployMode 填写为 preview 时需要填写previewOptions,类型是对象格式
| 属性名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| desc | String | 否 | 小程序应用的版本描述 |
| setting | IMiniProgramBuildSetting 对象 | 否 | 小程序应用的编译设置 |
| qrcodeOutputPath | String | 否 | 生成的预览二维码保存在本地的路径 |
| pagePath | String | 否 | 小程序应用的预览页面地址 |
| searchQuery | String | 否 | 小程序应用的预览页面参数 |
| scene | Number | 否 | 小程序应用的预览页面场景值 |
例如
{
"envId": "{{envId}}",
"framework": {
"plugins": {
"client": {
"use": "@cloudbase/framework-plugin-mp",
"inputs": {
"appid": "",
"privateKeyPath": "",
"localPath": "./",
"ignores": ["node_modules/**/*"],
"deployMode": "preview",
"previewOptions": {
"desc": "一键预览",
"setting": {
"es6": false
},
"qrcodeOutputPath": "./qrcode.jpg",
"pagePath": "pages/index/index",
"searchQuery": "",
"scene": 1011
}
}
}
}
}
}
uploadOptionsdeployMode 填写为 upload 时需要填写uploadOptions,类型是对象格式
| 属性名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| version | String 对象 | 否 | 小程序应用上传的版本号 |
| desc | String 对象 | 否 | 小程序应用的版本描述 |
| setting | IMiniProgramBuildSetting 对象 | 否 | 小程序应用的编译设置 |
例如
{
"envId": "{{envId}}",
"framework": {
"plugins": {
"client": {
"use": "@cloudbase/framework-plugin-mp",
"inputs": {
"appid": "",
"privateKeyPath": "",
"localPath": "./",
"ignores": ["node_modules/**/*"],
"deployMode": "upload",
"uploadOptions": {
"version": "1.0.0",
"desc": "CloudBase Framework 一键上传",
"setting": {
"es6": false
}
}
}
}
}
}
}
请访问 CloudBase Framework 插件列表 搭配使用其他插件
FAQs
云开发 Tencent CloudBase Framework Auth Plugin 插件,可以一键设置项目下的登录配置。
The npm package @cloudbase/framework-plugin-auth receives a total of 46 weekly downloads. As such, @cloudbase/framework-plugin-auth popularity was classified as not popular.
We found that @cloudbase/framework-plugin-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.