Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from luckymarmot/makefile-improvements
Improve Makefile naming
- Loading branch information
Showing
2 changed files
with
18 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
BASE=$(shell pwd) | ||
SCRIPTS=$(BASE)/scripts | ||
|
||
# Setup commands | ||
install: | ||
npm install | ||
|
||
# Validation commands | ||
lint: | ||
sh "$(SCRIPTS)/lint.sh" $(BASE) | ||
|
||
test: | ||
sh "$(SCRIPTS)/test.sh" $(BASE) | ||
all: configure pack | ||
|
||
validate: lint test | ||
# Install the requirements | ||
configure: | ||
npm install | ||
|
||
# Build commands | ||
# Build the ES5 script | ||
build: | ||
sh "$(SCRIPTS)/build.sh" $(BASE) | ||
|
||
release: | ||
# Builds a ready-to-deploy ZIP file | ||
pack: build | ||
sh "$(SCRIPTS)/release.sh" $(BASE) $(VERSION) | ||
|
||
deploy: install build release | ||
|
||
transfer: | ||
# Install in Paw extensions folder | ||
install: build | ||
sh "$(SCRIPTS)/transfer.sh" $(BASE) | ||
|
||
# Super commands | ||
paw-extension: deploy transfer | ||
# Validation commands | ||
lint: | ||
sh "$(SCRIPTS)/lint.sh" $(BASE) | ||
|
||
test: | ||
sh "$(SCRIPTS)/test.sh" $(BASE) | ||
|
||
paw-fast: build release transfer | ||
check: lint test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters