From 83c08669db04a6a9f6d80c930aa25dc192f353cc Mon Sep 17 00:00:00 2001 From: Andreas Gallus Date: Tue, 19 Mar 2024 20:00:10 +0100 Subject: [PATCH] chore: Use asdf tool version manager --- .tool-versions | 1 + Makefile | 12 ++++-------- 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 .tool-versions diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..19ac4b9 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 18.19.1 diff --git a/Makefile b/Makefile index aa2243d..c4ddef5 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,15 @@ # Watch sources and host demo content on http://localhost:8080 dev: - . $$NVM_DIR/nvm.sh && nvm use && \ - npm i && npm run watch + asdf exec npm i && asdf exec npm run watch build: - . $$NVM_DIR/nvm.sh && nvm use && \ - npm i && npm run build + asdf exec npm i && asdf exec npm run build lint: - . $$NVM_DIR/nvm.sh && nvm use && \ - npm i && npm run lint + asdf exec npm i && asdf exec npm run lint release: - . $$NVM_DIR/nvm.sh && nvm use && \ - npm run release + asdf exec npm run release #============================================================= CI TASKS ========