Skip to content

Commit

Permalink
Merge pull request #3 from unionlabs/migrate-to-devshell-tasks
Browse files Browse the repository at this point in the history
migrate to devshell tasks
  • Loading branch information
cor authored Nov 9, 2024
2 parents c3aa8c1 + 4e80ad0 commit bcc4cfb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 31 deletions.
27 changes: 26 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,32 @@
nixfmt-rfc-style
nodePackages_latest.nodejs
];

scripts = {
fmt.exec = ''
nixfmt *.nix --width=100
cargo fmt --all --check
'';
lint.exec = ''
cargo clippy --all-targets --all-features
'';
build.exec = ''
cargo build --release --target wasm32-unknown-unknown
'';
dev.exec = ''
bunx wrangler@latest --config='wrangler.toml' dev
'';
dev-remote.exec = ''
bunx wrangler@latest --config='wrangler.toml' dev --remote
'';
deploy.exec = ''
bunx wrangler@latest deploy --env='production' --config='wrangler.toml'
'';
clean.exec = ''
rm -rf build
rm -rf target
rm -rf node_modules
'';
};
enterShell = '''';

}
Expand Down
30 changes: 0 additions & 30 deletions justfile

This file was deleted.

0 comments on commit bcc4cfb

Please sign in to comment.