Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paldepind committed Sep 28, 2016
1 parent e83a2ac commit c09cc27
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*~
typings
node_modules
lib
lib
coverage/
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- "6"
- "6.1"

after_success:
- "npm run codecov"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Powerful and practical abstractions for JavaScript. Functors, Monads,
Traversables and all that jazz.

[![Build Status](https://travis-ci.org/Funkia/jabz.svg?branch=master)](https://travis-ci.org/Funkia/jabz)[![codecov](https://codecov.io/gh/Funkia/jabz/branch/master/graph/badge.svg)](https://codecov.io/gh/Funkia/jabz)

## Goals

* Be simple and convenient in usage
Expand Down
34 changes: 26 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"main": "lib/index",
"typings": "lib/index",
"scripts": {
"prepublish": "cp -r lib/* .",
"postinstall": "./node_modules/.bin/typings install",
"build": "./node_modules/.bin/tsc",
"test": "./node_modules/.bin/ts-node node_modules/.bin/_mocha test/**/*.ts",
"release-major": "xyz --repo [email protected]:paldepind/jabz.git --increment major",
"release-minor": "xyz --repo [email protected]:paldepind/jabz.git --increment minor",
"release-patch": "xyz --repo [email protected]:paldepind/jabz.git --increment patch"
"postinstall": "typings install",
"build": "tsc",
"test": "nyc ts-node node_modules/.bin/_mocha test/**/*.ts && nyc report",
"codecov": "codecov -f coverage/coverage-final.json",
"release-major": "xyz --repo [email protected]:funkia/jabz.git --increment major",
"release-minor": "xyz --repo [email protected]:funkia/jabz.git --increment minor",
"release-patch": "xyz --repo [email protected]:funkia/jabz.git --increment patch"
},
"repository": {
"type": "git",
Expand All @@ -28,10 +28,28 @@
"homepage": "https://github.com/paldepind/jabz#readme",
"dependencies": {},
"devDependencies": {
"codecov": "^1.0.1",
"mocha": "^2.5.3",
"nyc": "^8.3.0",
"ts-node": "^0.8.0",
"typescript": "^2.0.0",
"typescript": "^2.1.0-dev.20160928",
"typings": "^1.0.4",
"xyz": "0.5.x"
},
"nyc": {
"include": [
"src/*.ts",
"src/**/*.ts"
],
"exclude": [
"typings"
],
"extension": [
".ts"
],
"reporter": [
"json",
"html"
]
}
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"declaration": true,
"noImplicitAny": true,
"sourceMap": true,
"outDir": "lib/"
"outDir": "lib/",
"lib": ["dom", "es5", "es2015.core", "es2015.promise", "es2015.iterable", "es2015.generator"]
},
"include": [
"src/**/*.ts"
Expand Down

0 comments on commit c09cc27

Please sign in to comment.