This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-02 02:24:13 +03:00

16 lines
541 B
Makefile

VERSION=$(shell node --eval "console.log(require('./package.json').version)")
BUNDLE=dist/exif-parser-$(VERSION).js
MIN_BUNDLE=dist/exif-parser-$(VERSION)-min.js
BROWSERIFY=node_modules/.bin/browserify
UGLIFY=node_modules/.bin/uglifyjs
build-browser-bundle: setup
@echo "building $(BUNDLE) ..."
@mkdir -p dist/
@$(BROWSERIFY) --bare browser-global.js -o $(BUNDLE)
@echo "building $(MIN_BUNDLE) ..."
@$(UGLIFY) $(BUNDLE) -o $(MIN_BUNDLE) --compress
setup:
@npm install --no-optional --loglevel error --development
clean:
@rm -rf dist/