-
-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1529 from slightlyoff/njk-cache
Cache intermediate NJK template compiles
- Loading branch information
Showing
5 changed files
with
157 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const EventEmitter = require("./Util/AsyncEventEmitter"); | ||
const debug = require("debug")("Eleventy:EventBus"); | ||
|
||
/** | ||
* @module 11ty/eleventy/EventBus | ||
*/ | ||
|
||
debug("Setting up global EventBus."); | ||
/** | ||
* Provides a global event bus that modules deep down in the stack can | ||
* subscribe to from a global singleton for decoupled pub/sub. | ||
* @type * {module:11ty/eleventy/Util/AsyncEventEmitter~AsyncEventEmitter} | ||
*/ | ||
let bus = new EventEmitter(); | ||
bus.setMaxListeners(100); | ||
|
||
module.exports = bus; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters