A small build environment for VSCode Extensions.
You need to have docker installed and the docker daemon running.
Clone this repository and build the docker image
git clone https://github.com/sandr01d/vsce-builder-docker.git
docker build -t vsce-builder vsce-builder-dockerTo build an extension, run
docker run --rm -tv $(pwd)/<RELATIVE-PATH-TO-EXTENSION>/:/package vsce-builderThe options used here are:
| --rm | Automatically removes the container when it exits. |
| -t | Opens a pseudo TTY so the output can be observed. |
| -v | Mounts the following directory as a volume. |
$(pwd) |
prints out the path to the current directory, so a relative path can be used. |
| /package | Is the volume defined in the docker file. |
Dependencies are only installed (in the container) using npm, other package managers like yarn or webpack are not supported. The reason for this is my desire to keep things as simple as possible. They can be easily added by modifiying the docker file though.