This repository was archived by the owner on May 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Plugins
Drew Folta edited this page Jun 17, 2013
·
1 revision
Plugins are called with "events" (really just methods) at different points of the processing.
-
fileUpdated(evt, api)- called when a file is added or updated
-
evt.filehas details about the particular file
-
fileDeleted(evt, api)- called when a file is deleted
-
evt.filehas details about the particular file
-
resourceUpdated(evt, api)- called when a resource is added or updated
-
evt.resourcehas details about the particular resource
-
resourceDeleted(evt, api)- called when a resource is deleted
-
evt.resourcehas details about the particular resource
-
bundleUpdated(evt, api)- called when a bundle is updated
-
evt.bundlehas the bundle -
evt.fileshas files that caused the trigger of this event- this might be a subset of files in the bundle
-
evt.resourceshas resources that caused the trigger of this event- this might be a subset of resources in the bundle
- this event is deferred to the end of
locator.parseBundle()for plugin optimization
All events receive an api object, which is an API back into the locator.
This API is customized for plugins (and can/should evolve with plugin requirements).