Skip to content

Commit d5216de

Browse files
author
bulldozer-balena[bot]
authored
Merge pull request #1582 from balena-io/vipul/need-for-buildspeed
Add build:fast to NPM scripts
2 parents 8a5b092 + 795d7f0 commit d5216de

File tree

3 files changed

+3
-39
lines changed

3 files changed

+3
-39
lines changed

.circleci/config.yml

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

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 takes a while. 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)