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
Copy file name to clipboardExpand all lines: README.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ The current selection is as follows. It reflects support versus patternlab-php.
46
46
"m": true,
47
47
"l": true,
48
48
"full": true,
49
-
"ranndom": true,
49
+
"random": true,
50
50
"disco": true,
51
51
"hay": true,
52
52
"mqs": false,
@@ -62,10 +62,6 @@ The current selection is as follows. It reflects support versus patternlab-php.
62
62
"tools-docs": true
63
63
}
64
64
```
65
-
66
-
##### Verbose Mode
67
-
`patternlab.json` is a file created for debugging purposes. Set `debug` to true in `.config.json` to see all the secrets.
68
-
69
65
##### Pattern States
70
66
You can set the state of a pattern by including it in `config.json` too. The out of the box styles are in progress (orange), in review (yellow), and complete (green).
71
67
Pattern states should be lowercase and use hyphens where spaces are present.
@@ -77,6 +73,20 @@ Pattern states should be lowercase and use hyphens where spaces are present.
77
73
}
78
74
```
79
75
76
+
##### Pattern Export
77
+
`config.json` also has two properties that work together to export completed patterns for use in a production environment. Provide an array of keys and an output directory. Pattern Lab doesn't ship with any pattern export keys, but the default directory is `"./pattern_exports/"` created inside the install directory.
Coupled with exported css (much easier to extract with existing tools like [grunt-contrib-copy](https://github.com/gruntjs/grunt-contrib-copy)), pattern export can help to maintain the relevancy of the design system by directly placing partials in a directory of your choosing.
85
+
86
+
87
+
##### Verbose Mode
88
+
`patternlab.json` is a file created for debugging purposes. Set `debug` to true in `.config.json` to see all the secrets.
89
+
80
90
##### Server
81
91
Running `grunt serve` will compile the patternlab front end and host it on <ahref="http://localhost:9001">http://localhost:9001</a> by default. Page will reload on any saved source code change.
0 commit comments