🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@21cnfe/onekit-mp-cli

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@21cnfe/onekit-mp-cli

小程序框架开发工具

npmnpm
Version
1.1.0
Version published
Weekly downloads
0
-100%
Maintainers
2
Weekly downloads
 
Created
Source

小程序-脚手架

Changelog

v1.1.0

  • feat:generator初始化项目性能提升
  • feat:支持setData全局变量数据
  • feat:vui主题配置支持
  • fix:小程序配置编辑热更新处理优化
  • fix:ok生命周期off监听器优化
  • perf:开发调试运行速度优化

v1.0.1

  • fix: setNavigationBar全局处理,mac、linux下文件路径解析,开发模式下ok库默认由开发工具注入

1、安装

npm i @21cnfe/onekit-mp-cli -g

若系统未安装vue/cli命令,还需要全局安装vue/cli命令:

npm i @vue/cli -g

2、创建小程序项目

ok-mp init <your projectName>

3、启动调试模式

进入到项目目录,运行npm run serve,或者 ok-mp dev

浏览器打开http://localhost:8090/

4、项目打包

npm run build 或者 ok-mp build

Keywords

plugin

FAQs

Package last updated on 23 Dec 2020

Did you know?

Socket

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.

Install

Related posts