• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

randylien/generator-react-gulp-browserify: A Yeoman Generator for facebook's ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

randylien/generator-react-gulp-browserify

开源软件地址(OpenSource Url):

https://github.com/randylien/generator-react-gulp-browserify

开源编程语言(OpenSource Language):

JavaScript 51.6%

开源软件介绍(OpenSource Introduction):

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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap