2020-08-24 00:04:32 +00:00
|
|
|
# Yarn Commands
|
|
|
|
|
|
|
|
The following commands are supported.
|
|
|
|
You must set `NODE_ENV` to use these commands.
|
|
|
|
To do so, you can add the following line to your `.env` file:
|
|
|
|
|
|
|
|
```
|
|
|
|
NODE_ENV=development
|
|
|
|
```
|
|
|
|
|
|
|
|
## Local dev server
|
|
|
|
- `yarn dev` - Run the local dev server.
|
|
|
|
|
|
|
|
## Building
|
|
|
|
- `yarn build` - Compile without a dev server, into `/static` directory.
|
|
|
|
|
|
|
|
## Translations
|
|
|
|
- `yarn manage:translations` - Normalizes translation files. Should always be run after editing i18n strings.
|
|
|
|
|
|
|
|
## Tests
|
2022-04-04 15:50:14 +00:00
|
|
|
- `yarn test:all` - Runs all tests and linters.
|
2020-08-24 00:04:32 +00:00
|
|
|
|
2022-04-04 15:50:14 +00:00
|
|
|
- `yarn test` - Runs Jest for frontend unit tests.
|
2020-08-24 00:04:32 +00:00
|
|
|
|
2022-04-04 15:50:14 +00:00
|
|
|
- `yarn lint` - Runs all linters.
|
2020-08-24 00:04:32 +00:00
|
|
|
|
2022-04-04 15:50:14 +00:00
|
|
|
- `yarn lint:js` - Runs only JavaScript linter.
|
2020-08-24 00:04:32 +00:00
|
|
|
|
2022-04-04 15:50:14 +00:00
|
|
|
- `yarn lint:sass` - Runs only SASS linter.
|