
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
aiot-toolkit
Advanced tools
aiot-toolkit 2.0 是将 源码项目 转换为 目标代码项目 并生成 目标代码应用 的命令行工具,同时配备了 模拟器 相关功能供开发者使用。
aiot-toolkit2.0目前支持的打包格式如下:
全局安装
npm i aiot-toolkit -g
npm i create-aiot -g
创建项目
create-aiot ux
npm i
本机运行项目
在项目根目录执行 aiot start
,此会启动模拟器,并运行项目
打包项目
在项目根目录执行 aiot release
命令 | 说明 |
---|---|
npm create aiot | 创建并手动选择项目 |
npm create aiot ux | 创建ux项目 |
aiot build | 构建项目 |
aiot release | 构建项目-release模式 |
aiot start | 构建项目并运行到模拟器 |
aiot getConnectedDevices | 获取已连接设备列表 |
aiot getPlatforms | 获取设置平台 |
aiot installDbgAndMkp | 在真机上安装快应用调试器 |
aiot createVVD | 创建 vela 模拟器 |
aiot deleteVVD | 删除 vela 模拟器 |
aiot resign | build目录重新生成rpk, 详情: resign |
参数 | 类型 | 描述 | 默认值 | 参考 |
---|---|---|---|---|
devtool | string | source map 配置 | https://www.webpackjs.com/configuration/devtool/#devtool | |
enable-jsc | confirm | 是否启用 jsc bundle | false | |
enable-protobuf | confirm | 是否启用 protobuf | false | |
enable-e2e | confirm | 是否为当前项目注入测试套件 | false | https://doc.quickapp.cn/tutorial/others/testing.html |
enable-stats | confirm | 分析 webpack 输出文件的大小 | false | |
optimize-css-attr | confirm | 优化压缩css名称 | false | |
complete-feature | confirm | 自动将代码中使用的功能,补全到 manifest.json 的 features 字段中 | false | |
start-page | string | 启动页面,示例:--start-page 'pages/index?a=1&b=2' | ||
confirm | 已废弃 | |||
confirm | 已废弃 |
build目录重新生成rpk
步骤
folder
build
复制到 folder
folder/sign
folder
目录,执行 aiot resign
,会在foler/dist
中生成rpkfolder
build // 用户复制
sign // 用户复制,可选
certificate.pem
private.pem
dist // 生成
***.rpk
FAQs
Tools for creating, developing, and packaging aiot applications.
We found that aiot-toolkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.