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

dvantd-cli

v0.2.4

Published

The command-line utility based on dva and antd

Downloads

39

Readme

#dvantd-cli 基于 dva 和 antd 的脚手架安装工具

##Install 您需要全局安装,然后使用命令行工具安装dva和antd

$ npm install dvantd-cli -g

Usage

dvantd init

$ mkdir myApp && cd myApp   创建并转到文件夹
$ dvantd init               无参数 默认安装 dva 和 antd 并搭建脚手架
$ dvantd init --demo        加参数 --demo 同上并安装 demo

dvantd new

$ dvantd new myApp          直接创建工程文件并安装 dva 和 antd 脚手架
$ dvantd new myApp --demo   同上并安装demo

npm start

$ cd myApp
$ npm start                 启动本地端口并打开 demo (默认chrome浏览器)

##dvantd-cli --Package.json Script

(1) npm run build:
删除旧的lib 文件,编译新的lib文件

(2) rimraf lib:
删除目录下的 lib 文件,Windows 系统使用 rm -rf(Unix语法)
需要安装 rimraf 命令,全局安装 npm install rimraf -g,
然后使用 rimraf 命令删除文件

(3) babel src --out-dir lib:
将src文件下的代码通过 babel 转义,将 es6 转义成 es5 词法
并输出到 lib 文件夹中,进而让 node 支持 es6 语法

(4) "prepublish" : "npm run build":
npm publish 前置命令:发布之前需要先运行build

###FAQ 常见问题解答

1、openssl 不是内部或外部命令,也不是可运行程序或批处理文件。

  • 需要安装 openSSL 下载地址: 点击进入下载页

  • 配置环境变量(系统变量=>path=>opensll安装根路径\bin)方便全局使用openssl命令

  • 测试是否安装成功 cmd -> openssl -> version (打开cmd输入openssl,切换到openssl,然后输入version 查看版本,如果成功打印说明安装成功!)

2、npm start 报错:Caught exception:Error Command failed: C:\Windows\system32\cmd.exe /s /c t "" "chrome" "http:localhost:8989"

  • 您需要安装 Chrome 浏览器

3、npm start 会弹出文件窗口

  • 首次启动会弹出一个框,这里面是 openSSL 生成的证书 rootCA.crt,需要信任之后,就不会再弹框了。

4、Error: EBUSY: resource busy or locked,...

  • npm cache clean 清除一下缓存,不行就卸载重新安装

5、dvantd-cli 与 dva-cli 的关系

  • 【声明】dvantd-cli 是基于 @sorrycc 的开源项目(MIT) dva-cli :替换了安装模板,仅限于交流使用!