Skip to content

Commit

Permalink
add travis yml (#1)
Browse files Browse the repository at this point in the history
* Add travis yml

* add travis build badge
  • Loading branch information
ananavati authored and jchip committed Sep 21, 2016
1 parent 9d3acc2 commit 80bbc7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions packages/electrode-redux-router-engine/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js

node_js:
- v6

script:
- npm test
6 changes: 4 additions & 2 deletions packages/electrode-redux-router-engine/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/electrode-io/electrode-redux-router-engine.svg?branch=master)](https://travis-ci.org/electrode-io/electrode-redux-router-engine)

# Electrode Redux Router Engine

Handle async data for React Server Side Rendering using [react-router], Redux, and the [Redux Server Rendering] pattern.
Expand Down Expand Up @@ -35,7 +37,7 @@ function createReduxStore(req, match) {
// this refs to engine

const store = configureStore();

return Promise.all([
store.dispatch(boostrapApp())
// dispatch any other asynchronous actions here
Expand Down Expand Up @@ -76,7 +78,7 @@ Where options could contain the following fields:
- If it's a `function` then its `this` references the engine instance
- `renderToString` - **optional** callback to provide custom renderToString
- It should take `(req, store, match, withIds)` arguments

### [engine.render(req, options)]()

Method to render a route.
Expand Down

0 comments on commit 80bbc7a

Please sign in to comment.