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

@lydxwj/da-cli

v0.0.2

Published

da-cli脚手架工具

Downloads

6

Readme

前端脚手架项目

安装

npm install @lydxwj/da-cli -g

开发

git clone https://github.com/lydxwj/da-cli.git
# 或者下载解压
https://github.com/lydxwj/da-cli/archive/refs/heads/master.zip

cd ./da-cli
npm install

# 安装完依赖之后执行
npm link

命令

打开命令行工具

  • 增加模板

    da add

    步骤示例:(本项目地址https://github.com/lydxwj/da-cli)

    • ?请输入模板名称(英文字母) cli

    • ?请选择模板仓库地址类型: github

      》github

      ​ gitlab

      ​ gitee

    • ?请输入仓库所属 lydxwj

    • ?请输入仓库名 da-cli

  • 删除模板

    da delete

    步骤示例

    • ?请输入要删除的模板名称 cli
  • 模板列表

    da list
  • 初始化项目

    da init cli test
    • cli为模板名
    • test为项目名

    步骤示例:(本项目地址https://github.com/lydxwj/da-cli)

    • ?请输入项目简介 (项目简介) da-cli生成项目test

      • 解释:项目简介是默认值,修改package.jsondescription字段
    • ?请输入项目版本 (1.0.0) 0.0.1

      • 解释:1.0.0是默认值,修改package.jsonversion字段

    自动下载模板地址master分支代码到当前命令行目录下项目名(test)下

  • 创建项目(脚手架规定的项目)

    da create test
    • test为项目名

    步骤示例

    • ?请选择框架: vue

      》vue

      • 解释:目前只支持vue
    • ?请输入项目简介 (项目简介) da-cli生成项目test

      • 解释:项目简介是默认值,修改package.jsondescription字段
    • ?请输入项目版本 (1.0.0) 0.0.1

      • 解释:1.0.0是默认值,修改package.jsonversion字段
  • 增加仓库地址类型(已经内置github,gitlab,gitee)

    da sites add

    步骤示例:(http://192.168.0.0,即http://test.gitlab.com,私有本地仓库)

    • ?请输入仓库地址类型名 test
      • 解释:添加模板时选择模板仓库地址类型列表显示名
    • ?请输入存储仓库地址类型的键(key)test
    • ?请输入仓库地址URL 例如:https://my.sitecode.com http://192.168.0.0
      • 解释:私有本地仓库建议使用IP地址,否则可能出错
  • 删除仓库地址类型

    da sites delete

    步骤示例

    • ?请输入要删除的存储仓库地址类型键(key) test
      • 解释:不支持删除内置github、gitee和gitlab
  • 仓库地址类型列表

    da sites list

注意

  • 支持githubgitlabgitee下的公开项目(私有项目需要自己的git有权限)、公司自己搭建的git仓库的项目
  • 下载过程中有可能需要登录对应的git账号

项目地址