Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Mar 13, 2019
1 parent 23faaff commit 3f1cfa1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PATH:=./node_modules/.bin:$(PATH)
SOURCE_FILES:=$(shell find src/ -type f -name '*.ts')
EXAMPLE_FILES:=$(shell find examples/ -type f -name '*.js')

.PHONY:build
build: fetch-mw-oauth2.zip dist/build browser/fetch-mw-oauth2.min.js
Expand Down Expand Up @@ -38,5 +39,6 @@ browser/fetch-mw-oauth2.min.js: dist/build
--display-modules \
--sort-modules-by size

fetch-mw-oauth2.zip: browser/fetch-mw-oauth2.min.js
cd browser; zip -r ../fetch-mw-oauth2.zip *.js *.map
fetch-mw-oauth2.zip: browser/fetch-mw-oauth2.min.js $(EXAMPLE_FILES) README.md LICENSE
-rm fetch-mw-oauth2.zip
zip -r fetch-mw-oauth2.zip browser/ examples/ LICENSE README.md

0 comments on commit 3f1cfa1

Please sign in to comment.