diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 00000000..dcb28300 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,8 @@ +FROM gitpod/workspace-full:latest + +RUN bash -c 'NODE_VERSION="14.15.5" \ + && source $HOME/.nvm/nvm.sh && nvm install $NODE_VERSION \ + && nvm use $NODE_VERSION && nvm alias default $NODE_VERSION \ + && npm -g install npm@7' + +RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index 577bd0d5..1843c0dc 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,3 +1,7 @@ +# Use custom node & npm versions in image +image: + file: .gitpod.Dockerfile + # Commands to start on workspace startup tasks: - name: open terminial diff --git a/README.md b/README.md index d6e88196..bf030fd7 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,13 @@ docs should give you everything you need to get started: - [Setting Up Your Dev Environment](https://docs.deso.org/code/dev-setup) - [Making Your First Changes](https://docs.deso.org/code/making-your-first-changes) +# Node / NPM versions + +This frontend works best with Node v14.15.5 and Npm v7. If you cant use these versions, then try `npm install --force`. + # Start Coding -The quickest way to contribute changes to the BitClout Frontend is the following these steps: +The quickest way to contribute changes to the DeSo Frontend is the following these steps: 1. Open frontend repo in Gitpod