Makefile

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

all: clean install docker

.PHONY: clean docker build

clean:
find . -type f -name "*-lock.json" -delete
rm -rf src/public || echo "src/public not found"
rm -rf target || echo "target not found"
rm -rf src/node_modules || echo "src/node_modules not found"
mkdir target

install:
npm --prefix src install

run:
npm --prefix src run-script start

build:
npm --prefix src run-script build
tar -zcvf target/build-artifact.tar.gz public/*

docker:
docker build -t registry.lti-aiq.in:443/mosaic-decisions-2-0/mosaic-console-
frontend:1.0.0 .
docker push registry.lti-aiq.in:443/mosaic-decisions-2-0/mosaic-console-
frontend:1.0.0

all: clean install build

You might also like