Skip to content

Commit

Permalink
Ignore (#33)
Browse files Browse the repository at this point in the history
* Added .npmignore.

* Removed changelog.
  • Loading branch information
arb authored and cjihrig committed Jul 25, 2016
1 parent f6bfb47 commit b9999be
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 54 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!lib/**
33 changes: 0 additions & 33 deletions CHANGELOG.md

This file was deleted.

32 changes: 13 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,44 +20,38 @@ See the [API Reference](https://github.com/continuationlabs/tacky/blob/master/AP
_copied from examples/default.js_

```js
var Assert = require('assert');
var Http = require('http');
var Hapi = require('hapi');
var Tacky = require('./lib');
const Assert = require('assert');
const Http = require('http');
const Hapi = require('hapi');
const Tacky = require('tacky');

var server = new Hapi.Server();
const server = new Hapi.Server();
server.connection({ port: 9001 });

server.register({
register: Tacky
}, function (err) {
server.register({ register: Tacky }, (err) => {
Assert.ifError(err);
server.route({
method: 'get',
path: '/',
config: {
handler: {
cache: {
hydrate: function (request, callback) {
Http.get('http://www.google.com', function (res) {
var buffers = [];
res.on('data', function (chunk) {
hydrate: (request, callback) => {
Http.get('http://www.google.com', (res) => {
const buffers = [];
res.on('data', (chunk) => {
buffers.push(chunk);
});
res.on('end', function () {
setTimeout(function () {
callback(null, buffers.join().toString());
}, 1000);
res.on('end', () => {
callback(null, buffers.join().toString());
});
});
}
}
}
}
});
server.start(function () {
console.log('Server started at ' + server.info.uri);
});
server.start(() => { console.log('Server started at ' + server.info.uri); });
});
```

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"url": "git://github.com/continuationlabs/tacky.git"
},
"scripts": {
"test": "belly-button && lab -t 100 -va code",
"version": "mdchangelog --remote continuationlabs/tacky --no-prologue --order-milestones semver --order-issues closed_at --overwrite --no-orphan-issues"
"test": "belly-button && lab -t 100 -va code"
},
"keywords": [
"hapi",
Expand Down

0 comments on commit b9999be

Please sign in to comment.