git clone https://github.com/TeamCodeStream/codestream.git
Versions
The CodeStream clients all live in a single git mono-repo. Each IDE has their own tools for generating builds and Jetbrains is no different!
From a terminal, where you have cloned the repository, execute the following command to build the agent and CodeStream for Jetbrains extension from scratch:
cd jb
npm run rebuild
👉 NOTE! This will run a complete rebuild of the extension, webview, and agent.
To just run a quick build of the extension, use:
cd jb
npm run build
To just run a quick build of the agent, use:
cd shared/agent
npm run build
npm install --no-save
... needs to be run for shared/ui, shared/agent, vscode
npm run build
... needs to be run for shared/agent then vscode
If you get a 'pushd not found' error on npm run rebuild, it's because Ubuntu uses sh for the default shell. Tell npm to use bash instead:
Create a file in the vscode folder called
.npmrc
with content
script-shell=/bin/bash
During development you can use a watcher to automatically updating your running builds on editor code changes. From a terminal, where you have cloned the repository, execute the following command:
cd jb
npm run watch
It will do an initial full build and then watch for file changes, compiling those changes incrementally, enabling a fast, iterative coding experience.
To watch the extension and agent, from a terminal, where you have cloned the repository, use the following in separate terminals :
cd jb
npm run watch
cd shared/agent
npm run watch
Or use the provided watch
task in VS Code, execute the following from the command palette (be sure there is no >
at the start):
task watch
👉 Tip! If you only want to watch for changes in the webview you can execute the following command:
cd jb
npm run webview:watch
To run the agent unit tests run the following from a terminal:
cd shared/agent
npm run test-acceptance
or
cd shared/agent
npm run test-unit
To run the webview unit tests run the following from a terminal:
cd shared/ui
npm run test
// TODO
// TODO