Skip to content

Commit 6d08fd8

Browse files
committed
chore(package): Add coverage, code climate and generate-changelog
1 parent 8cbfab0 commit 6d08fd8

File tree

7 files changed

+31
-11
lines changed

7 files changed

+31
-11
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage
2+
example.js

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ build/Release
2525
# Dependency directory
2626
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
2727
node_modules
28-
lib

.npmignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
node_modules
2-
src
2+
test
3+
coverage
4+
LICENSE
5+
example.js
36
.*

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ notifications:
77
email: false
88
services:
99
- redis-server
10+
after_success:
11+
- npm run coveralls
12+
- npm run codeclimate

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Leonardo Gatica
3+
Copyright (c) 2016 Leonardo Gatica
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
[![npm version](https://img.shields.io/npm/v/simple-reverse-geocoder.svg?style=flat-square)](https://www.npmjs.com/package/simple-reverse-geocoder)
44
[![npm downloads](https://img.shields.io/npm/dm/simple-reverse-geocoder.svg?style=flat-square)](https://www.npmjs.com/package/simple-reverse-geocoder)
5-
[![dependency Status](https://img.shields.io/david/lgaticaq/simple-reverse-geocoder.svg?style=flat-square)](https://david-dm.org/lgaticaq/simple-reverse-geocoder#info=dependencies)
65
[![Build Status](https://img.shields.io/travis/lgaticaq/simple-reverse-geocoder.svg?style=flat-square)](https://travis-ci.org/lgaticaq/simple-reverse-geocoder)
6+
[![Coverage Status](https://img.shields.io/coveralls/lgaticaq/simple-reverse-geocoder/master.svg?style=flat-square)](https://coveralls.io/github/lgaticaq/simple-reverse-geocoder?branch=master)
7+
[![Code Climate](https://img.shields.io/codeclimate/github/lgaticaq/simple-reverse-geocoder.svg?style=flat-square)](https://codeclimate.com/github/lgaticaq/simple-reverse-geocoder)
8+
[![dependency Status](https://img.shields.io/david/lgaticaq/simple-reverse-geocoder.svg?style=flat-square)](https://david-dm.org/lgaticaq/simple-reverse-geocoder#info=dependencies)
79
[![devDependency Status](https://img.shields.io/david/dev/lgaticaq/simple-reverse-geocoder.svg?style=flat-square)](https://david-dm.org/lgaticaq/simple-reverse-geocoder#info=devDependencies)
8-
[![Join the chat at https://gitter.im/lgaticaq/simple-reverse-geocoder](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=flat-square)](https://gitter.im/lgaticaq/simple-reverse-geocoder?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
910

10-
Get address from a point
11+
> Get address from a point
1112
1213
## Installation
1314

@@ -32,3 +33,7 @@ rg.setCache(client);
3233
const loc = {type: 'Point', coordinates: [-70.5171743, -33.3608387]};
3334
rg.getAddress(loc).then(console.log); // 'Del Candil 665-701, Lo Barnechea'
3435
```
36+
37+
## License
38+
39+
[MIT](https://tldrlegal.com/license/mit-license)

package.json

+13-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
"description": "Get address from a point",
55
"main": "src",
66
"scripts": {
7-
"lint": "eslint src",
8-
"test": "mocha"
7+
"pretest": "eslint .",
8+
"test": "istanbul cover _mocha",
9+
"coveralls": "coveralls < coverage/lcov.info",
10+
"codeclimate": "codeclimate-test-reporter < coverage/lcov.info",
11+
"release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags && npm publish",
12+
"release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags && npm publish",
13+
"release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags && npm publish"
914
},
1015
"engines": {
1116
"node": ">=4"
@@ -30,10 +35,13 @@
3035
},
3136
"devDependencies": {
3237
"chai": "^3.5.0",
38+
"codeclimate-test-reporter": "^0.3.3",
39+
"coveralls": "^2.11.9",
3340
"eslint": "2.12.0",
34-
"mocha": "^2.4.5",
35-
"redis": "^2.4.2",
36-
"rimraf": "^2.5.2"
41+
"generate-changelog": "^1.0.2",
42+
"istanbul": "^0.4.3",
43+
"mocha": "^2.5.3",
44+
"redis": "^2.4.2"
3745
},
3846
"eslintConfig": {
3947
"env": {

0 commit comments

Comments
 (0)