From fd4160ca41e243ca7bb10ff9a57bb48f0a04477e Mon Sep 17 00:00:00 2001 From: James Mejia Date: Mon, 22 Apr 2024 14:29:37 -0500 Subject: [PATCH 1/2] Use node 20 LTS --- .nvmrc | 2 +- README.md | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.nvmrc b/.nvmrc index 3c032078..209e3ef4 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18 +20 diff --git a/README.md b/README.md index 0d73358b..8c07e267 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,31 @@ # USWDS Sandbox + An eleventy site for rapid web prototyping and testing new work with USWDS. This site is designed to run locally and on [Cloud.gov pages](https://pages.cloud.gov/). ## Requirements -- Node v18 (LTS) + +- Node v20 (LTS) ## Running code locally + After cloning the template repo, install USWDS, eleventy, and any necessary dependencies using: + ``` npm install ``` + Then, copy USWDS images, fonts, and JavaScript to a project directory. + ``` npm run init ``` + Finally, serve the site locally and watch for changes: + ``` npm start ``` + If all goes well, visit the site at http://localhost:8080. USWDS assets will be in `assets/fonts` and `assets/img`. @@ -24,6 +33,7 @@ USWDS assets will be in `assets/fonts` and `assets/img`. SASS files will be in the `/_styles` directory. Running `npm start` will also watch these files and recompile when there are changes. ## Templates + - `default`: A blank-slate sandbox page - `basic-prose`: A page with a banner, basic header, footer, identifier, and a prose container - `extended-prose`: A page with a banner, extended header, footer, identifier, and a prose container From c97257e84aa4c3e4dba92c647080f8c6d85ffac7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 10:14:13 +0000 Subject: [PATCH 2/2] Bump ejs from 3.1.9 to 3.1.10 Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10. - [Release notes](https://github.com/mde/ejs/releases) - [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10) --- updated-dependencies: - dependency-name: ejs dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 54a73953..c683f6f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1997,9 +1997,9 @@ "dev": true }, "node_modules/ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", "dev": true, "dependencies": { "jake": "^10.8.5" @@ -10239,9 +10239,9 @@ "dev": true }, "ejs": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", - "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", "dev": true, "requires": { "jake": "^10.8.5"