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

diandian-cli

v1.0.3

Published

点点脚手架

Downloads

1

Readme

diandian-cli

一键生成点点前端项目的脚手架工具

发布

npm run release

安装

npm install diandian-cli -g

使用

打开终端输入 ddcli 或者 ddcli -h,你会看到如下输出

Usage: ddcli <commander>

Options:
-V, --version  output the version number
-h, --help     output usage information

Commands:
add|a          添加一个模版
list|l         模版列表
init|i         生成项目文件
delete|d       删除一个模版

命令说明

add | a

添加自定义模版到templates.json中(git中存在的仓库)

$ ddcli add
? 设置你的模版名称: dd-nuxt
? Git仓库位置:仓库地址(私有的需要加上direct:)  例:direct:git@git.***.com:***/dd-nuxt-template.git
? 所属分支:(默认master) master
┌──────────────────┬───────────────────────────────────────┬────────┐
│ Template Name    │ Owner/Name                             │ Branch │
├──────────────────┼───────────────────────────────────────┼────────┤
│ dd-nuxt          │ direct:git@git.***.com:***/nuxt-template.git │ master │
├──────────────────┼───────────────────────────────────────┼────────┤
│ dd-nuxt-i18n     │ direct:git@git.***.com:***/nuxt-template.git │ i18n │
└──────────────────┴───────────────────────────────────────┴────────┘
✔ 新的模版已经添加成功!

list | l

查看dd-cli中已经设置的模版列表

$ ddcli list
┌──────────────────┬───────────────────────────────────────┬────────┐
│ Template Name    │ Owner/Name                             │ Branch │
├──────────────────┼───────────────────────────────────────┼────────┤
│ dd-nuxt          │ direct:git@git.***.com:***/nuxt-template.git │ master │
├──────────────────┼───────────────────────────────────────┼────────┤
│ dd-nuxt-i18n     │ direct:git@git.***.com:***/nuxt-template.git │ i18n │
└──────────────────┴───────────────────────────────────────┴────────┘

init | i

当已经添加模版后,可以使用指定模版,去初始化一个你自己的项目

$ ddcli init
? 你要使用的模版名称:(默认:dd-nuxt) dd-nuxt
? 你的项目名称: nuxt_project
? 你的项目介绍: nuxt_project的介绍
? 作者: Leo_chen
? 项目存放的目录:(默认当前目录) ./
⠸ 模版下载中,请稍等...新的项目已经初始化成功!
 新的项目已经初始化成功!

这样一个新的项目就生成成功了,是不是很方便

delete | d

删除一个模版

$ ddcli delete
你要删除模版的名称: dd-nuxt
┌──────────────────┬───────────────────────────────────────┬────────┐
│ Template Name    │ Owner/Name                            │ Branch │
├──────────────────┼───────────────────────────────────────┼────────┤
│ dd-nuxt          │ direct:git@git.***.com:***/nuxt-template.git │ master │
└──────────────────┴───────────────────────────────────────┴────────┘
✔ 模版已成功删除!

这样一个新的项目就生成成功了