Debian Codegraph @

markdown-it-testgen/Makefile

raw
1 PATH := ./node_modules/.bin:${PATH}
2
3 NPM_PACKAGE := $(shell node -e 'process.stdout.write(require("./package.json").name)')
4 NPM_VERSION := $(shell node -e 'process.stdout.write(require("./package.json").version)')
5
6 TMP_PATH := /tmp/${NPM_PACKAGE}-$(shell date +%s)
7
8 REMOTE_NAME ?= origin
9 REMOTE_REPO ?= $(shell git config --get remote.${REMOTE_NAME}.url)
10
11 CURR_HEAD := $(firstword $(shell git show-ref --hash HEAD | cut -b -6) master)
12 GITHUB_PROJ := https://github.com//markdown-it/${NPM_PACKAGE}
13
14
15 lint:
16 eslint .
17
18 test: lint
19 mocha -R spec
20
21 coverage:
22 rm -rf coverage
23 istanbul cover node_modules/.bin/_mocha
24
25 .PHONY: lint test coverage
26 .SILENT: lint test