2016-10-27 18:01:32 +03:00
|
|
|
bindir := $(shell yarn bin)
|
|
|
|
AVA := $(bindir)/ava
|
|
|
|
NYC := $(bindir)/nyc
|
2016-10-28 18:00:42 +03:00
|
|
|
ST := $(bindir)/st
|
2016-10-27 18:01:32 +03:00
|
|
|
|
2016-10-24 14:43:32 +03:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
2016-10-27 18:01:32 +03:00
|
|
|
BABEL_DISABLE_CACHE=1 NODE_ENV=test CONFIG=$(shell pwd)/webpack/index.js $(NYC) $(AVA) test/*.js $(TEST_ARGS)
|
2016-10-24 17:52:46 +03:00
|
|
|
|
2016-10-28 18:00:42 +03:00
|
|
|
.PHONY: install-embed-markdown-loader
|
|
|
|
install-embed-markdown-loader:
|
|
|
|
cd webpack/embed-markdown-loader
|
|
|
|
yarn install --prefer-offline
|
|
|
|
|
2016-10-24 17:52:46 +03:00
|
|
|
.PHONY: install
|
2016-10-28 18:00:42 +03:00
|
|
|
install: install-embed-markdown-loader
|
2016-10-24 18:55:06 +03:00
|
|
|
yarn install --prefer-offline
|
2016-10-24 17:52:46 +03:00
|
|
|
|
2016-10-28 18:00:42 +03:00
|
|
|
.PHONY: start
|
|
|
|
start:
|
|
|
|
$(ST) -p 8080 -d src/ --no-dot -a 7200000
|
|
|
|
|
2016-10-24 17:52:46 +03:00
|
|
|
.PHONY: install-production
|
2016-10-28 18:00:42 +03:00
|
|
|
install-production: install-embed-markdown-loader
|
|
|
|
yarn install --pure-lockfile --prefer-offline
|
2016-10-24 17:52:46 +03:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@rm -rf node_modules
|
2016-10-25 14:05:29 +03:00
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
2016-10-27 18:01:32 +03:00
|
|
|
@$(shell yarn bin)/eslint .
|