- clone the repo
- install Node.js
- run
npm run setup
- run tests:
npm run test
Debug in VSCode:
- run
npm run build-dev
to compile a package with source maps or keepnpm run watch
running- debugging requires source maps to work
- VSCode somehow doesn't run the compiler by itself before debugging
- set breakpoints in VSCode
- Run > Start Debugging
- in the VSCode instance that starts: open folder > choose a different folder than the current one
To print to the debug console of the hosting VSCode instance: console.log
Local installation:
npm run package
- run
code --install-extension tikibase-*.vsix
in terminal - restart VSCode
npm run update
npm run publish-patch
npm run publish-minor
npm run publish-major