twenty/infra/dev/Makefile
Jérémy M 467a1618f0
Update doc & split prisma generate (#299)
* feat: split prisma generate

* fix: update doc
2023-06-15 12:15:57 +02:00

46 lines
1.3 KiB
Makefile

build:
@docker-compose down
@docker volume rm dev_twenty_node_modules_front > /dev/null 2>&1 || true
@docker volume rm dev_twenty_node_modules_server > /dev/null 2>&1 || true
@docker volume rm dev_twenty_node_modules_docs > /dev/null 2>&1 || true
@docker-compose build
up:
@docker-compose up -d
down:
@docker-compose down
sh:
@docker-compose exec twenty-dev sh
front-start:
@docker-compose exec twenty-dev sh -c "cd /app/front && yarn start"
front-test:
@docker-compose exec twenty-dev sh -c "cd /app/front && yarn test"
front-graphql-generate:
@docker-compose exec twenty-dev sh -c "cd /app/server && yarn graphql:generate"
front-storybook:
@docker-compose exec twenty-dev sh -c "cd /app/front && yarn storybook"
server-start:
@docker-compose exec twenty-dev sh -c "cd /app/server && yarn start:dev"
server-prisma-generate-client:
@docker-compose exec twenty-dev sh -c "cd /app/server && yarn prisma:generate-client"
server-prisma-generate-nest-graphql:
@docker-compose exec twenty-dev sh -c "cd /app/server && yarn prisma:generate-nest-graphql"
server-prisma-migrate:
@docker-compose exec twenty-dev sh -c "cd /app/server && yarn prisma:migrate"
server-prisma-seed:
@docker-compose exec twenty-dev sh -c "cd /app/server && yarn prisma:seed"
server-prisma-reset:
@docker-compose exec twenty-dev sh -c "cd /app/server && yarn prisma:reset"