
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@21cnfe/onekit-mp-cli
Advanced tools
project.config.json 添加配置参数 vconsole 选择是否插入 vconsoleproject.config.json 添加配置参数 isExtractCss 选择是否把 css 抽离成独立文件onShow onLaunch 等生命调期不能使用 this 问题修复index.json 文件来更改 document.titlenpm i @21cnfe/onekit-mp-cli -g
若系统未安装vue/cli命令,还需要全局安装vue/cli命令:
npm i @vue/cli -g
通过 -t 参数指定模板,h5表示H5网页,tv表示轻应用、mp表示小程序。不指定模板,默认创建小程序工程
ok-mp init <your projectName>
ok-mp init <your projectName> -t <h5|mp|tv>
进入到项目目录,运行npm run serve,或者 ok-mp dev
浏览器打开http://localhost:8090/
npm run build 或者 ok-mp build
FAQs
The npm package @21cnfe/onekit-mp-cli receives a total of 24 weekly downloads. As such, @21cnfe/onekit-mp-cli popularity was classified as not popular.
We found that @21cnfe/onekit-mp-cli 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.