PublicDataWorks / verdad-frontend

MIT License
0 stars 0 forks source link

Install the dependencies:

npm install

Usage

To start the project in dev mode:

npm run dev

Open the project in browser using this link: https://0.0.0.0:5173

To build the project:

npm run build

Running Tests

Setup E2E test

cp cypress.env.json.sample cypress.env.json

Run tests

To run unit test:

npm run test:unit

To run end-to-end tests interactively:

npm run test:e2e:open

To run end-to-end tests headless-ly:

npm run test:e2e:run

To run all tests (unit and e2e) and merge coverage reports (to run in CI workflows):

npm run coverage

Contributing

Coding style

Install pre-commit hook:

npm run prepare

Toolings:

We are using Prettier to format the code, please add it to your editor/IDE and make sure that it picks up the right config of this project at /.prettierrc.cjs.

The pre-commit hook will run npm run lint before every commit. You can also install eslint plugin to your editor/IDE to see the visualized error while coding.

Please note that the unassigned imports (i.e. import './*.scss') are ignored by the linter, please put them together with the sibling import group.

Translation

See detail here