Skip to content

Commit

Permalink
Add nvmrc file and note about GATSBY_PARTIAL_CONTENT
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Oct 12, 2023
1 parent d095dde commit 7df6899
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
!/.github/
!/.gitignore
!/.npmrc
!/.nvmrc
!/.release-please-manifest.json
!/.reuse/
!/*.md
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Files: content/* static/*
Copyright: 2020 GitHub
License: CC-BY-4.0

Files: scripts/* cli/* theme/* src/* .github/* *.md *.js *.json .npmrc .gitignore
Files: scripts/* cli/* theme/* src/* .github/* *.md *.js *.json .npmrc .gitignore .nvmrc
Copyright: 2020 GitHub
License: MIT
7 changes: 6 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ Next, `npm run develop` to start the test server to view your changes.
The Gatsby server will be started on port 8000. You can navigate to
`http://localhost:8000` to view the site live.

**For best results use npm 8**
In order to cut down on the time it takes `npm run develop` to complete, you can
use the environment variable `GATSBY_PARTIAL_CONTENT` to only build some pages.
For example, if the only pages you need to test locally are in `/cli/v10/commands`,
then you can run the site locally with `GATSBY_PARTIAL_CONTENT=cli/v10/commands npm run develop`.

**For best results use Node 18 and npm 9+**

**Gatsby will watch your filesystem looking for updates.** Any content
changes you make should be reflected in the site immediately.
Expand Down
1 change: 1 addition & 0 deletions scripts/template-oss/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ module.exports = {
'/gatsby-*.js',
'/CONTRIBUTING.md',
'/CONTENT-MODEL.md',
'/.nvmrc',
],
}

0 comments on commit 7df6899

Please sign in to comment.