Skip to content
项目

randylien/generator-react-gulp-browserify

在 GitHub 查看

关于

A Yeoman Generator for facebook's React library. It includes gulp, browserify, livereload and famous official Twitter bootstrap Sass version

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

generator-react-gulp-browserify Build Status

Yeoman generator for facebook's React library - Integrate with gulp and browserify.

What's new?

  • Added watchify support
  • We use browserify extension instead of gulp extension
  • Autorun bower install & npm install by default

What's inside?

Bundled:

  • Gulp
  • Bower
  • jQuery (optional)
  • Browserify
  • Reactify - (removed)
  • Babelify Help to transform JSX (consider to use babelify later)
  • Watchify support! (Sourcemap also!)
  • livereload (BrowserSync)
  • jshintrc file (although eslint is much better)

To be added

  • React Bootstrap instead of Sass Bootstrap

Optional: and some should not be used except for compatibility

  • Sass with Compass
  • Bootstrap - Twitter Bootstrap's official Sass version
  • Modernizr
  • Jade for HTML templates (deprecated used React JSX instead)
  • CoffeeScript for JavaScript (deprecated use React JSX instead)
  • Jest for unit tests

Environment requirements

  • node.js 0.12 (I suggest to use nvm to manage your node environment.)
  • Sass >= 3.4 if you want to use Sass

Getting Started

$ npm install -g yo                                # Install Yeoman (if you don't have it yet)...
$ npm install -g generator-react-gulp-browserify   # ...then install this generator...
$ yo react-gulp-browserify                         # ...and run it.

If you are doing a fork

Then you need to git clone your fork and from there use npm link. See http://yeoman.io/authoring/

git clone [email protected]/<your git repo>/generate-react-gulp-browserify
cd generate-react-gulp-browserify
npm link

If you chose to use sass, you'll need to install it with gem install sass. If you find your css build results are empty, update your sass gem.

Output folders

scripts - /scripts
styles - /styles
fonts - /fonts

Now, when everything is ready, run the watch task and begin to develop your React components.

$ gulp watch

How to run test?
Currently, I prefer to run test tasks from npm. Please run this command.

$ npm test

After development, you can run this task to generate production code.

$ gulp build

License

MIT

探索相关项目

加载中…