Skip to content

Commit

Permalink
Explicitely use binaries from development dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gentooboontoo committed Jun 23, 2019
1 parent 368d455 commit 9c61511
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,34 @@ UMD_FILE := $(BUILD_DIR)/quantities.js
DIST_FILES := $(ESM_FILE) $(UMD_FILE)
BANNER := $(shell cat LICENSE)

NPM_BIN := $(shell npm bin)
ROLLUP := $(NPM_BIN)/rollup
JASMINE_NODE := $(NPM_BIN)/jasmine-node
JSHINT := $(NPM_BIN)/jshint
JSCS := $(NPM_BIN)/jscs

build: $(DIST_FILES)

$(UMD_FILE): $(SOURCES)
rollup --file=$(UMD_FILE) \
--format=umd \
--name=Qty \
--banner="`echo '/*'; cat LICENSE; echo '*/'`" \
src/quantities.js
$(ROLLUP) --file=$(UMD_FILE) \
--format=umd \
--name=Qty \
--banner="`echo '/*'; cat LICENSE; echo '*/'`" \
src/quantities.js

$(ESM_FILE): $(SOURCES)
rollup --file=$(ESM_FILE) \
--format=es \
--name=Qty \
--banner="`echo '/*'; cat LICENSE; echo '*/'`" \
src/quantities.js
$(ROLLUP) --file=$(ESM_FILE) \
--format=es \
--name=Qty \
--banner="`echo '/*'; cat LICENSE; echo '*/'`" \
src/quantities.js

test: lint build
jasmine-node $(SPEC_DIR)
$(JASMINE_NODE) $(SPEC_DIR)

lint: $(LINTEDFILES)
jshint $(LINTEDFILES)
jscs $(LINTEDFILES)
$(JSHINT) $(LINTEDFILES)
$(JSCS) $(LINTEDFILES)

bench:
bin/bench.rb
Expand Down

0 comments on commit 9c61511

Please sign in to comment.