Yeoman generator for admix project - lets you quickly set up a project with sensible defaults and best practices.
构建成功后的工程目录结构说明:
|- project-name/ #项目目录
|- app/
|- actions #actions
|- components #项目组件
|- pages #页面JS
|- scss #页面样式
|- stores #stores
|- bower_components #外部组件
|- htmls #页面文件
|- htmls-dist #打包后的页面文件
|- node_modules
|- .bowerrc
|- .editorconfig
|- .gitattributes
|- .gitignore
|- .jshintrc
|- bower.json
|- changelog.md
|- gulpfile.js
|- package.json
|- README.md
Install generator-admix-react
:
npm install -g generator-admix-react
Make a new directory, and cd
into it:
mkdir my-new-project && cd $_
Run yo admix-react
, optionally passing an app name:
yo admix-react [app-name]
Run gulp build
for building and gulp
for preview and develop
Available generators:
- admix-react (aka admix-react:app)
- admix-react:page
- admix-react:component
- admix-react:action
- admix-react:store
Note: Generators are to be run from the root directory of your app.