
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
提够构建 WEPT 使用小程序代码的 API,支持 cache 以及根据变化文件自动进行重编译。
option 为 builder 设置:
option.cache 为 cache 对象,需提供 get, del, set 方法,默认为 null
option.root 为程序根路径,默认为 process.cwd()
new builder({
root: './demo',
cache: {
get: function(key) {
return myCache.get(key)
},
del, function(key) {
return myCache.del(key)
}
set: function(key, value) {
myCache.set(key, value)
}
}
})
返回所有配置信息合并后对象
app.json wept.json 合并的 config 对象或者错误编译对应页面的 wxml 和 wxss 文件
path 为文件相对 root 的路径或绝对路径,可以携带或者不带文件后缀名deviceWidth 和 devicePixelRatio 生成 css 的函数option.ignore 可指定为忽略文件路径的正则,默认为 /node_modules/更新编译指定 root 下指定文件, 仅在使用缓存时有效
file 为文件对 root 的相对路径或绝对路径option 为 buildJavascript 使用的 option编译 root 目录下所有小程序文件,返回 promise 或者错误,用于提前编译 & 发现错误
获取 view 层和 service 层小程序底层代码,返回 content 和 verion,例如:
{
content: '...' // script content
version: '2016122200'
}
option.sourceMap 启用后开启 source map 支持。Copyright 2016 chemzqm@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
builder for weapp
We found that wept-build 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.