mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Changes
This commit is contained in:
34
node_modules/validator/Makefile
generated
vendored
Normal file
34
node_modules/validator/Makefile
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
NPM=./node_modules/.bin
|
||||
|
||||
test: lint
|
||||
@node $(NPM)/_mocha \
|
||||
--reporter $(if $(or $(TEST),$(V)),spec,dot) \
|
||||
--slow 600 --timeout 2000 \
|
||||
--grep '$(TEST)'
|
||||
|
||||
lint: dependencies
|
||||
@$(NPM)/jshint --config .jshintrc validator.js test/*.js
|
||||
|
||||
dependencies: node_modules
|
||||
|
||||
node_modules:
|
||||
@echo "Installing dependencies.."
|
||||
@npm install
|
||||
|
||||
coverage: dependencies
|
||||
@$(NPM)/istanbul cover $(NPM)/_mocha -- --reporter spec
|
||||
@open coverage/lcov-report/validator.js/validator.js.html
|
||||
|
||||
clean:
|
||||
@rm -rf coverage
|
||||
|
||||
distclean: clean
|
||||
@rm -rf node_modules
|
||||
|
||||
min: validator.min.js
|
||||
|
||||
%.min.js: %.js dependencies
|
||||
@$(NPM)/uglifyjs --compress --mangle --comments '/Copyright/' $< > $@
|
||||
|
||||
check: test
|
||||
deps: dependencies
|
Reference in New Issue
Block a user