-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: attempt to get netlify build to work via cache-busting (#77)
* chore: attempt to get netlify build to work via cache-busting * chore: fix lockfile in docs - format TOML with Prettier * chore(netlify): add some comments to config * chore(scripts): eliminate extra npm build call * chore(scripts): do not build docs in parallel
- Loading branch information
Showing
6 changed files
with
3,997 additions
and
1,697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
[build] | ||
publish = "packages/docs/public" | ||
command = "npm run build:docs:netlify" | ||
publish = "packages/docs/public" | ||
# 1. bust the node_modules cache | ||
# 2. run `npm ci` (which calls `lerna-bootstrap`) | ||
# 3. build gatsby for production (without `--prefix-paths`) | ||
command = """ | ||
rm -rf $NETLIFY_CACHE_DIR/node_modules && \ | ||
npm ci && \ | ||
npm run build:docs:netlify \ | ||
""" | ||
# this, I think, tells netlify's built-in `npm install` to do nothing | ||
environment = { NPM_FLAGS = "--dry-run" } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.