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 thoughtful, pattern-driven user interfaces using atomic design principles.
22
20
Many of these functions are exposed to users within [Editions](https://github.com/pattern-lab/patternlab-node#editions), but [direct consumption](https://github.com/pattern-lab/patternlab-node#direct-consumption) is also encouraged.
23
21
24
-
## `getDefaultConfig()` ⇒ <code>object</code>
25
-
26
-
Returns the standardized default config used to run Pattern Lab. This method can be called statically or after instantiation.
27
-
28
-
**Returns**: <code>object</code> - Returns the object representation of the `patternlab-config.json`
29
-
## `version()` ⇒ <code>string</code>
30
-
31
-
Returns current version
32
-
22
+
**Kind**: global namespace
23
+
**See**
24
+
25
+
-[patternlab.io](patternlab.io) for more documentation.
26
+
-[https://github.com/pattern-lab/patternlab-node](https://github.com/pattern-lab/patternlab-node) for code, issues, and releases
Build patterns, copies assets, and constructs user interface. Watches configured `source/` directories, and serves all output locally
169
+
170
+
**Kind**: static method of [<code>server</code>](#patternlab.server)
102
171
**Returns**: <code>Promise</code> - a promise fulfilled when build is complete
103
172
104
173
| Param | Type | Description |
@@ -108,6 +177,30 @@ Many of these functions are exposed to users within [Editions](https://github.co
108
177
| options.data | <code>object</code> | additional data to be merged with global data prior to build |
109
178
| options.watch | <code>bool</code> |**ALWAYS OVERRIDDEN to `true`** whether or not Pattern Lab should watch configured `source/` directories for changes to rebuild |
110
179
180
+
<aname="patternlab.server.reload"></a>
181
+
182
+
#### `server.reload()` ⇒ <code>Promise</code>
183
+
Reloads any active live-server instances
184
+
185
+
**Kind**: static method of [<code>server</code>](#patternlab.server)
186
+
**Returns**: <code>Promise</code> - a promise fulfilled when operation is complete
187
+
<aname="patternlab.server.refreshCSS"></a>
188
+
189
+
#### `server.refreshCSS()` ⇒ <code>Promise</code>
190
+
Reloads CSS on any active live-server instances
191
+
192
+
**Kind**: static method of [<code>server</code>](#patternlab.server)
193
+
**Returns**: <code>Promise</code> - a promise fulfilled when operation is complete
Many of these functions are exposed to users within [Editions](https://github.com/pattern-lab/patternlab-node#editions), but [direct consumption](https://github.com/pattern-lab/patternlab-node#direct-consumption) is also encouraged.
0 commit comments