Available Scripts
In the project directory, you can run the following script commands:
Turbo
All script commands listed below on this page can be ran with turbo, by prefixing the command with t:
.
For example if you want to run the test
script with turbo you can use the following command format.
npm run t:test
Scripts
start
npm run start
Runs the app in the development mode. Your browser will automatically open to http://localhost:3000 (opens in a new tab).
The page will reload if you make edits.
test
npm run test
Launches the test runner in the interactive watch mode. See the section about running tests for more information.
lint:tsc
npm run lint:tsc
Runs tsc, and checks for and prints all typescript errors and warnings.
lint:eslint
npm run lint:eslint
Runs eslint, prints all errors and warnings.
lint:css
npm run lint:css
Runs stylelint against all css files, and prints all errors and warnings.
lint:css:fix
npm run lint:css:fix
Runs stylelint against all css files, and fixes all auto fixable problems and formats.
format
npm run format
Runs the Rome (formatter) and displays all changes that will be made.
format:fix
npm run format:fix
Runs the Rome (formatter) and writes the changes to the files.
build
npm run build
Builds the app for production to the dist
folder. It correctly bundles React in production mode and optimizes the build for the best performance.
Your app is ready to be deployed! See the section about deployment for more information about deploying your application to popular hosting providers.