Skip to content

Commit

Permalink
Merge remote-tracking branch 'uwboys/feat/umd-build'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed May 3, 2017
2 parents a315c87 + 60167c4 commit a8ed08f
Show file tree
Hide file tree
Showing 4 changed files with 582 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TESTS = $(wildcard src/__tests__/*-test.js)
BABEL_OPTS = \
--sourceMaps=inline

build: $(LIB) $(ES)
build: $(LIB) $(ES) build-min

test::
@echo No tests...
Expand All @@ -16,7 +16,7 @@ lint::
@$(BIN)/eslint $(SRC)

clean:
@rm -f $(LIB) $(ES)
@rm -rf $(LIB) $(ES)

sloc:
@$(BIN)/sloc ./src
Expand All @@ -36,6 +36,10 @@ publish: build
@git push --tags origin HEAD:master
@npm publish

build-min: $(LIB)
@echo "building dist/TextareaAutosize.min.js"
@$(BIN)/cross-env BABEL_ENV=es NODE_ENV=production $(BIN)/rollup -c

lib/%.js: src/%.js
@echo "building cjs $@"
@mkdir -p $(@D)
Expand Down
Loading

0 comments on commit a8ed08f

Please sign in to comment.