Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

qd-clis

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qd-clis

> qd-clis支持生成种子项目,开发,与输出生产环境的代码带你

latest
Source
npmnpm
Version
1.2.4
Version published
Weekly downloads
5
-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

qd-clis

qd-clis支持生成种子项目,开发,与输出生产环境的代码带你

安装

npm i qd-clis -g
or
yarn global add qd-clis

window平台请使用管理员权限安装,mac平台请在命令前面加上sudo

如果你不想全局安装的话

git clone git@github.com:nwa2018/qd-cli.git
cd qd-cli
npm i / yarn
npm link

使用

qd -v  输出版本号
qd     命令集
qd i   生成种子文件
qd d   开发
qd b   构建

特性

  • qd-clis内置了vue,vuex,vue-router,axios,jsonp,ramda,jquery,无需二次安装
  • 支持es6语法,支持async,await,支持装饰器
  • eslint采用standard规范
  • 支持pug语法,stylus, scss
  • 生产环境图片会自动压缩
  • 支持单页应用,多页应用,支持项目集结构
  • 支持少量的配置项
  • 生产环境支持代码分割,懒加载,打哈希串

目录结构

+ vue-project
+   src
-     index.js
    index.art       // 每一个xxx.art对应src目录的xxx.js,开发多页应用只需要增加这两个文件
    mock.config.js  // 必须:mock服务的配置文件
    config.js       // 必须:配置文件

开发

先生成种子文件,再开发

qd i
cd projectName
qd d

issue

  • 抽取出的css哈希串会跟js的一样,不利于浏览器做缓存

FAQs

Package last updated on 30 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts