Skip to content

Commit

Permalink
add precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Oct 7, 2017
1 parent 3f72df5 commit 852923e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
9 changes: 2 additions & 7 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@
"lerna": "2.3.1",
"version": "independent",
"npmClient": "yarn",
"packages": [
"packages/*"
],
"packages": ["packages/*"],
"commands": {
"publish": {
"ignore": [
"ignored-file",
"*.md"
]
"ignore": ["ignored-file", "*.md"]
}
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"queueing"
],
"scripts": {
"precommit": "npm run format",
"lint": "eslint --fix ./packages/**/*.js ./test/**/*.js",
"format": "prettier ./packages/**/*.js ./examples/**/*.js ./test/**/*.js --write && npm run lint",
"setup": "npm i && lerna bootstrap",
Expand Down Expand Up @@ -62,6 +63,7 @@
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"hemera-testsuite": "^1.2.0",
"husky": "^0.14.3",
"istanbul": "0.4.x",
"joi": "10.6.x",
"lerna": "^2.2.0",
Expand Down
16 changes: 15 additions & 1 deletion packages/hemera-opentracing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,21 @@

This is a plugin to use [Opentracing](http://opentracing.io/) with Hemera.

# Run Jaeger
## Install

```
npm i hemera-opentracing --save
```

## Usage

```js
hemera.use(hemeraOpentracing, {
serviceName: 'math'
})
```

## Run Jaeger tracer

```bash
$ docker run -d -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp -p5778:5778 -p16686:16686 -p14268:14268 -p9411:9411 jaegertracing/all-in-one:latest
Expand Down

0 comments on commit 852923e

Please sign in to comment.