Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
fe build installs dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CSergienko committed Oct 20, 2023
1 parent adb3fcf commit ef2579f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit ef2579f

Please sign in to comment.