| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2a489c7 commit 5a47dc7
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,2 +1,2 @@ | |||
| 1 | 1 | [context.deploy-preview] | |
| 2 | - command = "npm run setup && npm run preview:hbs" | ||
| 2 | + command = "yarn setup && yarn preview:hbs && yarn preview:docs" | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,6 +39,7 @@ | |||
| 39 | 39 | "clean": "git clean -dfx", | |
| 40 | 40 | "publish": "npx lerna publish -m \"[skip travis] chore(release): publish %s\"", | |
| 41 | 41 | "postpublish": "auto release", | |
| 42 | + "preview:docs": "cd packages/docs && yarn production", | ||
| 42 | 43 | "preview:hbs": "cd packages/development-edition-engine-handlebars && npx patternlab add --starterkits @pattern-lab/starterkit-handlebars-vanilla && npm run pl:build" | |
| 43 | 44 | }, | |
| 44 | 45 | "nyc": { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,26 +7,26 @@ This is the website for patternlab.io. This site was build using the [Hylia star | |||
| 7 | 7 | ## How to work with this project | |
| 8 | 8 | ||
| 9 | 9 | 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` | ||
| 12 | 12 | 4. Open your browser at `http://localhost:8080` | |
| 13 | 13 | ||
| 14 | 14 | ## Terminal commands | |
| 15 | 15 | ||
| 16 | 16 | ### Serve the site locally | |
| 17 | 17 | ||
| 18 | 18 | ```bash | |
| 19 | - npm start | ||
| 19 | + yarn start | ||
| 20 | 20 | ``` | |
| 21 | 21 | ||
| 22 | 22 | ### Build a production version of the site | |
| 23 | 23 | ||
| 24 | 24 | ```bash | |
| 25 | - npm run production | ||
| 25 | + yarn production | ||
| 26 | 26 | ``` | |
| 27 | 27 | ||
| 28 | 28 | ### Compile Sass | |
| 29 | 29 | ||
| 30 | 30 | ```bash | |
| 31 | - npm run sass:process | ||
| 31 | + yarn sass:process | ||
| 32 | 32 | ``` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments