Skip to content

Commit 5a7b1b6

Browse files
committed
chore: added build and install aliases on make
1 parent d08d30e commit 5a7b1b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,19 @@ node_modules: package.json
3535
@echo "=> installing dependencies..."
3636
@npm install && /usr/bin/touch node_modules
3737

38+
# alias for "node_modules" target
39+
.PHONY: install
40+
install: node_modules
41+
3842
dist: package.json rollup.config.js $(wildcard src/*.js) node_modules
3943
@echo ""
4044
@echo "=> make $@"
4145
@npx rollup -c --bundleConfigAsCjs && /usr/bin/touch dist
4246

47+
# alias for "dist" target
48+
.PHONY: build
49+
build: dist
50+
4351
test/fetch-api/api.spec.js: test/fetch-api/api.spec.ts
4452
@echo ""
4553
@echo "=> make $@"

0 commit comments

Comments
 (0)