Skip to content

Commit

Permalink
Merge pull request #3 from jkintscher/dist-builds
Browse files Browse the repository at this point in the history
Dist Builds
  • Loading branch information
jkintscher committed Dec 17, 2015
2 parents 7308b3c + 1139dbb commit 8691bb0
Show file tree
Hide file tree
Showing 5 changed files with 534 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ test_files := test/ti-auth_test.js $(wildcard test/lib/*_test.js)
test_build := $(test_files:%.js=build/%.js)
tests := build/tests.js

.PHONY: all watch test clean
dist := dist/

.PHONY: all watch test clean dist

all: $(app) $(tests)

Expand All @@ -29,5 +31,12 @@ watch: $(source_files) $(test_files)
test: all
testem

dist: $(app)
mkdir -p $(dist)
cp $< $(dist)
uglifyjs $< -o $(dist)ti-auth.min.js \
--mangle \
--source-map $(dist)ti-auth.min.js.source

clean:
rm -rf build
Loading

0 comments on commit 8691bb0

Please sign in to comment.