This project was bootstrapped with
The webview API allows extensions to create customizable views within VSCode. Single Page Application frameworks are perfect fit for this use case. However, to make modern JavaScript frameworks/toolchains appeal to VSCode webview API's security best practices requires some knowledge of both the bundling framework you are using and how VSCode secures webview. This project aims to provide an out-of-box starter kit for Create React App and TypeScript in VSCode's webview.
Run following commands in the terminal
yarn install --ignore-engines
yarn run build
And then press F5, in Extension Development Host session, run Start React Webview
command from command palette.
If you don't want to install nodejs and yarn, you can use docker to build the project.
make up # start docker container
make install # install yarn dependencies
make watch # watch file changes and build
If you want to kill your docker container, run make down
.
docker build -t easydocker/api -f ./api/Dockerfile ./api
docker build --tag easydocker/front \
--build-arg VITE_API_URL=<API_URL> \
-f front/Dockerfile.prod ./front