diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..1c4c6ab --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,7 @@ +FROM gitpod/workspace-full:latest + +RUN bash -c 'VERSION="18" \ + && source $HOME/.nvm/nvm.sh && nvm install $VERSION \ + && nvm use $VERSION && nvm alias default $VERSION' + +RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix diff --git a/.gitpod.yml b/.gitpod.yml index f9db221..d430943 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,3 +1,6 @@ +image: + file: .gitpod.Dockerfile + ports: - port: 3000 name: Silverbullet @@ -12,25 +15,17 @@ github: tasks: - name: Setup init: | - nvm install - nvm use npm install npm run clean-build gp sync-done setup - exit - name: Run Silverbullet server init: | gp sync-await setup - nvm use mkdir pages command: npm run server -- ./pages - name: Run ParcelJS - init: | - gp sync-await setup - nvm use + init: gp sync-await setup command: npm run watch - name: Build plugins - init: | - gp sync-await setup - nvm use + init: gp sync-await setup command: npm run plugs