Skip to content

Commit

Permalink
Merge pull request #127 from amplitude/misc-build-improvements
Browse files Browse the repository at this point in the history
Misc build improvements
  • Loading branch information
blazzy authored Nov 21, 2017
2 parents 45db6b7 + fa3615b commit 6e12116
Show file tree
Hide file tree
Showing 9 changed files with 3,720 additions and 8,633 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ SRC = $(wildcard src/*.js)
SNIPPET = src/amplitude-snippet.js
TESTS = $(wildcard test/*.js)
BINS = node_modules/.bin
DUO = $(BINS)/duo
MINIFY = $(BINS)/uglifyjs
JSDOC = $(BINS)/jsdoc
JSHINT = $(BINS)/jshint
Expand Down Expand Up @@ -47,7 +46,7 @@ test-sauce: build
#

node_modules: package.json
@npm install
@yarn

#
# Target for updating version.
Expand Down Expand Up @@ -88,7 +87,7 @@ $(SEGMENT_SNIPPET_OUT): $(SRC) $(SNIPPET) version

build: $(TESTS) $(OUT) $(SNIPPET_OUT) $(SEGMENT_SNIPPET_OUT) README.md
@$(ROLLUP) --config rollup.test.js
@$(DUO) --development test/snippet-tests.js > build/snippet-tests.js
@$(ROLLUP) --config rollup.snippet-tests.js

docs:
@$(JSDOC) -d ./documentation/ src/*.js
Expand Down
Loading

0 comments on commit 6e12116

Please sign in to comment.