Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (36 sloc) 899 Bytes
TESTS += test/filter.test.js
TESTS += test/minilog.test.js
DEFAULTS := \
--include ./lib/common \
--include ./node_modules/microee/ \
--global Minilog \
--main lib/web/index.js \
--out dist/minilog.js
# Note: you need uglifyjs, e.g: `npm install -g uglify-js@1.x` first
build:
@mkdir -p ./dist/
@echo 'Building dist/minilog.js'
./node_modules/gluejs/bin/gluejs \
--include ./lib/web \
--exclude package.json \
$(DEFAULTS) \
--command 'uglifyjs --no-copyright --mangle-toplevel'
build-debug:
@mkdir -p ./dist/
@echo 'Building dist/minilog.js'
./node_modules/gluejs/bin/gluejs \
$(DEFAULTS) \
--include ./lib/web \
--command 'uglifyjs --beautify'
gzip:
cat dist/minilog.js | gzip | wc -c
test:
@mocha \
--ui exports \
--reporter spec \
--slow 2000ms \
--bail \
$(TESTS)
formatters:
@node test/example/themes_example.js
.PHONY: build build-debug test formatters