A personal website for self-learning interest.
In your terminal, run the following command:
For local execution:
npm run dev
For test with watch
npm run test
For test coverage
npm run test:ci
For linting and prettifier check
npm run lint
For backstop - view, approve website design. Note: that browser executes differently in OS, especially font's. In this case use the approved generated directly from the OS/Docker container.
npm run backstop:test //To test
npm run backstop:approve // Approve the new website ok
Project is tied closely with github.
To create a new change, do a pull request. (Master is still not locked)
- Create a branch for changes in lowercase with no space.
- Commit the changes in the branch.
- Push.
- In github, create a pull request.
- Check that the workflow is executed without error.
- Merge the commit.
In case there is a need to generate a new backstopJS approved page.
- In github, go to Actions tab.
- Select 'Create approved snapshot'.
- Click on 'Run workflow'
- Enter the vercel/public website to generate an approved website. All foreslash needs to be escaped with a single-backslash, e.g. https://www.walcron.com to https:\/\/www.walcron.com
Updating backstopJS snapshot.
--By pull request
- Download the artifacts generated in "Summary" of the latest build. Replace generated snapshot in backstop_data/bitmaps_test//!failed.png
- replace into bitmaps_reference.
--By action
- Download the artifacts generated in latest requested workflow. Replace generated snapshot in backstop_data/bitmaps_reference/*
- replace into bitmaps_reference.xw