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
| options | <code>object</code> | an object used to control build behavior |
69
-
| options.cleanPublic | <code>bool</code> | whether or not to delete the configured output location (usually `public/`) before build |
70
-
| options.data | <code>object</code> | additional data to be merged with global data prior to build |
71
-
| options.watch | <code>bool</code> | whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild |
66
+
| Param | Type |Default |Description |
67
+
| --- | --- | --- | --- |
68
+
| options | <code>object</code> ||an object used to control build behavior |
69
+
|[options.cleanPublic]| <code>bool</code> | <code>true</code> | whether or not to delete the configured output location (usually `public/`) before build |
70
+
|[options.data]| <code>object</code> | <code>{}</code> | additional data to be merged with global data prior to build |
71
+
|[options.watch]| <code>bool</code> | <code>true</code> | whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild |
**Kind**: instance property of [<code>patternlab</code>](#patternlab)
123
123
**Returns**: <code>Promise</code> - a promise fulfilled when build is complete
124
124
125
-
| Param | Type | Description |
126
-
| --- | --- | --- |
127
-
| options | <code>object</code> |an object used to control build behavior|
128
-
| options.cleanPublic| <code>bool</code> |whether or not to delete the configured output location (usually `public/`) before build |
129
-
| options.data| <code>object</code> |additional data to be merged with global data prior to build|
125
+
| Param | Type |Default |Description |
126
+
| --- | --- | --- | --- |
127
+
|[options.cleanPublic]| <code>bool</code> |<code>true</code> | whether or not to delete the configured output location (usually `public/`) before build|
128
+
|[options.data]| <code>object</code> |<code>{}</code> | additional data to be merged with global data prior to build |
129
+
|[options.watch]| <code>bool</code> |<code>true</code> | whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild|
130
130
131
131
<aname="patternlab.getDefaultConfig"></a>
132
132
@@ -162,12 +162,12 @@ Build patterns, copies assets, and constructs user interface. Watches configured
162
162
**Kind**: static method of [<code>server</code>](#patternlab.server)
163
163
**Returns**: <code>Promise</code> - a promise fulfilled when build is complete
164
164
165
-
| Param | Type | Description |
166
-
| --- | --- | --- |
167
-
| options | <code>object</code> | an object used to control build behavior |
168
-
| options.cleanPublic | <code>bool</code> | whether or not to delete the configured output location (usually `public/`) before build |
169
-
| options.data | <code>object</code> | additional data to be merged with global data prior to build |
170
-
| options.watch | <code>bool</code> |**ALWAYS OVERRIDDEN to `true`** whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild |
165
+
| Param | Type |Default |Description |
166
+
| --- | --- | --- | --- |
167
+
| options | <code>object</code> ||an object used to control build behavior |
168
+
|[options.cleanPublic]| <code>bool</code> | <code>true</code> | whether or not to delete the configured output location (usually `public/`) before build |
169
+
|[options.data]| <code>object</code> | <code>{}</code> | additional data to be merged with global data prior to build |
170
+
|[options.watch]| <code>bool</code> |<code>true</code> | whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild |
Copy file name to clipboardExpand all lines: packages/core/docs/events.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
Pattern Lab emits numerous events during the [build](../docs/) process. Some uses of events:
6
6
7
7
* Core uses `patternlab-pattern-change` events when watching for changes in order to trigger another build
8
-
* Plugins such as [plugin-node-tab](https://github.com/pattern-lab/plugin-node-tab) can use an event like `patternlab-pattern-write-end` to define additional code tabs to the pattern viewer / modal
8
+
* Plugins such as [plugin-tab](https://github.com/pattern-lab/patternlab-node/tree/master/packages/plugin-tab) can use an event like `patternlab-pattern-write-end` to define additional code tabs to the pattern viewer / modal
9
9
10
10
Learn more about [Creating Plugins](https://github.com/pattern-lab/patternlab-node/wiki/Creating-Plugins).
* @param {object} options an object used to control build behavior
267
-
* @param {bool} options.cleanPublic whether or not to delete the configured output location (usually `public/`) before build
268
-
* @param {object} options.data additional data to be merged with global data prior to build
269
-
* @param {bool} options.watch **ALWAYS OVERRIDDEN to `true`** whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild
267
+
* @param {bool} [options.cleanPublic=true] whether or not to delete the configured output location (usually `public/`) before build
268
+
* @param {object} [options.data={}] additional data to be merged with global data prior to build
269
+
* @param {bool} [options.watch=true] whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild
270
270
* @returns {Promise} a promise fulfilled when build is complete
0 commit comments