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

dcsc-cli

v1.0.12

Published

工程模板脚手架

Downloads

4

Readme

使用说明

全局安装dcsc-cli命令

cnpm i -g dcsc-cli

安装成功即可使用dcsc-cli命令

可支持的命令

● 查看工程模板列表

dcsc-cli list

● 初始化创建工程

dcsc-cli i <工程模板名称>

示例:
dcsc-cli i dc-svue

● 添加模板工程

dcsc-cli add

● 删除模板工程

dcsc-cli delete

命令说明

1、模板工程

模板工程是用于创建统一的工程结构,开发者无需关心工程的搭建和配置,仅需要关注业务功能逻辑的实现。dcsc-cli脚手架中内置默认模板工程清单,文件位置lib/customtpl.json。支持git远程获取和本地npm仓库获取,git远程工程只需要配置path路径为工程访问地址即可,local仓库需要配置npm访问地址(ip:port),通过source字段区分模板类型(git、local),目前仅支持这两种类型,待扩展svn类型。

  • 通过list命令查看模板工程清单。

    示例:
    
    dcsc-cli l
    
    dcsc-cli list
  • 通过add命令可以动态添加模板工程,添加模板需要配置name(模板名称)、path(模板位置)、source(模板类型)、desc(模板描述)字段,其中模板名称不允许重复。

    示例:
    
    dcsc-cli add
    
    dcsc-cli a
    
    按提示输入模板名称、模板位置、模板类型、模板描述
  • 通过delete命令动态删除模板工程,根据模板名称删除对应模板工程。

    示例:
    
    dcsc-cli delete
    
    dcsc-cli d
    
    按提示输入模板名称
  • 通过init命令选择模板工程,创建应用工程。实际过程是创建指定名称的文件夹,将模板工程从git或者npm服务器拷贝下来。

    示例:
    
    dcsc-cli init <projectName>
    
    dcsc-cli i <projectName>
    
    其中projectName为工程模板名称,模板清单可以通过list名称查看
    
    dcsc-cli i dc-svue