wox-cli

0.15.1 • Public • Published

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

Package Sidebar

Install

npm i wox-cli

Weekly Downloads

3

Version

0.15.1

License

MIT

Unpacked Size

1.61 MB

Total Files

226

Last publish

Collaborators

  • frend.wong