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