PageRenderTime 23ms CodeModel.GetById 12ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/mquery/node_modules/debug/Makefile

https://bitbucket.org/coleman333/smartsite
Makefile | 50 lines | 32 code | 14 blank | 4 comment | 0 complexity | f8739cab4ae015ee84820716a8ac193a MD5 | raw file
 1# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
 2THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
 3THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
 4
 5# BIN directory
 6BIN := $(THIS_DIR)/node_modules/.bin
 7
 8# Path
 9PATH := node_modules/.bin:$(PATH)
10SHELL := /bin/bash
11
12# applications
13NODE ?= $(shell which node)
14YARN ?= $(shell which yarn)
15PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
16BROWSERIFY ?= $(NODE) $(BIN)/browserify
17
18.FORCE:
19
20install: node_modules
21
22node_modules: package.json
23	@NODE_ENV= $(PKG) install
24	@touch node_modules
25
26lint: .FORCE
27	eslint browser.js debug.js index.js node.js
28
29test-node: .FORCE
30	istanbul cover node_modules/mocha/bin/_mocha -- test/**.js
31
32test-browser: .FORCE
33	mkdir -p dist
34
35	@$(BROWSERIFY) \
36		--standalone debug \
37		. > dist/debug.js
38
39	karma start --single-run
40	rimraf dist
41
42test: .FORCE
43	concurrently \
44		"make test-node" \
45		"make test-browser"
46
47coveralls:
48	cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
49
50.PHONY: all install clean distclean