Skip to content

Commit

Permalink
feat(docs): yarnify
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuenzenmeyer committed Apr 17, 2020
1 parent 2a489c7 commit 5a47dc7
Show file tree
Hide file tree
Showing 7 changed files with 1,685 additions and 7,825 deletions.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[context.deploy-preview]
command = "npm run setup && npm run preview:hbs"
command = "yarn setup && yarn preview:hbs && yarn preview:docs"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"clean": "git clean -dfx",
"publish": "npx lerna publish -m \"[skip travis] chore(release): publish %s\"",
"postpublish": "auto release",
"preview:docs": "cd packages/docs && yarn production",
"preview:hbs": "cd packages/development-edition-engine-handlebars && npx patternlab add --starterkits @pattern-lab/starterkit-handlebars-vanilla && npm run pl:build"
},
"nyc": {
Expand Down
10 changes: 5 additions & 5 deletions packages/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ This is the website for patternlab.io. This site was build using the [Hylia star
## How to work with this project

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

## Terminal commands

### Serve the site locally

```bash
npm start
yarn start
```

### Build a production version of the site

```bash
npm run production
yarn production
```

### Compile Sass

```bash
npm run sass:process
yarn sass:process
```
3 changes: 0 additions & 3 deletions packages/docs/netlify.toml

This file was deleted.

Loading

0 comments on commit 5a47dc7

Please sign in to comment.