From ef2579f891714107fe4c90b3321da5c08f5799ee Mon Sep 17 00:00:00 2001 From: Chris Sergienko Date: Fri, 20 Oct 2023 18:10:21 +0300 Subject: [PATCH] fe build installs dependencies --- justfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 725aab6..7d962bd 100644 --- a/justfile +++ b/justfile @@ -9,6 +9,10 @@ default: # ----- # frontend start +fe_init: + npm i -g pnpm@latest; + pnpm install; + # Start mock server fe_start_mocks: cd {{fe_mocks_dir}}; ./node_modules/.bin/mocks-server; @@ -18,11 +22,11 @@ fe_start_dev: cd {{fe_app_dir}}; ./node_modules/.bin/vite; # Build frontend for production -fe_build: +fe_build: fe_init cd {{fe_app_dir}}; ./node_modules/.bin/tsc && ./node_modules/.bin/vite build; # Preview frontend prod build locally -fe_preview: +fe_preview: fe_init cd {{fe_app_dir}}; ./node_modules/.bin/vite preview; # Start mocks and dev server