Skip to content

Commit

Permalink
Updated minified file
Browse files Browse the repository at this point in the history
  • Loading branch information
gilmoreorless committed Jan 21, 2014
1 parent ddc0317 commit 102e940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Makefile
Expand Up @@ -2,15 +2,17 @@ SRC = src/jquery.nearest.js
MIN = src/jquery.nearest.min.js
VERSION = $(shell cat VERSION.txt)

install:
npm install -g uglifyjs
$(MIN): uglify

uglify:
@uglifyjs $(SRC) -c -m --comments '/^\!/' > $(MIN)
@uglifyjs $(SRC) --compress --mangle --comments '/^\!/' --output $(MIN)

install:
npm install -g uglifyjs

version:
@sed -i '' 's/\("version": \)"\(.*\)"/\1"$(VERSION)"/g' *.json
@sed -i '' 's/\(plugin v\).*$\/\1$(VERSION)/' src/*.js
@sed -i '' 's/\(class="version">v\).*\(<\/span>\)/\1$(VERSION)\2/' index.html

.PHONY: uglify
.PHONY: uglify install version
2 changes: 1 addition & 1 deletion src/jquery.nearest.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 102e940

Please sign in to comment.