-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·42 lines (30 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
CURRENT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
SHELL = /bin/sh
CONTAINER_NAME=main-fns
.DEFAULT_GOAL := test
install:
@docker-compose run --rm $(CONTAINER_NAME) npm install $(deps)
build: install
@docker-compose run --rm $(CONTAINER_NAME) npm run build
@docker-compose run --rm $(CONTAINER_NAME) chown -R node:node .
.PHONY: docs
docs:
@docker-compose run --rm $(CONTAINER_NAME) npm run docs
@docker-compose run --rm $(CONTAINER_NAME) chown -R node:node .
lint/check:
@docker-compose run --rm $(CONTAINER_NAME) npm run lint:check
lint/fix:
@docker-compose run --rm $(CONTAINER_NAME) npm run lint:fix
test:
@docker-compose run --rm $(CONTAINER_NAME) npm run test
@docker-compose run --rm $(CONTAINER_NAME) chown -R node:node .
test/watch:
@docker-compose run --rm $(CONTAINER_NAME) npm run test:watch
@docker-compose run --rm $(CONTAINER_NAME) chown -R node:node .
test/all: lint/check test
version/patch:
@docker-compose run --rm $(CONTAINER_NAME) npm run version:patch
version/minor:
@docker-compose run --rm $(CONTAINER_NAME) npm run version:minor
version/major:
@docker-compose run --rm $(CONTAINER_NAME) npm run version:major