From 3b097ff89f32f58792231a0776e0b4e89694fbf3 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 17 Feb 2025 21:20:08 +0000 Subject: [PATCH] Improve mise setup task Use declarative approach to set working directory --- mise.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index e278e8c7..f1c9904d 100644 --- a/mise.toml +++ b/mise.toml @@ -3,5 +3,12 @@ LAST_FM_USER = 'change-me' LAST_FM_API_KEY = 'change-me' OPENAI_KEY = 'change-me' +[tasks.npm-install] +run = 'npm install' +hide = true +dir = 'assets' + [tasks.setup] -run = ['cd assets && npm install', 'mix setup'] +depends = ['npm-install'] +description = 'Install dependencies and setup the database' +run = ['mix setup']