Does what it says on the tin.
To install dependencies and to ignore old version dependencies to avoid errors - https://stackoverflow.com/questions/66239691/what-does-npm-install-legacy-peer-deps-do-exactly-when-is-it-recommended-wh
npm install --include=dev --legacy-peer-deps
Added @achrinza/node-ipc@10.1.9(which already exists as part of the package dependency tree) to package.json resolutions to fix the version incompatibility issue with node.
In the project directory, you can run:
npm run start
To run the app and have hot-reloads for development, this internally run serve and serve:css commands
npm run build
npm run lint
To fix the errors
npm run lint -- --fix
For prettier
npm run prettier-check
To fix the errors
npm run prettify
It is also possible to configure your editor to run prettier automatically on save
npm run test:unit
npm run test:e2e
To build the app for production, run:
./compile-build.sh release.tar.gz dist
This runs the npm build script and then compiles the build into a tarball, including the revision number.
The build executes in production
mode by default and includes environment variables from the .env.production
file.
Environment variables not specified in the .env.production
file will fall back to values in the .env
file if they exist.
Deployment is handled by the Deployment project, as usual, however it should be noted that context-specific environment variables undergo a string replacement process during deployment. All environment variables with the prefix REPLACE_
are replaced with the corresponding values in the Deployment project at deployment time using GNU awk
's gsub
function.
As of June 2024, Quanthub is hosted on the SS load balancers.
A predefined list of printers is used for the printer selection dropdown. This list is defined in the file src/config/printers.json
. Additional printers, such as the logging printer stub
, can be added to this list by setting the environment variable VITE_CUSTOM_PRINTERS
to a comma-separated list of printer names, e.g. VITE_CUSTOM_PRINTERS=stub,printer1,printer2
.
Abacus Logo sourced from Twemoji licensed under CC-BY 4.0 and converted to favicon using favicon.io