Add nvmrc file and note about GATSBY_PARTIAL_CONTENT

Luke Karrys committed Oct 11, 2023 at 17:38 UTC 7df689931399353a05599aee46236359fce7f397
5 files changed +10 -2
.gitignore
+1
@@ -11,6 +11,7 @@
11 !/.github/
12 !/.gitignore
13 !/.npmrc
14 +!/.nvmrc
15 !/.release-please-manifest.json
16 !/.reuse/
17 !/*.md
.nvmrc new
+1
@@ -0,0 +1 @@
1 +18
.reuse/dep5
+1 -1
@@ -7,6 +7,6 @@ Files: content/* static/*
7 Copyright: 2020 GitHub
8 License: CC-BY-4.0
9
10 -Files: scripts/* cli/* theme/* src/* .github/* *.md *.js *.json .npmrc .gitignore
10 +Files: scripts/* cli/* theme/* src/* .github/* *.md *.js *.json .npmrc .gitignore .nvmrc
11 Copyright: 2020 GitHub
12 License: MIT
CONTRIBUTING.md
+6 -1
@@ -36,7 +36,12 @@ Next, `npm run develop` to start the test server to view your changes.
36 The Gatsby server will be started on port 8000. You can navigate to
37 `http://localhost:8000` to view the site live.
38
39 -**For best results use npm 8**
39 +In order to cut down on the time it takes `npm run develop` to complete, you can
40 +use the environment variable `GATSBY_PARTIAL_CONTENT` to only build some pages.
41 +For example, if the only pages you need to test locally are in `/cli/v10/commands`,
42 +then you can run the site locally with `GATSBY_PARTIAL_CONTENT=cli/v10/commands npm run develop`.
43 +
44 +**For best results use Node 18 and npm 9+**
45
46 **Gatsby will watch your filesystem looking for updates.** Any content
47 changes you make should be reflected in the site immediately.
scripts/template-oss/index.js
+1
@@ -35,5 +35,6 @@ module.exports = {
35 '/gatsby-*.js',
36 '/CONTRIBUTING.md',
37 '/CONTENT-MODEL.md',
38 + '/.nvmrc',
39 ],
40 }