Skip to content

Commit 5a47dc7

Browse files
committed
feat(docs): yarnify
1 parent 2a489c7 commit 5a47dc7

File tree

7 files changed

+1685
-7825
lines changed

7 files changed

+1685
-7825
lines changed

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[context.deploy-preview]
2-
command = "npm run setup && npm run preview:hbs"
2+
command = "yarn setup && yarn preview:hbs && yarn preview:docs"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"clean": "git clean -dfx",
4040
"publish": "npx lerna publish -m \"[skip travis] chore(release): publish %s\"",
4141
"postpublish": "auto release",
42+
"preview:docs": "cd packages/docs && yarn production",
4243
"preview:hbs": "cd packages/development-edition-engine-handlebars && npx patternlab add --starterkits @pattern-lab/starterkit-handlebars-vanilla && npm run pl:build"
4344
},
4445
"nyc": {

packages/docs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@ This is the website for patternlab.io. This site was build using the [Hylia star
77
## How to work with this project
88

99
1. Clone this repository
10-
2. `cd` into the project directory and run `npm install`
11-
3. Once all the dependencies are installed run `npm start`
10+
2. `cd` into the project directory and run `yarn`
11+
3. Once all the dependencies are installed run `yarn start`
1212
4. Open your browser at `http://localhost:8080`
1313

1414
## Terminal commands
1515

1616
### Serve the site locally
1717

1818
```bash
19-
npm start
19+
yarn start
2020
```
2121

2222
### Build a production version of the site
2323

2424
```bash
25-
npm run production
25+
yarn production
2626
```
2727

2828
### Compile Sass
2929

3030
```bash
31-
npm run sass:process
31+
yarn sass:process
3232
```

packages/docs/netlify.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)