Skip to content

Commit

Permalink
chore: added build and install aliases on make
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Dec 21, 2024
1 parent d08d30e commit 5a7b1b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,19 @@ node_modules: package.json
@echo "=> installing dependencies..."
@npm install && /usr/bin/touch node_modules

# alias for "node_modules" target
.PHONY: install
install: node_modules

dist: package.json rollup.config.js $(wildcard src/*.js) node_modules
@echo ""
@echo "=> make $@"
@npx rollup -c --bundleConfigAsCjs && /usr/bin/touch dist

# alias for "dist" target
.PHONY: build
build: dist

test/fetch-api/api.spec.js: test/fetch-api/api.spec.ts
@echo ""
@echo "=> make $@"
Expand Down

0 comments on commit 5a7b1b6

Please sign in to comment.