GithubHelp home page GithubHelp logo

generator-react-browserify's Introduction

A basic webapp Yeoman generator. For development and production use.

Features

  • Use react (optional) and browserify
  • write stylesheets in Sass;
  • forget about vendor prefixes (uses Autoprefixer with the last 2 versions option);
  • rebuilds scripts and styles when source files change, and automatically reloads the page in the browser (livereload);
  • sourcemaps: debug your original JSX and Sass source files in the browser.

How to use

  1. Install Yo: npm install -g yo
  2. Clone the repository to your machine: git clone https://github.com/pomerantsev/generator-react-browserify
  3. cd into the newly created folder.
  4. npm link - creates a link in the global node modules folder to the current folder (to be able to use the generator globally). Then, to create a project using the generator:
  5. mkdir my-new-project
  6. cd my-new-project
  7. yo react-browserify - the generator will ask you for the name of the project, create the necessary files and install npm dependencies.

Tasks

gulp (default) - builds the project for use in development, starts a server on http://localhost:9000, and watches all source files for changes.

gulp build:prod - builds the production version of the project (minified, no sourcemaps)

gulp connect:prod - starts a server for the production build. Only to check if everything's fine with the production version. Does not watch and rebuild files.

Enjoy!

generator-react-browserify's People

Contributors

pomerantsev avatar

Watchers

 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.