Code Monkey home page Code Monkey logo

wox-cli's Introduction

wox-cli image

scaffold for wox

Installation

$ npm install wox-cli -g

Node.js >= 8.0.0 required.

Usage

  • wox --help
$ wox --help

  Usage: wox [options] [command]

  Options:

    -v, --version     output the version number
    -h, --help        output usage information

  Commands:

    toolkit [type]    initialize a toolkit, example: `wox toolkit ca-admin`
    page [type]       add a page, example: `wox page ca-admin`
    component [type]  initialize a component, example: `wox component react`
$ wox toolkit ca-admin  // 初始化套件

$ wox page ca-admin     // 新增页面

$ wox component react   // 初始化组件

Command

toolkit

初始化一个套件

page

增加一个页面

component

初始化一个组件

Type

component

目前支持的组件类型如下

  • react: 初始化一个 react 基础组件。支持 lesscss-modules

  • vue: 初始化一个 vue 基础组件。

toolkit

目前支持的套件类型如下

  • react-admin: 初始化一个基于 react 的后台系统项目。支持 reduxredux-sagalesscss-modules

  • react-general: 初始化一个基于 react 的通用项目。支持 reduxredux-sagalesscss-modules

  • react-spa: 初始化一个基于 react 的单页面应用项目。支持 react-routerreduxredux-sagalesscss-modules

  • vue-multi: 初始化一个基于 vue 的多页面应用项目。支持 vuex

  • vue-spa: 初始化一个基于 vue 的单页面应用项目。支持 vue-routervuex

page

需要手动进入相关目录再进行初始化 目前支持的页面类型如下

  • react-admin: 初始化一个基于 react 的后台系统的页面。支持 reduxredux-sagalesscss-modules

TODO

  • react-*-toolkit webpack 升级到 3.x
  • react-*-toolkit antd 升级到 3.x
  • react-*-toolkit react 升级到 16.x

wox-cli's People

Contributors

fashman avatar frender avatar

Watchers

 avatar  avatar  avatar

Forkers

fashman

wox-cli's Issues

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.