Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
taro 一键打包 cli
对于一个由 @tarojs/cli 创建的 taro 项目,可以零配置一键打包多种小程序代码
也可以在taro 项目的 package.json添加 itaro 属性进行个性化配置。
npm install -g itaro
$ itaro build
$ itaro watch
$ itaro -v
$ itaro -h
在 taro 项目的 package.json,添加配置项
// package.json
{
...
"itaro": {
"build": {
"output": "itaro", // 打包默认的输出根目录
"excludes": ["rn"], // 不需要打包的小程序名称
"options": ["alipay", "tt", "qq", "weapp", "rn"] // 需要打包的小程序名称
}
}
}
options
除了可以是 weapp
, alipay
等字符串也可以是
"options": [
{
// 构建名称
"name": "weapp",
// 构建命令(默认为 npm run build:构建名称)
"command": "npm run build:weapp",
// 输出目录(默认为 输出根目录/构建名称)
"output": "itaro/weapp",
}
]
通过修改 config/index.js outputRoot
属性来实现
{
"output": "itaro",
"options": ["weapp", "alipay", "swan", ...]
}
runTask("weapp")
// 修改 outputRoot: "itaro/weapp",
// 执行构建命令 npm run build:weapp
// 还原 outputRoot: "dist",
runTask("alipay")
// 修改 outputRoot: "itaro/alipay",
// 执行构建命令 npm run build:alipay
// 还原 outputRoot: "dist",
runTask("swan")
// 修改 outputRoot: "itaro/swan",
// 执行构建命令 npm run build:swan
// 还原 outputRoot: "dist",
// ...
FAQs
A tool for taro build multiple app
The npm package itaro receives a total of 3 weekly downloads. As such, itaro popularity was classified as not popular.
We found that itaro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.