Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #18 from stoeffel/coverage
Browse files Browse the repository at this point in the history
Coverage
  • Loading branch information
stoeffel committed Oct 3, 2015
2 parents 47ac25a + 14a4447 commit c63c9e7
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: MXuTt6Z69n0ZT8DCBqFZ21oz4ik60QAND
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ npm-debug.log
.DS_Store
index.js
!module/index.js
coverage
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
sudo: false
language: node_js
before_install:
git config user.name "Travis CI"

language:
node_js
node_js:
- 'iojs'
- stable
- iojs

after_script:
npm run coveralls

sudo: false
9 changes: 4 additions & 5 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
<blockquote align="center"><a href="http://www.cis.upenn.edu/~matuszek/LispText/lisp-cond.html">Lisp-Style</a> conditional rendering in react.</blockquote>
</p>

[![Build Status](https://travis-ci.org/stoeffel/react-cond.svg?branch=master)](https://travis-ci.org/stoeffel/react-cond)
[![Dependency Status](https://david-dm.org/stoeffel/react-cond.svg)](https://david-dm.org/stoeffel/react-cond)
[![npm version](https://badge.fury.io/js/react-cond.svg)](http://badge.fury.io/js/react-cond)
[![Stability:
](https://img.shields.io/badge/stability-experimental-orange.svg)](https://github.com/stoeffel/react-cond/milestones/1.0)
[![Travis](https://img.shields.io/travis/stoeffel/react-cond.svg?style=flat-square)](https://travis-ci.org/stoeffel/react-cond)
[![Coveralls](https://img.shields.io/coveralls/stoeffel/react-cond.svg?style=flat-square)](https://coveralls.io/github/stoeffel/react-cond)
[![David](https://img.shields.io/david/stoeffel/react-cond.svg?style=flat-square)](https://david-dm.org/stoeffel/react-cond)
[![npm](https://img.shields.io/npm/v/react-cond.svg?style=flat-square)](https://www.npmjs.com/package/react-cond)

Make conditional rendering in react simple and expressive. `react-cond` is implemented as a component, which takes n **clauses** as its children. Each **clause** is an array with a **condition** and a component. The first child-component, where the **condition** evaluates to `true` gets rendered in a `Cond` component.
React-cond is designed to work great with FP-libraries like [Ramda][r].
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"scripts": {
"build": "babel module --out-dir ./",
"develop": "nodangel --ignore node_modules --watch __tests__ --watch module --exec 'npm run test'",
"test": "BABEL_JEST_STAGE=0 jest",
"test": "BABEL_JEST_STAGE=0 jest --coverage",
"coveralls": "npm test && cat ./coverage/lcov.info | coveralls",
"patch-release": "npm run build && npm version patch && npm publish && git push --follow-tags",
"minor-release": "npm run build && npm version minor && npm publish && git push --follow-tags",
"major-release": "npm run build && npm version major && npm publish && git push --follow-tags"
Expand All @@ -31,6 +32,7 @@
"dependencies": {},
"devDependencies": {
"babel-jest": "5.3.0",
"coveralls": "^2.11.4",
"jest-cli": "0.5.8",
"nodangel": "1.3.8",
"ramda": "0.17.1",
Expand Down

0 comments on commit c63c9e7

Please sign in to comment.