orionsoft-react-scripts
Version:
Orionsoft Configuration and scripts for Create React App.
43 lines (28 loc) • 714 B
Plain Text
ISTANBUL = node_modules/.bin/istanbul
UGLIFYJS = node_modules/.bin/uglifyjs
XYZ = node_modules/.bin/xyz --message X.Y.Z --tag X.Y.Z
SRC = base64.js
MIN = $(patsubst %.js,%.min.js,$(SRC))
all: $(MIN)
%.min.js: %.js
$(UGLIFYJS) $< --compress --mangle > $@
bytes: base64.min.js
gzip --best --stdout $< | wc -c | tr -d ' '
clean:
rm -f -- $(MIN)
release-major:
$(XYZ) --increment major
release-minor:
$(XYZ) --increment minor
release-patch:
$(XYZ) --increment patch
setup:
npm install
test:
$(ISTANBUL) cover node_modules/.bin/_mocha -- --compilers coffee:coffee-script/register