-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dev): update environment for website development (#18657)
* fix(dev): update environment for website development The `nodejs` and `npm` packages installed from the stock Ubuntu Focal repository are outdated for the current website dependencies. This commit installs an updated Node.js (current LTS version) directly from the NodeSource repository instead. The `yarn` package in the stock Ubuntu Focal repository is not the Yarn package manager. The package is actually an alias package for the unrelated `cmdtest` package (ref: <https://packages.ubuntu.com/focal/yarn>). This commit installs (enables) the correct `yarn` command using the same updated Node.js installation above. Website development requires two tools not currently installed in the environment: * Hugo (static site generator). * htmltest (HTML checker for the website content). This commit also installs these tools directly from their GitHub release assets. In the case of Hugo, the installed version matches the version currently specified in 'netlify.toml'. In addition to all the above, this commit also improves the Ubuntu bootstrap script: * Switches `apt` for `apt-get` as recommended for non-interactive scripts. * Add missing temporary directory cleaning commands. After all the above changes, the following now works properly in `website/` in the environment: make serve make local-preview-build Signed-off-by: Hugo Hromic <[email protected]> * update spell checker expect-list --------- Signed-off-by: Hugo Hromic <[email protected]>
- Loading branch information
Showing
2 changed files
with
54 additions
and
11 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