@hunter3533/mytest-cli
v0.0.5
Published
mytest-cli
Downloads
10
Readme
mytest-cli
一个CLI工具,快速创建基于Webpack的可配置React开发环境
安装
$ npm install -g @hunter3533/mytest-cli
使用
创建一个项目
$ mytest init <project-name>
例子:
创建项目
$ mytest init my-project
$ cd my-project
$ npm start
然后打开http://localhost:3000/查看您的应用。
项目结构:
.
├── build # webpack配置
├── config # 公共配置
├── src # 开发目录
│ ├── actions # redux/action
│ ├── assets # 静态资源,会被webpack编译
│ ├── common # 公共样式、通用工具
│ ├── components # UI组件/木偶组件
│ ├── reducers # redux/reducer
│ ├── store # redux/store
│ ├── views # 容器组件/智能组件
│ ├── App.jsx # 根组件
│ ├── index.js # 入口文件
│ └── index.tpl.html # html模板文件
├── static # 静态资源,不会被webpack编译
├── .babelrc
├── .gitignore
├── package.json
├── postcss.config.js
└── README.md