refactor: init cypress-cucumber-preprocessor install.
This commit is contained in:
43
node_modules/cucumber-expressions/default.mk
generated
vendored
Normal file
43
node_modules/cucumber-expressions/default.mk
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
SHELL := /usr/bin/env bash
|
||||
JAVASCRIPT_SOURCE_FILES = $(shell find . -name "*.js" -not -path "./node_modules/*")
|
||||
|
||||
ifdef TRAVIS_BRANCH
|
||||
LIBRARY_VERSION=$(TRAVIS_BRANCH)
|
||||
endif
|
||||
ifdef TRAVIS_TAG
|
||||
LIBRARY_VERSION=$(TRAVIS_TAG)
|
||||
endif
|
||||
ifndef LIBRARY_VERSION
|
||||
LIBRARY_VERSION=$(shell git rev-parse --abbrev-ref HEAD)
|
||||
endif
|
||||
|
||||
ASYNC_SUPPORTED := $(shell node --eval "async function foo(){}" 2> /dev/null; echo $$?)
|
||||
|
||||
.tested: package-lock.json .deps $(JAVASCRIPT_SOURCE_FILES)
|
||||
npm run build
|
||||
ifeq ($(ASYNC_SUPPORTED),0)
|
||||
npm run coverage
|
||||
else
|
||||
npm run build-test
|
||||
npm run mocha-built
|
||||
endif
|
||||
touch $@
|
||||
|
||||
default: .tested .eslinted
|
||||
.PHONY: default
|
||||
|
||||
.eslinted: $(JAVASCRIPT_SOURCE_FILES)
|
||||
npm run eslint-fix
|
||||
touch $@
|
||||
|
||||
package-lock.json: package.json
|
||||
npm install
|
||||
npm link
|
||||
touch $@
|
||||
|
||||
clean: clean-javascript
|
||||
.PHONY: clean
|
||||
|
||||
clean-javascript:
|
||||
rm -rf .deps package-lock.json node_modules coverage dist
|
||||
.PHONY: clean-javascript
|
Reference in New Issue
Block a user