-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
54 lines (43 loc) · 1.72 KB
/
Justfile
File metadata and controls
54 lines (43 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# shows the available just commands
default:
@just --list
# deploy the platform host to fly.io without high availability
deploy:
fly deploy --ha=false -c scripts/fly.toml
# build the maf-server docker image
docker-build:
docker build -f scripts/fly.dockerfile -t maf-server:latest .
# start the platform server in development mode
dev-platform:
RUST_LOG=info,maf_container=trace cargo run --bin maf_container_host
# apply the schema migrations
migrate:
cargo run --package migrations up --verbose
# build and run maf_cli in development mode
[working-directory: "."]
dev-cli *args:
cargo build --bin maf_cli
cd "{{invocation_directory()}}" && {{justfile_directory()}}/target/debug/maf_cli {{args}}
# install maf_cli binary to cargo bin directory
install-cli:
cargo install --path crates/maf_cli
# starts a development server that watches for changes in packages/react and packages/client and rebuilds them on change
[group('npm')]
watch:
pnpm --parallel --filter=@usemaf/react --filter=@usemaf/client --filter=@usemaf/platform dev
# checks types in @usemaf/react and @usemaf/client
[group('npm')]
type-check:
pnpm --parallel --filter=@usemaf/react --filter=@usemaf/client --filter=@usemaf/platform type-check
# builds @usemaf/react and @usemaf/client
[group('npm')]
npm-build:
pnpm run --filter=@usemaf/react --filter=@usemaf/client --filter=@usemaf/platform build
# builds @usemaf/react and @usemaf/client and publishes them to npm
[group('npm')]
npm-publish: npm-build
pnpm publish --filter=@usemaf/react --filter=@usemaf/client --filter=@usemaf/platform --access public --no-git-checks
# [interactive] bumps the version of all packages
[group('npm')]
npm-bump *args:
bun run scripts/bump.ts {{args}}