
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.
create-applet-app
Advanced tools
applet-script
使用webpack,babel 编译的支付宝小程序项目
npx create-applet-app <name>
// 例如 npx create-applet-app demo
module.exports = {
entry: 'src', // 项目入口目录
output: 'dist', // 项目打包存放目录
"@babel/preset-env": { // @babel/preset-env 配置
targets: { // babel 编译生成的版本 https://babeljs.io/docs/en/babel-preset-env#targets
chrome: "58",
},
},
keep: /(node_modules)|(\.mini-ide)|(mini\.project\.json)/, // 打包时不删除的文件 https://webpack.docschina.org/configuration/output/#outputclean
mockPort: false, // 默认设置为false关闭mock, 如果设置为mock: 7000 那么 http://localhost:7000 可以访问到mock数据
webpackConfig: {}, // 你的 webpack 配置
}
module.exports = (app) => {
app.post('/home', (req, res) => {
res.json({
test: 'home'
});
})
app.get('/', (req, res) => {
res.json({
test: 'hello'
});
})
};
如果已经创建好项目,并且安装好依赖
运行 npm run dev 然后使用小程序模拟器打开dist目录即可
| 命令行 | 说明 |
|---|---|
| npm run dev | 启动开发,不压缩 js & css,eslint检测 |
| npm run build | 生产环境打包,js & css 压缩 |
| npm run eslint-fix | 自动修复eslint |
| npm run stylelint-fix | 自动修复 stylelint |
FAQs
create-applet-app 支付宝小程序脚手架,支持ts es2021 less等
We found that create-applet-app 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.