Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[runtime] Upgrade Node.js to version 16 #83

Merged
merged 2 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16

- name: "Cache node_modules"
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ We welcome PRs to add projects to the Rich / Textual galleries. Can't promise we

## Start dev server for maintaining purpose

You will need Node.js (version 14, as newer versions are not supported by our hosting platform at the moment) to run the site locally.
You will need Node.js (version 16 to run the site locally.
Using [nvm](https://github.com/nvm-sh/nvm#intro) is the recommended way to install such a version. Once it is installed, you can run the following commands:

- `nvm install 14 && nvm use 14` - installs Node.js v14
- `nvm install 16 && nvm use 16` - installs Node.js v14
- `npm i` - installs the Node.js dependencies
- `npm run dev` - starts the local development server

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"private": true,
"name": "Textualize.io",
"engines": {
"node": "14.x"
"node": "16.x"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"build:prod": "npm run build:textualize-cache:display && npm run scripts:transpile && npm run scripts:generate-data-code-for-galleries && next build && npm run build:textualize-cache:display",
"build:textualize-cache:display": "cat .next/cache/textualize-cache.*.json || true",
"build:textualize-cache:display": "mkdir -p .next/cache/ && cat .next/cache/textualize-cache.*.json || true",
"build:textualize-cache:clear": "rm -f .next/cache/textualize-cache.*.json || true",
"start": "next start",
"prepare": "husky install",
Expand Down