Files
outline/Makefile
2023-10-26 21:50:57 -04:00

29 lines
645 B
Makefile

up:
docker-compose up -d redis postgres
yarn install-local-ssl
yarn install --pure-lockfile
yarn dev:watch
build:
docker-compose build --pull outline
test:
docker-compose up -d redis postgres
yarn sequelize db:drop --env=test
yarn sequelize db:create --env=test
NODE_ENV=test yarn sequelize db:migrate --env=test
yarn test
watch:
docker-compose up -d redis postgres
yarn sequelize db:drop --env=test
yarn sequelize db:create --env=test
NODE_ENV=test yarn sequelize db:migrate --env=test
yarn test:watch
destroy:
docker-compose stop
docker-compose rm -f
.PHONY: up build destroy test watch # let's go to reserve rules names