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

dhcli

v1.0.60

Published

This is a cli for dahai

Downloads

80

Readme

前端项目通用脚手架

支持vue项目/react项目/普通js项目 创建 调试 和 打包

更新说明

  • 1.0.54版本
  1. 增加了file-loader
  • 1.0.47版本
  1. 解决获取目录名的windows平台兼容问题
  2. 添加了必要的依赖
  3. 依赖版本修改
  • 1.0.45版本
  1. 由于某些框架的兼容问题,修改为多出口方式
  2. 打包后会有index.js(导出路由对象),dev.js(构建后的页面)
  3. 启动开发调试请访问localhost:8080/dev.html
  • 1.0.42版本
  1. 增加了用户自定义设置proxy
  2. 修改了vue模板
  • 1.0.39版本
  1. 创建项目增加了react模板
  • 1.0.38版本
  1. 去除无用代码
  • 1.0.37版本
  1. 修复build 后文件加载bug
  2. 优化 build.js 文件
  • 1.0.36版本
  1. 优化了项目创建方式
  2. 支持了vue项目
  3. 关闭了react项目创建,将在下一个大版本完善

使用文档

  • 全局安装依赖

npm install -g dhcli

  • mac全局安装依赖

sudo npm install -g dhcli

  • 初始化项目

建议先自行创建项目目录,如找不到项目目录会自动根据项目名创建目录

cli init

  • 启动开发调试

npm run dev

  • 编译打包
  1. 编译测试包

npm run build-qa

  1. 编译生产包

npm run build


详细说明

  • 关于项目初始化

项目初始化需要开发者输入package.json中的一些字段,如需要自动在gitlab创建项目请输入你的gitlab地址和一个有效的Private token,这将会自动在你的gitlab上创建此项目并关联到本地git

  • 关于打包编译

如不输入tab名,将自动以当前tag名+时间戳的方式命名!

编译成功后会自动打git tag,需要开发者自行输入tag名,编译测试包tag名以d开头,生产包tag名以p开头

github地址

github