source: trip-planner-front/node_modules/expand-brackets/node_modules/debug/Makefile

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.0 KB
Line 
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
Note: See TracBrowser for help on using the repository browser.