compiler/companion/README.md
This is the source for the Valdi Companion. It's written in TypeScript.
Install the necessary dependencies
npm install
Run the app without compilation
npm run main
Bundle into single JS file
npm run build
Bundle for development and use compiler with development build
# Bundle into dev package
npm run build-dev
# Build valdi_core with Bazel and instruct Bazel to use our previously built dev package
bzl build valdi_modules/src/valdi/valdi_core --//src/valdi/compiler/companion:dev_mode
Tests are written using Jest
npm run test
or to enter the watch more:
npm run test-watch
We use prettier, to reformat all code:
npm run format