Skip to content

Commit

Permalink
chore: automatically install deps if not setup
Browse files Browse the repository at this point in the history
  • Loading branch information
NuclearRedeye committed Sep 9, 2024
1 parent cd14e89 commit 333cec3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ clean:
distclean: clean
@rm -rf node_modules

# Target to install Node.js dependencies.
node_modules: package.json package.json
@echo "Installing dependencies..."
@npm i
@-touch node_modules

# Target to create the output directories.
public: $(ASSETS)
@echo "Creating $@..."
Expand All @@ -41,4 +47,4 @@ serve: ${JSON}
@npx resume serve --resume $< --port $(PORT) --theme ${THEME}

# Validates and Serves the CV
test: validate public serve
test: node_modules validate public serve

0 comments on commit 333cec3

Please sign in to comment.