Skip to content

Commit

Permalink
[added] bower support
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Jul 22, 2014
1 parent 58e7b98 commit e827870
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
CONTRIBUTING.md
bower.json
examples
karma.conf.js
script
specs
webpack.config.js

17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,22 @@ and workflows are to create.
Installation
------------

`npm install react-nested-router`
```sh
npm install react-nested-router
# or
bower install react-nested-router
```

This library is written with CommonJS modules. If you are using
browserify, webpack, or similar, you can consume it like anything else
installed from npm.

There is also a UMD build available on bower, find the library on
`window.ReactNestedRouter`.

Usage
-----

This library only ships with CommonJS modules, so you'll need browserify or
webpack or something that can load/bundle it, a global build is coming
soon.

```
var Route = require('react-nested-router').Route;
Expand Down
29 changes: 29 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "react-nested-router",
"version": "0.2.1",
"homepage": "https://github.com/rpflorence/react-nested-router",
"authors": [
"Ryan Florence",
"Michael Jackson",
],
"description": "A complete routing library for React.js",
"main": "dist/react-nested-router.js",
"keywords": [
"react",
"router"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"specs",
"modules",
"examples",
"script",
"CONTRIBUTING.md",
"karma.conf.js",
"package.json",
"webpack.config.js"
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-nested-router",
"version": "0.2.1",
"description": "A complete routing library for React",
"description": "A complete routing library for React.js",
"tags": [
"react",
"router"
Expand Down
2 changes: 1 addition & 1 deletion script/build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
mkdir -p dist
NODE_ENV=production node_modules/.bin/browserify modules/main.js --detect-globals false -s ReactRouter > dist/react-nested-router.js
NODE_ENV=production node_modules/.bin/browserify modules/main.js --detect-globals false -s ReactNestedRouter > dist/react-nested-router.js
node_modules/.bin/uglifyjs dist/react-nested-router.js --compress warnings=false > dist/react-nested-router.min.js

0 comments on commit e827870

Please sign in to comment.