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

hz-cli

v2.3.3

Published

huazhu hz-cli

Downloads

24

Readme

hz-cli 使用说明 (新建项目使用)

  1. 使用前需要安装git。

  2. 全局安装hz-cli npm install hz-cli -g 请安装最新版本。

  3. 命令参数,统一hz 命令格式(注意带空格),命令:

    <arg>为必填参数,[arg]为可选参数,-option为设置选项

    • hz init <项目名> [模板名] 初始化项目,自动下载webpack模板(模板目前只有html,之后会扩展vue及react等),可不填写模板名称。
      • 例如:hz init myProject hz-webpack-html
    • hz page <页面名>生成页面,目前只能生成html(ejs or pug)&sass页面,后续会同样支持vue,react等单页面扩展。
      • -r 自动添加rem布局相关辅助函数
      • -m 自动添加移动端meta标签
      • 例如:hz page myPage -r
    • hz publish [项目名称] 上传项目。如果不加项目名,则自动读取当前项目名称。如果不加参数,可在项目的config/config.jsftp属性修改相应设置。优先级为:参数设置>config设置>默认设置
      • -l <本地项目路径> 手动设置dist文件夹目录(相对于项目根目录)日,默认dist。
      • -r <FTP上传目录> 手动设置远程文件夹目录(相对于FTP根目录),默认Content_activty/2017活动目录
      • -h <host> ftp地址
      • -u <用户名> ftp用户名
      • -p <密码> ftp密码

注意:使用hz page命令时:

1.当前脚手架生成页面时,会自动生成页面名.ejs 页面名.scss 页面名.js。当页面不需要js时或者js是已经写好的文件只需引入时,可以将js文件删除,打包时将不会自动生成页面的js文件。

2.只要在./src/pages/文件夹中,页面位置可以随便放置。但必须注意一点!.ejs与同名的.js (入口文件)必须在同一级目录。

TODOLIST

  • -f 强制上传,当重复时直接覆盖。
  • -a 在上传时自动打包当前项目。