Skip to content

Commit

Permalink
🤖 new -squid
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival committed Sep 28, 2023
1 parent 8f806db commit f5e9c60
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
default := 'squid'

process: build
node -r dotenv/config lib/processor.js

serve:
@npx squid-graphql-server

up:
docker compose up
up *FLAGS:
docker compose up {{FLAGS}}

upd:
@just up -d

pull:
docker compose pull
Expand All @@ -32,12 +37,14 @@ explore:
--archive https://kusama.archive.subsquid.io/graphql \
--out kusamaVersions.jsonl

bug: down up
bug: down upd

reset: migrate

quickstart: migrate process

quick: build reset process

prod TAG:
gh pr create --base release-{{TAG}}

Expand All @@ -47,28 +54,32 @@ migrate:
update-db:
npx squid-typeorm-migration generate

db: update-db migrate

test:
npm run test:unit

improve TAG:
npx sqd squid:update rubick@{{TAG}}
improve TAG=default:
npx sqd deploy -m {{TAG}}.yaml .

release TAG:
npx sqd squid:release rubick@{{TAG}}
release TAG=default:
npx sqd deploy -m {{TAG}}.yaml .

kill TAG:
npx sqd squid:kill "rubick@{{TAG}}"

tail TAG:
npx sqd squid logs rubick@{{TAG}} -f

brutal TAG:
npx sqd squid:update rubick@{{TAG}} --hardReset
brutal TAG=default:
npx sqd deploy -r -m {{TAG}}.yaml .

update-deps:
npx npm-check-updates -u
npx npm-check-updates -ux

exec:
docker exec -it rubick-db-1 psql -U postgres -d squid

check: codegen build

kek: bug quick

0 comments on commit f5e9c60

Please sign in to comment.