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
## High Level Overview of Change
This PR updates the Explorer to use Node v22 and npm v10 (it currently
uses Node v18 and npm v9).
### Context of Change
Node 18 security support [ends in a
month](https://endoflife.date/nodejs).
### Type of Change
- [x] Refactor (non-breaking change that only restructures code)
### TypeScript/Hooks Update
N/A
## Test Plan
CI passes.
Note: technically this PR doesn't pass the required tests, but those
tests should be changed to match these once this PR gets approval.
## Future Tasks
Update the deploy scripts accordingly.
Copy file name to clipboardExpand all lines: README.md
+18-14Lines changed: 18 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,22 @@ This project uses [Vite](https://vitejs.dev/). You can find information about ho
8
8
9
9
### Install Node and NPM
10
10
11
-
The project requires node@18.12.x. Follow installation instructions on [nodejs.org](https://nodejs.org/en/).
11
+
The project requires node@22. Follow installation instructions on [nodejs.org](https://nodejs.org/en/).
12
12
13
13
(Recommended) Install using [nvm](https://github.com/nvm-sh/nvm).
14
14
15
15
Make sure to use npm version 8+ by running `npm install -g npm@latest` after you install Node.
16
16
17
17
### Google BigQuery Setup
18
+
18
19
This setup is required for the Tokens page of the explorer to function:
19
20
20
21
1.[Select or create a Cloud Platform project][projects].
21
22
1.[Enable the Google BigQuery API][enable_api].
22
23
1.[Set up authentication with a service account][auth]
23
24
24
25
Once you have completed these steps and generated the JSON key file, you must populate the following environment variables in the .env file with their corresponding values from the JSON key file:
*`npm run build` then `npm run prod-server` for production mode
39
+
-`npm install` then
40
+
-`npm start` for development mode, or
41
+
-`npm run build` then `npm run prod-server` for production mode
40
42
41
43
### Installing on Apple Silicon
44
+
42
45
Since `canvas` does not provide pre-built binaries for Apple chips during `npm install` it will try to compile it manually. To get this to succeed you need to install several dependencies by following the instructions [here](https://github.com/Automattic/node-canvas#compiling).
43
46
44
47
## Running on Parallel Networks
@@ -57,9 +60,9 @@ Since `canvas` does not provide pre-built binaries for Apple chips during `npm i
57
60
58
61
### Run unit tests
59
62
60
-
* Run tests in watch mode `npm test`
61
-
* Run test to produce coverage `npm run test:coverage`
62
-
* To open coverage HTML report in app root do `open coverage/index.html`
63
+
- Run tests in watch mode `npm test`
64
+
- Run test to produce coverage `npm run test:coverage`
65
+
- To open coverage HTML report in app root do `open coverage/index.html`
63
66
64
67
### Debugging Unit Tests in Chrome
65
68
@@ -84,20 +87,21 @@ Since `canvas` does not provide pre-built binaries for Apple chips during `npm i
84
87
1. US English (default)
85
88
1. Spanish
86
89
1. French
87
-
1. Japanese
88
-
1. Korean
90
+
1. Japanese
91
+
1. Korean
89
92
90
93
When updating translation entires or adding new languages consult the guide [Translating](./docs/translating.md).
91
94
92
95
## Additional Documentation
93
-
*[How to define transactions](./src/containers/shared/components/Transaction/README.md)
94
-
*[Routing](./docs/routing.md)
96
+
97
+
-[How to define transactions](./src/containers/shared/components/Transaction/README.md)
98
+
-[Routing](./docs/routing.md)
95
99
96
100
## React Documentation
97
101
98
-
* Latest news in [react blog](https://reactjs.org/blog)
99
-
*[React documentation](https://reactjs.org/docs)
100
-
*[How to think in react](https://reactjs.org/docs/thinking-in-react.html) and break down components
102
+
- Latest news in [react blog](https://reactjs.org/blog)
103
+
-[React documentation](https://reactjs.org/docs)
104
+
-[How to think in react](https://reactjs.org/docs/thinking-in-react.html) and break down components
0 commit comments