Skip to content

Commit

Permalink
Add react-scan for performance profiling (#1065)
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Markopoulos authored Dec 4, 2024
1 parent 728e660 commit 5e72bef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn scan`

Runs the app in development mode and scans the application for performance issues using `react-scan`.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
Expand Down
1 change: 1 addition & 0 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"test": "react-scripts --expose-gc test --logHeapUsage --maxWorkers=4",
"eject": "react-scripts eject",
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./src --ignore-path .gitignore --max-warnings 0",
"scan": "yarn start & npx react-scan@latest localhost:3000",
"precommit": "lint-staged",
"deploy:prod": "dotenv -e .env.prod yarn build && yarn run firebase deploy --only hosting:prod-target",
"deploy:staging": "dotenv -e .env.staging yarn build && yarn run firebase deploy --only hosting:staging-target",
Expand Down

0 comments on commit 5e72bef

Please sign in to comment.