Created
November 9, 2019 15:43
-
-
Save xfbs/c3ef196a4549421a4231f88f403954b2 to your computer and use it in GitHub Desktop.
setup node and vscode environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# which APT packages to install | |
# nodejs | |
PACKAGES += nodejs | |
PACKAGES += yarn | |
PACKAGES += npm | |
PACKAGES += nodejs-dev node-gyp | |
# tools (dev) | |
PACKAGES += git | |
PACKAGES += docker.io docker-compose | |
# libraries | |
PACKAGES += libssl1.0-dev | |
# tools (network) | |
PACKAGES += wget | |
PACKAGES += curl | |
# tools (misc) | |
PACKAGES += bash-completion | |
PACKAGES += jq | |
# misc | |
PACKAGES += software-properties-common apt-transport-https wget | |
# which package repositories to enable | |
REPOS += yarn | |
REPOS += microsoft | |
default: repositories updates packages | |
repositories: $(REPOS:%=/etc/apt/sources.list.d/%.list) | |
/etc/apt/sources.list.d/yarn.list: | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" > $@ | |
/etc/apt/sources.list.d/microsoft.list: | |
curl -Ss https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > $@ | |
# install updates | |
updates: | |
apt update | |
apt upgrade | |
# install packages | |
packages: | |
apt install -y $(PACKAGES) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment