Skip to content

Commit

Permalink
wip: looks like it might be build-sqlc
Browse files Browse the repository at this point in the history
  • Loading branch information
gak committed Jul 8, 2024
1 parent 3eea9c5 commit 3f4b8f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,35 @@ export DATABASE_URL := "postgres://postgres:secret@localhost:15432/ftl?sslmode=d

# Explicitly initialise the database
init-db:
git status
dbmate drop || true
git status
dbmate create
git status
dbmate --migrations-dir backend/controller/sql/schema up
git status

# Regenerate SQLC code (requires init-db to be run first)
build-sqlc:
git status
@mk backend/controller/sql/{db.go,models.go,querier.go,queries.sql.go} backend/controller/{cronjobs}/sql/{db.go,models.go,querier.go,queries.sql.go} common/configuration/sql/{db.go,models.go,querier.go,queries.sql.go} : backend/controller/sql/queries.sql backend/controller/{cronjobs}/sql/queries.sql common/configuration/sql/queries.sql backend/controller/sql/schema sqlc.yaml -- "just init-db && sqlc generate"
git status

# Build the ZIP files that are embedded in the FTL release binaries
build-zips: build-kt-runtime
git status
@for dir in {{ZIP_DIRS}}; do (cd $dir && mk ../$(basename ${dir}).zip : . -- "rm -f $(basename ${dir}.zip) && zip -q --symlinks -r ../$(basename ${dir}).zip ."); done
git status

# Rebuild frontend
build-frontend: npm-install
@mk {{FRONTEND_OUT}} : frontend/src -- "cd frontend && npm run build"

# Rebuild VSCode extension
build-extension: npm-install
git status
@mk {{EXTENSION_OUT}} : extensions/vscode/src extensions/vscode/package.json -- "cd extensions/vscode && rm -f ftl-*.vsix && npm run compile"
git status

# Install development version of VSCode extension
install-extension: build-extension
Expand Down

0 comments on commit 3f4b8f7

Please sign in to comment.