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

xes-wltf

v0.0.6

Published

A simple CLI for scaffolding projects.

Downloads

1

Readme

xes-cli

前端全局脚手架工具.

npm version

参考网址

项目脚手架安装说明

$ npm install -g xes-cli

常规使用

初始准备:

1. 在 git 上面新建一个仓库
2. 通过 git clone git地址 将项目下载到本地
3. cd 进入项目文件夹
// 选择项目脚手架模板方式
$ xes init

// 快捷拉取脚手架方式
$ xes init <template-name>

Example:

$ xes init vue

个人本地新增项目脚手架模板

  • 因项目工具模板为内部项目,故需要添加为项目开发者,且通过 ssh免密方式才可拉取项目代码。 个人开发者可以通过 xes add 命令添加自己的项目脚手架模板,拉取代码不受限制,。
$ xes init [templateName]         // 通过 xes init + 脚手架名称 来拉取对应项目模板代码.
$ xes show                        // 显示所有脚手架模板
$ xes add                         // 添加新的脚手架模板
$ xes remove                      // 删除指定的脚手架模板
$ xes update                      // 升级全局的 xes-cli 到最新版本
$ xes tree [level] [ignoreFile]   // 自动化文件目录结构生成
$ xes imageMin -k [tinyKey] -p [imagePath] -o [outPath]  // TinyPNG图片压缩工具
  • 新增 xes imageMin 使用说明:
$ xes imageMin                  // 直接压缩当前文件夹下所有图片,并覆盖原图    
$ xes imageMin  -k 'tinyKey'    // 首次使用需设置 TinyPNG 的key, 会自动保存到配置文件    
$ xes imageMin  -p './images'   // 指定需要压缩的图片文件夹,使用相对路径   
$ xes imageMin  -o './output'   // 指定压缩后的图片保存位置,保留原图   
$ xes imageMin  -f './images/demo.png' // 单独压缩某一张图片,写相对路径   

参数说明

  • 所有参数可级联使用,依次在后面添加即可(文件夹会忽略 node_modules ,防止误操作)

  • -k, --key [key] : TinyPNG 的key,免费的每个月可压缩 500张

  • -p, --path [path]: 指定需要压缩的图片文件夹,使用相对路径 ,会遍历内部所有文件及文件夹

  • -o, --out [path]: 指定压缩后的图片保存位置,目录结构与压缩文件夹完全一致

  • -f, --file [path]: 单独压缩某一张图片 ,相对路径

  • xes tree 使用说明:

$ xes tree                      // 自动化文件目录结构生成     
$ xes tree  1                   // 只遍历第一级文件目录     
$ xes tree  0  'docs|test'      // 需要忽略的文件夹或者文件 以 '|' 来链接    

  • level: 变量目录的深度,初始值 0,默认遍历全部目录

  • ignoreFile:需要忽略的文件夹或者文件,默认已忽略 node_modules、dist 和 特殊字符开头的文件(例 . )

  • 添加项目脚手架模板相关参数说明

{
  "short": "vue",                                        // 项目脚手架仓库名称简写
  "value": "xes-template-vue",                           // 项目脚手架仓库名称
  "name": "通用@vue/cli 3移动端模板,不带vuex",             // 项目脚手架在 init 显示的名称 
  "description": "移动端脚手架工具,采用 @vue/cli 3 框架",   // 项目脚手架的相关描述
  "gitUrl": "https://github.com/liuyun012/Js_frame.git"  // 项目脚手架的git 仓库地址
},