npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@21cnfe/onekit-mp-cli

v2.0.1

Published

小程序框架开发工具

Downloads

756

Readme

小程序-脚手架

Changelog

v2.0.1

  1. feat:project.config.json 添加配置参数 vconsole 选择是否插入 vconsole
  2. feat:project.config.json 添加配置参数 isExtractCss 选择是否把 css 抽离成独立文件
  3. fix:onShow onLaunch 等生命调期不能使用 this 问题修复

v2.0.0

  1. feat:新增H5应用、轻应用项目工程的创建,参考文末
  2. feat:新增H5应用通过配置页面的 index.json 文件来更改 document.title

v1.1.7

  1. feat:脚手架相关依赖内置
  2. feat:app.css 支持改为 app.less
  3. feat:创建项目目录结构调整

v1.1.6

  1. fix:部分手机跳转外链,后退时页面被放大的问题修复

v1.1.5

  1. fix:引入svg图片报错问题修复
  2. fix:当没有页面设置keepAlive时,所有页面都会被缓存的问题修复

v1.1.4

  1. feat:添加keepAlive功能
  2. fix:usingComponents引入组件报错修复
  3. fix:主题定制,打包后不生效问题修复

v1.1.3

  1. fix:vconsole初始化优化

v1.1.2

  1. feat:更新小程序工程默认模板

v1.1.1

  1. feat:项目运行时报错,把错误同步渲染到页面上
  2. feat:通过 theme.less 定制vui主题
  3. fix:json文件修改,不能热更新问题修复
  4. fix:小程序图片打包加hash,避免覆盖同名图片
  5. fix:生成资源包 npm run build 时,先清除dist目录,避免打包到运行时文件
  6. fix:css 修改不能热更新问题修复

v1.1.0

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

v1.0.1

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

1、安装

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

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

npm i @vue/cli -g

2、创建项目

通过 -t 参数指定模板,h5表示H5网页,tv表示轻应用、mp表示小程序。不指定模板,默认创建小程序工程

ok-mp init <your projectName>
ok-mp init <your projectName> -t <h5|mp|tv>

3、启动调试模式

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

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

4、项目打包

npm run build 或者 ok-mp build