Skip to content

Commit 86b0f4e

Browse files
authored
Merge pull request #39 from pelias/ci_cleanup
Cleanup
2 parents 7f605e4 + 11288cd commit 86b0f4e

3 files changed

Lines changed: 27 additions & 32 deletions

File tree

.travis.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,16 @@ language: node_js
33
notifications:
44
email: false
55
node_js:
6-
- 4
76
- 6
7+
- 8
8+
- 10
89
matrix:
910
fast_finish: true
10-
env:
11-
global:
12-
- CXX=g++-4.8
1311
script: npm run travis
14-
addons:
15-
apt:
16-
sources:
17-
- ubuntu-toolchain-r-test
18-
packages:
19-
- g++-4.8
2012
before_install:
21-
- npm i -g npm@^3.0.0
22-
before_script:
23-
- npm prune
13+
- npm i -g npm
2414
after_success:
25-
- npm install -g npx
26-
- npx -p node@8 npm run semantic-release
15+
- npx semantic-release
16+
branches:
17+
except:
18+
- /^v\d+\.\d+\.\d+$/

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
# logger
1+
>This repository is part of the [Pelias](https://github.com/pelias/pelias)
2+
>project. Pelias is an open-source, open-data geocoder originally sponsored by
3+
>[Mapzen](https://www.mapzen.com/). Our official user documentation is
4+
>[here](https://github.com/pelias/documentation).
25
3-
[![Greenkeeper badge](https://badges.greenkeeper.io/pelias/logger.svg)](https://greenkeeper.io/)
4-
5-
[![NPM](https://nodei.co/npm/pelias-logger.png)](https://nodei.co/npm/pelias-logger/)
6+
# Pelias Logger
67

78
The centralized logger package for Pelias, which wraps [winston](https://github.com/winstonjs/winston) with
89
Pelias-specific transports and default configurations.
910

10-
### config
11+
[![Greenkeeper badge](https://badges.greenkeeper.io/pelias/logger.svg)](https://greenkeeper.io/)
12+
[![NPM](https://nodei.co/npm/pelias-logger.png)](https://nodei.co/npm/pelias-logger/)
13+
14+
### Config
1115
The logger will set its log levels to the `logger.level` property in `pelias-config`, which should be set to any of the
1216
default winston [options](https://github.com/winstonjs/winston#logging-levels). `logger.timestamp` and
1317
`logger.colorize` take boolean values (defaulting to `true`) that indicate whether log lines should have a
1418
timestamp/be colorized.
1519

16-
### API
20+
### Interface
1721
##### `get( name, loggerOpts )`
1822
Retrieve a logger with a specific name or, if none is found, create a new one.
1923

@@ -25,7 +29,7 @@ Retrieve a logger with a specific name or, if none is found, create a new one.
2529
The winston package is exposed via this option, to provide access to any items needed in custom `loggerOpts` passed to
2630
`get()` (like `winston.transports.*` classes).
2731

28-
### example
32+
### Example
2933
```javascript
3034
var peliasLogger = require( 'pelias-logger' );
3135
var logger1 = peliasLogger.get( 'logger1' );

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "pelias-logger",
3-
"version": "0.0.0-semantic-release",
3+
"version": "0.0.0-development",
44
"description": "The centralized logger package for Pelias.",
55
"engines": {
6-
"node": ">=4.0.0"
6+
"node": ">=6.0.0"
77
},
88
"keywords": [
99
"pelias",
@@ -12,7 +12,6 @@
1212
"author": "mapzen",
1313
"main": "index.js",
1414
"devDependencies": {
15-
"npm-check": "git://github.com/orangejulius/npm-check.git#disable-update-check",
1615
"precommit-hook": "3.0.0",
1716
"semantic-release": "^15.0.0"
1817
},
@@ -23,11 +22,9 @@
2322
"scripts": {
2423
"units": "node test/units.js",
2524
"test": "npm run units",
26-
"travis": "npm run check-dependencies && npm test",
25+
"travis": "npm test",
2726
"lint": "jshint .",
28-
"validate": "npm ls",
29-
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
30-
"check-dependencies": "node_modules/.bin/npm-check --production"
27+
"validate": "npm ls"
3128
},
3229
"repository": {
3330
"type": "git",
@@ -41,7 +38,9 @@
4138
"pre-commit": [
4239
"lint",
4340
"validate",
44-
"test",
45-
"check-dependencies"
46-
]
41+
"test"
42+
],
43+
"release": {
44+
"success": []
45+
}
4746
}

0 commit comments

Comments
 (0)