Coder Social home page Coder Social logo

qd-cli's Introduction

qd-cli

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

安装

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

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

如果你不想全局安装的话

git clone [email protected]:nwa2018/qd-cli.git
cd qd-cli
npm i / yarn
npm link

使用

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

特性

  • qd-cli内置了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的一样,不利于浏览器做缓存

qd-cli's People

Contributors

nwa2018 avatar

Watchers

James Cloos avatar Maple_Shaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.