Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
build: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
frenautvh committed Jul 16, 2019
1 parent 5260fb1 commit bb0763d
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#### SYSTEM COMMAND ####
NODE=node
NPM=npm
GRUNT=grunt
NPM=yarn
GIT=git
CD=cd
ECHO=@echo
Expand All @@ -13,7 +12,6 @@ RSYNC=rsync -av --delete --exclude=".git"

#### FOLDERS ####
NODE_DIR=node_modules
GRUNT_DEP=$(NODE_DIR)/grunt


#### MACRO ####
Expand Down Expand Up @@ -41,19 +39,19 @@ clean:
install:
$(NPM) install

dev:
$(GRUNT) watch
dev: install
$(NPM) dev

test: $(GRUNT_DEP)
$(GRUNT) eslint
test: install
$(NPM) lint

build: $(GRUNT_DEP)
$(GRUNT) build
build: install
$(NPM) build

version:
$(ECHO) $(VERSION)

release: update-release build commit-release
release: build commit-release


#############
Expand All @@ -64,11 +62,8 @@ $(NODE_DIR)/%: install
# DO NOT DELETE - this comment is needed because make does not process this step
# if there's no task def; seems to be related to the % suffix.

clean-dist: $(GRUNT_DEP)
$(GRUNT) clean
clean-dist:
$(DEL) dist

update-release: $(GRUNT_DEP)
$(GRUNT) release --type=$(type)

commit-release: $(GRUNT_DEP)
$(GRUNT) bump-commit
commit-release:
$(NPM) version --$(type)

0 comments on commit bb0763d

Please sign in to comment.