Giter Site home page Giter Site logo

myneworder / generator-react-gulp-browserify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from randylien/generator-react-gulp-browserify

0.0 1.0 0.0 121 KB

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

JavaScript 51.60% CoffeeScript 13.49% HTML 22.07% CSS 12.84%

generator-react-gulp-browserify's 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

generator-react-gulp-browserify's People

Contributors

randylien avatar 5punk avatar izziaraffaele avatar garrison avatar mik01aj avatar furier avatar renegade7 avatar fantasywind avatar coryhouse avatar featheredtoast avatar mattclaw avatar nadeesha avatar erdostom avatar yaonie084 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.