You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* build patterns, copy assets, and construct ui, watch source files, and serve locally
478
+
* Build patterns, copies assets, and constructs user interface. Watches configured `source/` directories, and serves all output locally
473
479
*
474
-
* @param {object} options an object used to control build, copy, and serve behavior
475
-
* @returns {Promise} TODO: validate
480
+
* @param {object} options an object used to control build behavior
481
+
* @param {bool} options.cleanPublic whether or not to delete the configured output location (usually `public/`) before build
482
+
* @param {object} options.data additional data to be merged with global data prior to build
483
+
* @param {bool} options.watch **ALWAYS OVERRIDDEN to `true`** whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild
484
+
* @returns {Promise} a promise fulfilled when build is complete
* @desc Emitted after global `data.json` and `listitems.json` are read, and the supporting Pattern Lab templates are loaded into memory (header, footer, patternSection, patternSectionSubType, viewall). Right before patterns are iterated over to gather data about them.
27
+
* @property {object} patternlab - global data store
* @desc Emitted before all data is merged prior to a Pattern's render. Global `data.json` is merged with any pattern `.json`. Global `listitems.json` is merged with any pattern `.listitems.json`.
33
+
* @property {object} patternlab - global data store
* @desc Invoked when a watched asset changes. Assets include anything in `source/` that is not under `['root', 'patterns', 'data', 'meta', 'annotations', 'patternlabFiles']` which are blacklisted for specific copying.
0 commit comments