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

@dreamjser/h5-webpack-cli

v1.0.38

Published

a vue cli for mobile and desktop application

Downloads

62

Readme

@dreamjser/h5-webpack-cli

脚手架需要配合@dreamjser/h5-template-generator使用,使用无需单独安装

执行命令

cli-create

创建页面命令,通过该命令可以创建页面view和页面的配置文件,配合构建命令可以自动生成路由文件,使用时只需要关注view页面

cli-create mb_home/index/index 首页
  • 参数一:mb_home/index/index,页面路径,会自动创建如下目录的view文件,必须是三级目录

  • 参数二:首页,页面标题

构建命令

cli-dev-s 单页面应用本地构建

cli-dev-m 多页面应用本地构建

cli-build-s 单页面应用打包

cli-build-m 多页面应用打包

cli-dev-s mb_home,mb_login --framework=vue --platform=mobile --env=prod
  • 参数:mb_home,mb_login,构建模块,所有模块传all

  • 选项-framework,可选值vue/react,项目所用的框架

  • 选项-platform,可选值mobile/desktop,项目平台

  • 选项-env,项目的环境变量,根据项目文件夹config下的env.xxx.js取值,环境变量可通过全局变量GLOBAL_ENV.xxx获取

测试命令

cli-test 集成jest,参数参考jest参数