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
This monorepo contains the core of Pattern Lab / Node and all related engines, UI kits, plugins and utilities. Pattern Lab helps you and your team build thoughtful, pattern-driven user interfaces using atomic design principles.
8
+
9
+
If you'd like to see what a front-end project built with Pattern Lab looks like, check out this [online demo of Pattern Lab output](http://demo.patternlab.io/).
[](https://gitter.im/pattern-lab/node)
6
14
7
-
#Pattern Lab Node Core
15
+
## Using Pattern Lab
8
16
9
-
This repository contains the core functionality for Pattern Lab Node. Pattern Lab helps you and your team build thoughtful, pattern-driven user interfaces using atomic design principles.
17
+
### Installation
10
18
11
-
[Online Demo of Pattern Lab Output](http://demo.patternlab.io/)
19
+
Installation is still in flux due to the monorepo transition. Bear with us as we figure this out.
12
20
13
-
## Support for Pattern Lab Node
21
+
## Support for Pattern Lab
14
22
15
-
Pattern Lab Node wouldn't be what it is today without the support of the community. It will always be free and open source. Continued development is made possible in part from the support of [these wonderful project supporters](https://github.com/pattern-lab/patternlab-node/wiki/Thanks). If you want to learn more about supporting the project, visit the [Pattern Lab Node Patreon page](https://www.patreon.com/patternlab).
23
+
Pattern Lab / Node wouldn't be what it is today without the support of the community. It will always be free and open source. Continued development is made possible in part from the support of [these wonderful project supporters](https://github.com/pattern-lab/patternlab-node/wiki/Thanks). If you want to learn more about supporting the project, visit the [Pattern Lab / Node Patreon page](https://www.patreon.com/patternlab).
16
24
17
25
**:100: Thanks for support from the following:**
18
26
@@ -21,130 +29,24 @@ Pattern Lab Node wouldn't be what it is today without the support of the communi
Pattern Lab Node can be used different ways. Editions are **example** pairings of Pattern Lab code and do not always have an upgrade path or simple means to run as a dependency within a larger project. Users wishing to be most current and have the greatest flexibility are encouraged to consume `patternlab-node` directly. Users wanting to learn more about Pattern Lab and have a tailored default experience are encouraged to start with an Edition. Both methods still expect to interact with other elements of the [Pattern Lab Ecosystem](#ecosystem).
27
-
28
-
### Direct Consumption
29
-
30
-
As of Pattern Lab Node 3.X, `patternlab-node` can run standalone, without the need for task runners like gulp or grunt.
31
-
32
-
`npm install @pattern-lab/patternlab-node`
33
-
34
-
See [Usage](#usage) for more information.
35
-
36
-
### Editions
37
-
38
-
For users wanting a more pre-packaged experience several editions are available.
39
-
40
-
*[Pattern Lab/Node: Gulp Edition](https://github.com/pattern-lab/edition-node-gulp) contains info how to get started within a Gulp task running environment.
41
-
*[Pattern Lab/Node: Grunt Edition](https://github.com/pattern-lab/edition-node-grunt) contains info how to get started within a Grunt task running environment.
42
-
*[Pattern Lab/Node: Vanilla Edition](https://github.com/pattern-lab/edition-node) contains info how to get started within a pure node environment.
43
-
*[Pattern Lab/Node: Webpack Edition](https://github.com/Comcast/patternlab-edition-node-webpack) contains info how to get started within a webpack environment.
44
-
> Thanks to the team at Comcast for open-sourcing this stellar work!
Core, and Editions, are part of the [Pattern Lab Ecosystem](http://patternlab.io/docs/advanced-ecosystem-overview.html). With this architecture, we encourage people to write and maintain their own Editions, Starterkits, and even PatternEngines.
51
-
52
-
## Usage
53
-
54
-
`patternlab-node` can be required within any Node environment, taking in a configuration file at instantiation.
// build, optionally watching or choosing incremental builds
61
-
patternlab.build({
62
-
cleanPublic:true,
63
-
watch:true,
64
-
});
65
-
66
-
// or build, watch, and then self-host
67
-
patternlab.serve({
68
-
cleanPublic:true,
69
-
});
70
-
```
71
-
72
-
* Read more about [configuration](http://patternlab.io/docs/advanced-config-options.html#node) via `patternlab-config.json`.
73
-
74
-
* Read more about the rest of [Public API](./docs), and already implemented for you within [Editions](#editions).
75
-
76
-
* A full-featured [command line interface](https://github.com/pattern-lab/patternlab-node-cli) is also available courtesy of [@raphaelokon](https://github.com/raphaelokon).
77
-
78
-
### Events
79
-
80
-
Many [events](./docs/events.md) are emitted during Pattern Lab operations, originally built to support plugins. Below is a sample, allowing users to be informed of asset or pattern changes.
If you are interested in [contributing to Pattern Lab](https://github.com/pattern-lab/patternlab-node/blob/master/.github/CONTRIBUTING.md), it's suggested to install an Edition of your choice and then run a local copy of this repository via [`npm link`](https://docs.npmjs.com/cli/link).
1. how to clone this repository to an arbitrary location
115
-
2. install all dependencies (run `npm install --dev` if your NODE_ENV is production for some reason)
116
-
3. setup the `npm link` to your local copy
117
-
4. use the local copy of patternlab-node in your edition / working directory
118
-
119
-
> Make sure to change to whichever branch you intend to hack on or test within your cloned repository, such as `dev` or `bugfix/fixes-broken-unittest`
120
-
121
-
## Upgrading
122
-
123
-
If you find yourself here and are looking to upgrade, check out how to upgrade from version to version of Pattern Lab Node here: [https://github.com/pattern-lab/patternlab-node/wiki/Upgrading](https://github.com/pattern-lab/patternlab-node/wiki/Upgrading)
124
-
125
-
View the [ChangeLog](https://github.com/pattern-lab/patternlab-node/wiki/ChangeLog) for the latest Pattern Lab Node updates.
126
-
127
32
## Contributing
128
33
129
-
If you'd like to contribute to Pattern Lab Node, please do so! There is always a lot of ground to cover and something for your wheelhouse.
34
+
### Prerequisites
130
35
131
-
Please read the guidelines: https://github.com/pattern-lab/patternlab-node/blob/master/.github/CONTRIBUTING.md
36
+
To get started, you'll need Node 8 or higher. Managing Node with `nvm` is recommended.
132
37
133
-
##Core Team
38
+
### Testing
134
39
135
-
*[@bmuenzenmeyer](https://github.com/bmuenzenmeyer) - Lead Maintainer
Unit tests are currently in `packages/core`. We use Tap
141
43
142
-
The Pattern Lab Node team uses [our gitter.im channel, pattern-lab/node](https://gitter.im/pattern-lab/node) to keep in sync, share updates, and talk shop. Please stop by to say hello or as a first place to turn if stuck. Other channels in the Pattern Lab organization can be found on gitter too.
44
+
#### Cold start testing
143
45
144
-
There is also a dedicated Pattern Lab channel on the [design system slack](http://designsystems.herokuapp.com) run by [@jina](https://twitter.com/jina).
46
+
To ensure that developers can bootstrap the repo from a fresh clone, do this in your working copy:
145
47
146
-
Ask or answer Pattern Lab questions on Stack Overflow: http://stackoverflow.com/questions/tagged/patternlab.io
This ensures that any changes you've made will still result in a clean and functional developer experience. **Note**: be sure you've committed any outstanding work before doing this -- it will blow away whatever's still outstanding, including anything staged but not commited.
0 commit comments