nbugs-cli
a generator for react-antd project
Last updated a month ago by goooooog .
ISC · Original npm · Tarball
$ cnpm install nbugs-cli 
SYNC missed versions from official npm registry.

a simple generator for react webapp

Install

npm install nbugs-cli -g

if you are in China, maybe you should install it from our China China mirror

npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install nbugs-cli -g

Usage

nbugs-cli [dir]

Project construction

src-|
    |--components                   //业务组件文件夹
    |--|--demo-one
    |-----|--index.js
    |--entries                      //入口文件夹
    |--|--index.html
    |--|--index.js
    |--|--index.less
    |--images                       //图片存文件夹
    |--layouts                      //页面布局文件夹
    |--|--App.jsx
    |--|--DemoLayout.jsx
    |--|--Header.jsx
    |--|--Header.less
    |--|--SideBar.js
    |--|--SideBar.less
    |--|--SideBarLayout.jsx
    |--|--SideBarLayout.less
    |--routes                        //页面路由文件夹
    |--|--demo-one.js
    |--|--index.js
    |--services                      //数据接口控制器 
    |--|--controller.js
    |--widgets                       //页面公共资源组件库
    |--|--DataSourceMenu.jsx
    |--|--DataSourceMenu.less
    |--package.json                  //项目描述文件
    |--webpack.Config.js             //webpack 配置文件

Install dependencies

cnpm install

Get start

npm start

Launch app

open http://localhost:8989/demo/one in browser

just enjoy it.

License

ISC

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 95
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |