anagumo / with-react

React skeleton with Babel/ES6 for Brunch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brunch + React + Babel/ES6

This is a modern JS skeleton with React for Brunch.

Note: This project was modified to include React router and PostCSS.

Installation

Clone this repo manually or use git clone https://github.com/gotwski/with-react.git

Getting started

  • Install (if you don't have them):

    • Node.js: brew install node or use nenv (a version manager for Node)
    • Brunch: npm install -g brunch
  • Inside your project folder:

    • Brunch plugins and app dependencies: npm install
  • Run:

    • brunch watch --server — watches the project with continuous rebuild. This will also launch HTTP server with pushState.
    • brunch build --production — builds minified project for production
  • Learn:

    • public/ dir is fully auto-generated and served by HTTP server. Write your code in app/ dir.
    • Place static files you want to be copied from app/assets/ to public/.
    • Brunch site, Getting started guide

About

React skeleton with Babel/ES6 for Brunch


Languages

Language:JavaScript 74.5%Language:HTML 21.7%Language:CSS 3.8%