Skip to content

Commit 74b0464

Browse files
Add build:fast build script
Change-type: patch Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipul@balena.io>
1 parent 8a5b092 commit 74b0464

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ git checkout -b my-docs-patch
8686
```
8787
Now you can make changes in this branch. Since our docs are static pages generated from markdown using metalsmith.io, each time you change some of the `.md` files you will need to run rebuild of the docs to generate the static pages. This is done by running:
8888
```
89-
npm run build
89+
npm run build:fast
9090
```
91-
However there is a handy watch functionality that will watch for changes in `/pages`, `/shared`, and `/templates` and rebuild each time you save your changes. To use this, open a new tab in your terminal and run:
91+
This will skip over downloading files from external sources which is a time taking process. However there is a handy watch functionality that will watch for changes in `/pages`, `/shared`, and `/templates` and rebuild each time you save your changes. To use this, open a new tab in your terminal and run:
9292
```
9393
npm run watch-pages
9494
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"test": "npm run test-spelling",
1313
"test-spelling": "find . -iname \"*.*md\" -not -path \"./CHANGELOG*\" -not -path \"./node_modules/*\" | ./tools/test-spelling.sh",
1414
"build": "./tools/prepare.sh && ./tools/build.sh && webpack -p",
15+
"build:fast": "./tools/build.sh && webpack -p",
1516
"watch-pages": "watch ./tools/build.sh pages shared templates config",
1617
"watch-assets": "webpack -w",
1718
"watch": "npm run watch-pages & npm run watch-assets"

0 commit comments

Comments
 (0)