* chore: add types of schema * Ease codegen use on FE * chore: ignore prettier in generated files * lint: generated files * feature: strongly type filter of query * chore: ignore generated files in prettier * chore: eslint ignore generated files --------- Co-authored-by: Sammy Teillet <sammy.teillet@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
build: ##
|
|
@docker-compose down
|
|
docker volume rm dev_twenty_node_modules_front || true
|
|
docker volume rm dev_twenty_node_modules_server || true
|
|
docker-compose build
|
|
|
|
up: ##
|
|
@docker-compose up -d
|
|
|
|
down: ##
|
|
@docker-compose down
|
|
|
|
## Front
|
|
|
|
front-logs: ##
|
|
@docker-compose logs twenty-front -f
|
|
|
|
front-sh: ##
|
|
@docker-compose exec twenty-front sh
|
|
|
|
front-test: ##
|
|
@docker-compose exec twenty-front sh -c "npm run test"
|
|
|
|
front-coverage: ##
|
|
@docker-compose exec twenty-front sh -c "npm run coverage"
|
|
|
|
front-storybook: ##
|
|
@docker-compose exec twenty-front sh -c "npm run storybook"
|
|
|
|
front-graphql-generate: ##
|
|
@docker-compose exec twenty-front sh -c "npm run graphql-generate"
|
|
|
|
## Hasura
|
|
|
|
hasura-logs: ##
|
|
@docker-compose logs twenty-hasura -f
|
|
|
|
hasura-sh: ##
|
|
@docker-compose exec twenty-hasura sh
|
|
|
|
hasura-console: ##
|
|
@docker-compose exec twenty-hasura bash -c " \
|
|
socat TCP-LISTEN:9695,fork,reuseaddr,bind=twenty-hasura TCP:127.0.0.1:9695 & \
|
|
socat TCP-LISTEN:9693,fork,reuseaddr,bind=twenty-hasura TCP:127.0.0.1:9693 & \
|
|
hasura console --log-level DEBUG --address "127.0.0.1" --no-browser || exit 1"
|