You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,29 +17,28 @@ For notes on how to deploy the project on a live system, see [Deployment](#deplo
17
17
### Prerequisites
18
18
19
19
-[Node JS](https://nodejs.org/en/). Runnning the LTS release is recommended.
20
-
-[Yarn](https://yarnpkg.com/en/) for package management.
21
20
22
21
```
23
-
yarn install
22
+
npm install
24
23
```
25
24
26
25
To start local development, run:
27
26
28
27
```
29
-
yarn start
28
+
npm start
30
29
```
31
30
32
31
**ℹ️ NOTE:** Running locally will show unpublished content that uses the `published: false` convention in frontmatter. Content with `published: false` will not be available on staging or production.
|`npm start`| Starts eleventy and includes unpublished content. |
39
+
|`npm build:production`| Builds the site for production. |
40
+
|`npm build:unpublished`| Builds the site for production with unpublished content. |
41
+
|`npm clean`| Clears the output directory. (You probably won't need to use this manually.) |
43
42
44
43
## How the site is built
45
44
@@ -49,7 +48,7 @@ The site works in slightly different ways depending on whether you're running th
49
48
50
49
### Development builds
51
50
52
-
When you run `yarn start` the CSS and JS is built in parallel with the eleventy build. Once up and running both eleventy and the JS and CSS build scripts watch for changes. When something changes the site is re-built.
51
+
When you run `npm start` the CSS and JS is built in parallel with the eleventy build. Once up and running both eleventy and the JS and CSS build scripts watch for changes. When something changes the site is re-built.
53
52
54
53
In development Eleventy knows nothing about the CSS and JavaScript builds. For automatic reloading of the JS and CSS, each script uses a fetch to the public API to tell browserSync there is new code and it reloads it for you.
0 commit comments