Skip to content

Commit

Permalink
Added codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Alexander committed Jul 14, 2017
1 parent 5033139 commit 9b57246
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -2,4 +2,6 @@
thumbs.db
*.log
node_modules/
.idea
.idea
coverage
.nyc_output
2 changes: 2 additions & 0 deletions .travis.yml
@@ -1,3 +1,5 @@
env:
CODECLIMATE_REPO_TOKEN: 1937cd951ca5a26580a65f98a7b627eb92126bdd2b272e3dec71f8396062d210
language: node_js
node_js:
- "6.1"
Expand Down
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -7,7 +7,7 @@
<a>
<img src="https://badge.fury.io/js/regression.svg" alt="npm version" />
</a>
<a href='https://coveralls.io/github/Tom-Alexander/regression-js?branch=master'><img src='https://coveralls.io/repos/github/Tom-Alexander/regression-js/badge.svg?branch=master' alt='Coverage Status' /></a>
<a href="https://codeclimate.com/github/Tom-Alexander/regression-js/coverage"><img src="https://codeclimate.com/github/Tom-Alexander/regression-js/badges/coverage.svg" /></a>
<br/>
<br/>
<p>
Expand Down Expand Up @@ -61,7 +61,6 @@ Fits the input data to a straight line with the equation `y = mx + c`. It return
### `regression.power(data, ?options)`
### `regression.polynomial(data, ?options)`
### `regression.sinusoidal(data, ?options)`
### `regression.gaussian(data, ?options)`

## Development

Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"clean": "rm -rf dist && mkdir dist",
"lint": "./node_modules/.bin/eslint src/** tests/**",
"test": "npm run lint && ./node_modules/.bin/mocha --compilers js:babel-core/register",
"test": "npm run lint && ./node_modules/.bin/nyc --reporter=lcov ./node_modules/.bin/mocha --compilers js:babel-core/register",
"build": "npm run clean && npm run build-regression-js && npm run build-regression-min-js",
"build-regression-js": "./node_modules/.bin/babel src/regression.js --out-file dist/regression.js",
"build-regression-min-js": "BABEL_ENV=production ./node_modules/.bin/babel src/regression.js --out-file dist/regression.min.js"
Expand All @@ -35,6 +35,7 @@
"eslint": "^3.19.0",
"eslint-config-airbnb-base": "^11.2.0",
"eslint-plugin-import": "^2.7.0",
"mocha": "^3.2.0"
"mocha": "^3.2.0",
"nyc": "^11.0.3"
}
}

0 comments on commit 9b57246

Please sign in to comment.