Comparing version 0.0.1 to 0.0.2
@@ -9,3 +9,5 @@ 'use strict'; | ||
await this.emitAsync('beforeShutdown'); | ||
this.removeAllListeners('beforeShutdown'); | ||
await this.emitAsync('shutdown'); | ||
this.removeAllListeners('shutdown'); | ||
} | ||
@@ -12,0 +14,0 @@ } |
{ | ||
"name": "cagey", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Cagey game framework", | ||
@@ -19,4 +19,4 @@ "main": "lib/index.js", | ||
"files": [ | ||
"lib", | ||
"LICENSE" | ||
"lib", | ||
"LICENSE" | ||
], | ||
@@ -23,0 +23,0 @@ "author": "Ron Korving <rkorving@wizcorp.jp>", |
@@ -108,6 +108,6 @@ # Cagey core | ||
- Wherever relevant, try to use the same dependencies for core functionality. This creates a consistent user experience, | ||
And reduces dependency chaos. For example: | ||
and reduces dependency chaos. For example: | ||
- EventEmitter: [eventemitter2](https://www.npmjs.com/package/eventemitter2) (*always* emit using `emitAsync`) | ||
- Deep copy: [deep-copy](https://www.npmjs.com/package/deep-copy) | ||
- Parsing duration strings into milliseconds: [parse-duration](https://www.npmjs.com/package/parse-duration) | ||
- Parsing duration strings into milliseconds: [parse-duration](https://www.npmjs.com/package/parse-duration) | ||
- A well written plugin has: | ||
@@ -114,0 +114,0 @@ - Documentation |
6991
13