Make sure you have a node interpreter installed via a node manager (such as nvm or fnm). For more information on node managers see the NPM docs.
Ensure yarn
is installed via corepack
. If it is not, run corepack enable
somewhere in your CLI.
To install all dependencies, run
yarn install
To start the local dev server, simply run
yarn run start
To publish a release for this project, do the following:
- Increment the version of this project in the
package.json
- Commit and push your changes
- Ensure your secrets are correctly configured in GitHub (see the release workflow)
- Run the release workflow manually via the "Actions" tab and select the main branch to release from
If you are not hosting this project on GitHub or want to publish a release locally, you can follow these steps after step 1.:
2. Ensure your secrets are correctly configured in the .env
file
3. Run yarn run release
You can run static analysis on this project using Sonarqube and CodeCharta.
Prerequisites:
- Set up a sonarqube instance (e.g. install a local instance via Docker or use the docker compose file provided in the CodeCharta source)
- Configure a fresh project (i.e. obtain a project key) and set up an analysis user (i.e. obtain an authentication token)
- Get the sonarqube scanner CLI tool (e.g. install a binary into your PATH or run a docker image. For more information see the CLI tool docs)
To run the scanner in the project, fill in the placeholders, execute in the project root:
sonar-scanner \
-Dsonar.projectKey=<project-key> \
-Dsonar.sources=src,types,electron,e2e \
-Dsonar.host.url=<sonarqube-url> \
-Dsonar.token=<auth-token>
After a little while, the finished analysis will appear in your Sonarqube instance
You first have to convert the current analysis data from Sonarqube into the CodeCharta JSON format:
ccsh sonarimport -u <auth-token> -o canvas.cc.json -nc <sonarqube-url> <project-key>