Skip to content
Boilerplate for creating React components
JavaScript Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
example
lib
script
specs
.gitignore
.npmignore
.travis.yml
README.md
bower.json
index.js
karma.conf.js
package.json
webpack.config.js

README.md

react-component-boilerplate

Boilerplate for creating React components

NOTICE: This boilerplate is outdated, and will not receive any updates. Take a look at rackt-cli instead.

Installing

$ git clone https://github.com/mzabriskie/react-component-boilerplate.git
$ npm install

Building

Start webpack

$ npm start
# or
$ ./script/build

Testing

Start karma

$ npm test
# or
$ ./script/test --auto-watch

Running

A simple example is setup to run out of the box

$ npm start
$ open example/index.html

Setup

You'll need to change a few things

# Delete .git
$ cd react-component-boilerplate
$ rm -rf .git

# Update package.json and bower.json
# name, version, description, repository, keywords, author, license, bugs, homepage
$ vim package.json
$ vim bower.json

# Update webpack.config.js
$ vim webpack.config.js

# Update build script
$ vim script/build

# Rename lib/example.js
$ mv lib/example.js lib/whatever.js
$ vim index.js
$ vim example/index.html
$ vim specs/example.spec.js

# Rename specs/example.spec.js
$ mv specs/example.spec.js specs/whatever.spec.js
$ vim specs/main.js
You can’t perform that action at this time.