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
+45-8Lines changed: 45 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,22 +22,59 @@ Refer to the [core usage guidelines](https://github.com/pattern-lab/patternlab-n
22
22
23
23
### Installation
24
24
25
-
Installation is still in flux due to the monorepo transition. Bear with us as we figure this out. Our intent is to ship the Pattern Lab Node CLI soon which will help new and existing users.
25
+
As of Pattern Lab Node 3.0.0, installation of [Editions](http://patternlab.io/docs/advanced-ecosystem-overview.html) is accomplished via the command line interface.
26
+
27
+
_0 to 60mph_
28
+
29
+
The below assume a new directory and project is required.
30
+
31
+
1. Open a terminal window and following along below:
> If you get an error stating that `npx` is not installed, ensure you are on `npm 5.2.0` or later by running `npm -v` or install it globally with `npm install -g npx`. [Learn more about npx.](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b)
38
+
1. Follow the on-screen prompts to choose your Edition and a Starterkit should you want one.
39
+
1. Open `package.json` and add the following to your `scripts` object
40
+
```diff
41
+
"scripts": {
42
+
+ "patternlab": "patternlab"
43
+
},
44
+
```
45
+
This tells `npm` to look in the local`node_modules/.bin` directory for the `patternlab` CLI.
46
+
1. In your terminal, run `npm run patternlab <command>`, where `<command>` is a documented method on the CLI, such as `build`, `serve`, or `help`.
47
+
48
+
49
+
_Established npm projects_
50
+
51
+
1. Run the following command from a terminal:
52
+
```bash
53
+
npm install @pattern-lab/cli --save-dev
54
+
```
55
+
1. Open `package.json` and add the following to your `scripts` object
56
+
```diff
57
+
"scripts": {
58
+
+ "patternlab": "patternlab"
59
+
},
60
+
```
61
+
This tells `npm` to look in the local`node_modules/.bin` directory for the `patternlab` CLI.
62
+
1. In your terminal, run `npm run patternlab init`. Follow the on-screen prompts to choose your Edition and a Starterkit should you want one.
26
63
27
-
_In the meantime..._
28
-
29
-
if you already have an Edition tracking 3.X alphas, you can update using the [standard instructions](https://github.com/pattern-lab/patternlab-node/wiki/Upgrading#3x-instructions).
30
-
31
-
if you don't mind pulling down everything and playing with it locally, clone this repo and follow the instructions for [developing locally](https://github.com/pattern-lab/patternlab-node/blob/master/.github/CONTRIBUTING.md#developing-locally).
32
-
33
-
if you don't yet have a 3.X compatible Edition and want to try something a bit messier (and unsupported for now), you could attempt this [workaround](https://github.com/pattern-lab/patternlab-node/issues/813).
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.
40
70
71
+
## Changelog
72
+
73
+
[Each package within this monorepo](https://github.com/pattern-lab/patternlab-node/tree/master/packages) has its own changelog. Below are the main ones to watch:
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).
0 commit comments