Adding licence checker
This commit is contained in:
parent
40613c8535
commit
0c0b2dd145
7
Makefile
7
Makefile
@ -3,8 +3,13 @@ check:
|
||||
@yarn install --prefer-offline
|
||||
-@./bin/setup
|
||||
|
||||
.PHONE: licence
|
||||
licence:
|
||||
./node_modules/.bin/license-to-fail ./licence.js
|
||||
make licence-check
|
||||
|
||||
SUBDIRS := $(dir $(wildcard */Makefile))
|
||||
TARGETS := install clean test test-ci lint lint-ci # whatever else, but must not contain '/'
|
||||
TARGETS := install clean test test-ci lint lint-ci licence-check# whatever else, but must not contain '/'
|
||||
|
||||
# foo/.all bar/.all foo/.clean bar/.clean
|
||||
SUBDIRS_TARGETS := \
|
||||
|
@ -48,3 +48,7 @@ lint:
|
||||
lint-ci:
|
||||
mkdir -p $(XUNIT_DIR)
|
||||
-$(bindir)/eslint . --format tap | $(XUNIT) $(XUNIT_OUTPUT)-lint.xml
|
||||
|
||||
.PHONY: licence-check
|
||||
licence-check:
|
||||
../node_modules/.bin/license-to-fail ../licence.js
|
||||
|
@ -63,3 +63,7 @@ lint:
|
||||
lint-ci:
|
||||
mkdir -p $(XUNIT_DIR)
|
||||
-$(bindir)/eslint . --format tap | $(XUNIT) $(XUNIT_OUTPUT)-lint.xml
|
||||
|
||||
.PHONY: licence-check
|
||||
licence-check:
|
||||
../node_modules/.bin/license-to-fail ../licence.js
|
||||
|
@ -31,3 +31,6 @@ lint:
|
||||
|
||||
.PHONY: lint-ci
|
||||
lint-ci:
|
||||
|
||||
.PHONY: licence-check
|
||||
lint-ci:
|
||||
|
@ -18,7 +18,8 @@
|
||||
"prepush": "make test"
|
||||
},
|
||||
"dependencies": {
|
||||
"husky": "^0.11.9"
|
||||
"husky": "^0.11.9",
|
||||
"license-to-fail": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tap-xunit": "^1.4.0"
|
||||
|
@ -69,3 +69,7 @@ lint-ci:
|
||||
.PHONY: publish
|
||||
publish:
|
||||
docker build --build-arg NPM_TOKEN=${NPM_TOKEN} --build-arg CIRCLE_BUILD_NUM=${CIRCLE_BUILD_NUM} -f Dockerfile.build .
|
||||
|
||||
.PHONY: licence-check
|
||||
licence-check:
|
||||
../node_modules/.bin/license-to-fail ../licence.js
|
||||
|
Loading…
Reference in New Issue
Block a user