|
| 1 | + |
| 2 | + |
1 | 3 | [](https://travis-ci.org/pattern-lab/patternlab-node)   [](https://gitter.im/pattern-lab/node)
|
2 | 4 |
|
3 | 5 | # Pattern Lab Node Core
|
4 | 6 |
|
5 |
| -This repository contains the core functionality for Pattern Lab Node. Pattern Lab Core is designed to be included as a dependency within [Node Editions](https://github.com/pattern-lab?utf8=%E2%9C%93&query=edition-node). |
6 |
| -If this looks **REALLY DIFFERENT** from what you expected, check out the [ChangeLog](https://github.com/pattern-lab/patternlab-node/wiki/ChangeLog). |
| 7 | +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. |
| 8 | + |
| 9 | +[Online Demo of Pattern Lab Output](http://demo.patternlab.io/) |
| 10 | + |
| 11 | +## Installation |
| 12 | + |
| 13 | +Pattern Lab Node Core is designed to be consumed, and by default is included as a dependency within two example [Node Editions](https://github.com/pattern-lab?utf8=%E2%9C%93&query=edition-node). |
| 14 | + |
7 | 15 |
|
8 | 16 | * [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.
|
9 | 17 | * [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.
|
10 | 18 |
|
11 |
| -## Core Team |
| 19 | + |
12 | 20 |
|
13 |
| -* [@bmuenzenmeyer](https://github.com/bmuenzenmeyer) - Lead Maintainer |
14 |
| -* [@geoffp](https://github.com/geoffp) - Core Contributor |
15 |
| -* [@raphaelokon](https://github.com/raphaelokon) - CLI Contributor |
16 |
| -* [@tburny](https://github.com/tburny) - Core Contributor |
| 21 | +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. |
| 22 | + |
| 23 | +## Usage |
| 24 | + |
| 25 | +``` javascript |
| 26 | +const config = require('./patternlab-config.json'); |
| 27 | +const patternlab = require('patternlab-node')(config); |
| 28 | +patternlab.build(doneCallBack, boolCleanOutputDir); |
| 29 | +``` |
| 30 | + |
| 31 | +* Read more about configuration via `patternlab-config.json`: https://github.com/pattern-lab/patternlab-node/wiki/Configuration |
| 32 | +* The rest of the [api / command line interface](https://github.com/pattern-lab/patternlab-node/wiki/Command-Line-Interface) is documented in the wiki, and already implemented for you within [Node Editions](https://github.com/pattern-lab?utf8=%E2%9C%93&query=edition-node). |
| 33 | +A [full-featured command line interface](https://github.com/pattern-lab/patternlab-node-cli) is in the works, courtesy of [@raphaelokon](https://github.com/raphaelokon). |
| 34 | + |
| 35 | + |
| 36 | +## Development Installation / Workflow |
| 37 | + |
| 38 | +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). |
| 39 | + |
| 40 | +``` bash |
| 41 | +mkdir /patternlab-node |
| 42 | +cd /patternlab-node |
| 43 | +git clone https://github.com/pattern-lab/patternlab-node.git |
| 44 | +npm install |
| 45 | +npm link |
| 46 | +cd location/of/edition |
| 47 | +npm link patternlab-node |
| 48 | +``` |
| 49 | + |
| 50 | +The above is a bit verbose, but illustrates: |
| 51 | + |
| 52 | +1. how to clone this repository to an arbitrary location |
| 53 | +2. install all dependencies (run `npm install --dev` if your NODE_ENV is production for some reason) |
| 54 | +3. setup the `npm link` to your local copy |
| 55 | +4. use the local copy of patternlab-node in your edition |
| 56 | + |
| 57 | +> 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` |
17 | 58 |
|
18 | 59 | ## Upgrading
|
19 | 60 |
|
20 | 61 | 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)
|
21 | 62 |
|
22 |
| -## Command Line Interface |
23 |
| - |
24 |
| -The rudimentary [command line interface](https://github.com/pattern-lab/patternlab-node/wiki/Command-Line-Interface) is documented in the wiki, and already implemented for you within [Node Editions](https://github.com/pattern-lab?utf8=%E2%9C%93&query=edition-node). |
25 |
| -A [full-featured command line interface](https://github.com/pattern-lab/patternlab-node-cli) is in the works, courtesy of [@raphaelokon](https://github.com/raphaelokon). |
| 63 | +View the [ChangeLog](https://github.com/pattern-lab/patternlab-node/wiki/ChangeLog) for the latest Pattern Lab Node updates. |
26 | 64 |
|
27 | 65 | ## Contributing
|
28 | 66 |
|
29 | 67 | 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.
|
30 | 68 |
|
31 |
| -No pull request is too small. Check out any [up for grabs issues](https://github.com/pattern-lab/patternlab-node/labels/help%20wanted%20%2F%20up%20for%20grabs) as a good way to get your feet wet, or add some more unit tests. |
| 69 | +Please read the guidelines: https://github.com/pattern-lab/patternlab-node/blob/master/.github/CONTRIBUTING.md |
32 | 70 |
|
33 |
| -## Guidelines |
34 |
| -1. Please keep your pull requests concise and limited to **ONE** substantive change at a time. This makes reviewing and testing so much easier. |
35 |
| -2. _ALWAYS_ submit pull requests against the [dev branch](https://github.com/pattern-lab/patternlab-node/tree/dev). If this does not occur, I will first, try to redirect you gently, second, port over your contribution manually if time allows, and/or third, close your pull request. If you have a major feature to stabilize over time, talk to @bmuenzenmeyer about making a dedicated `feature-branch` |
36 |
| -3. If you can, add some unit tests using the existing patterns in the `./test` directory |
37 |
| -4. To help hack on core from an edition, read [this wiki page](https://github.com/pattern-lab/patternlab-node/wiki/Running-an-Edition-Against-Local-Core) |
38 | 71 |
|
39 |
| -## Coding style |
40 |
| -Two files combine within the project to define and maintain our coding style. |
| 72 | +## Core Team |
41 | 73 |
|
42 |
| -* The `.editorconfig` controls spaces / tabs within supported editors. Check out their [site](http://editorconfig.org/). |
43 |
| -* The `.eslintrc` defines our javascript standards. Some editors will evaluate this real-time - otherwise it's run using `grunt|gulp build` |
| 74 | +* [@bmuenzenmeyer](https://github.com/bmuenzenmeyer) - Lead Maintainer |
| 75 | +* [@geoffp](https://github.com/geoffp) - Core Contributor |
| 76 | +* [@raphaelokon](https://github.com/raphaelokon) - CLI Contributor |
| 77 | +* [@tburny](https://github.com/tburny) - Core Contributor |
44 | 78 |
|
45 |
| -## Gitter |
| 79 | +## Community |
46 | 80 |
|
47 | 81 | 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.
|
| 82 | + |
| 83 | +There is also a dedicated Pattern Lab channel on the [design system slack](designsystems.herokuapp.com) run by [@jina](https://twitter.com/jina). |
| 84 | + |
| 85 | +Ask or answer Pattern Lab questions on Stack Overflow: http://stackoverflow.com/questions/tagged/patternlab.io |
| 86 | + |
| 87 | +## Support Pattern Lab Node |
| 88 | + |
| 89 | +Pattern Lab Node is on [Patreon account](https://www.patreon.com/patternlab) to allow users and organizations to directly support continued work on the Pattern Lab Node project. |
| 90 | + |
| 91 | +I (Brian talking) need help and support to make Pattern Lab Node a sustained success. I devote a lot of free time and would-be sleep to make the project what it is, but nothing compares to hearing back from users. It means the world to me when people find value in Pattern Lab Node. I am ridiculously humbled to hear and see what you all build with it. |
| 92 | + |
| 93 | +If you find yourself here and balk and the idea of supporting open source software monetarily - I understand. Carry on, but please do share what you build - we all learn more together. |
| 94 | +- [Pattern Lab on Patreon](https://www.patreon.com/patternlab) |
| 95 | + |
| 96 | +## License |
| 97 | + |
| 98 | +[MIT](https://github.com/pattern-lab/patternlab-node/blob/master/LICENSE) |
0 commit comments