2020-07-09 05:33:46 +09:00
|
|
|
IMAGE_NAME := docker.pkg.github.com/peaceiris/actions-gh-pages/dev:latest
|
2020-02-05 14:34:19 +09:00
|
|
|
NODE_VERSION := $(shell cat ./.nvmrc)
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
2020-07-21 19:37:23 +09:00
|
|
|
docker-compose build --build-arg NODE_VERSION=$(NODE_VERSION)
|
2020-02-05 14:34:19 +09:00
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
run:
|
2020-07-21 19:37:23 +09:00
|
|
|
docker-compose run --rm dev bash
|
2020-02-05 14:34:19 +09:00
|
|
|
|
2020-07-21 19:37:23 +09:00
|
|
|
.PHONY: ci
|
|
|
|
ci:
|
|
|
|
docker-compose run --rm -T dev npm ci
|
2020-03-25 19:37:45 +09:00
|
|
|
|
2020-02-05 14:34:19 +09:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
2020-07-21 19:37:23 +09:00
|
|
|
docker-compose run --rm -T dev npm test
|
2020-03-16 00:43:59 +00:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
2020-07-21 19:37:23 +09:00
|
|
|
docker-compose run --rm -T dev npm run all
|