-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0a653c
commit 355856b
Showing
7 changed files
with
538 additions
and
3,426 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
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,43 +1,27 @@ | ||
COVERALLS :=./node_modules/coveralls/bin/coveralls.js | ||
MOCHA:= ./node_modules/.bin/mocha | ||
MOCHAEXEC:= ./node_modules/.bin/_mocha | ||
ISTANBUL:= ./node_modules/.bin/nyc | ||
TYPEDOC:= ./node_modules/.bin/typedoc | ||
TSC:= ./node_modules/.bin/tsc | ||
# MAKE JAUL | ||
|
||
build: | ||
$(TSC) | ||
|
||
test: | ||
$(TSC) | ||
@NODE_ENV=test $(MOCHA) --trace-warnings --exit -u tdd -R spec | ||
all: clean update build docs | ||
|
||
test-cover: | ||
$(TSC) | ||
echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID) | ||
@NODE_ENV=test $(ISTANBUL) $(MOCHAEXEC) --exit --report lcovonly -R spec && \ | ||
cat ./coverage/lcov.info | $(COVERALLS) || true | ||
build: | ||
npm run build | ||
|
||
cover: | ||
$(TSC) | ||
@NODE_ENV=test $(ISTANBUL) $(MOCHAEXEC) --exit -R spec ./test/*.js | ||
clean: | ||
npm run clean | ||
|
||
docs: | ||
$(TYPEDOC) | ||
cp CNAME docs/ | ||
cp .nojekyll docs/ | ||
|
||
clean: | ||
rm -rf ./lib | ||
rm -rf ./node_modules | ||
rm -f package-lock.json | ||
npm run docs | ||
|
||
publish: | ||
npm publish | ||
|
||
test: | ||
npm test | ||
|
||
update: | ||
-ncu -u --target minor | ||
-npm install | ||
$(TSC) | ||
-ncu -u -x chalk,get-port | ||
-rm -rf ./node_modules | ||
-rm -f package-lock.json | ||
npm install | ||
npm run build | ||
|
||
.PHONY: docs test | ||
.PHONY: docs |
Oops, something went wrong.