Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Nov 28, 2023
1 parent 34dce19 commit b0c504c
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,31 +104,30 @@
cw-cvm-gateway
cw-mantis-order
];
};
cosmwasm-json-schema-ts = pkgs.writeShellApplication {
name = "cosmwasm-json-schema-ts";
runtimeInputs = with pkgs; [
rust
nodejs
nodePackages.npm
];
text = ''
echo "generating TypeScript types and client definitions from JSON schema of CosmWasm contracts"
cd code/cvm
npm install
rm --recursive --force dist
cosmwasm-json-schema-ts = pkgs.writeShellApplication {
name = "cosmwasm-json-schema-ts";
runtimeInputs = with pkgs; [
rust
nodejs
nodePackages.npm
];
text = ''
echo "generating TypeScript types and client definitions from JSON schema of CosmWasm contracts"
cd code/cvm
npm install
rm --recursive --force dist
rm --recursive --force schema
cargo run --bin order --package cw-mantis-order
npm run build-cw-mantis-order
rm --recursive --force schema
cargo run --bin order --package cw-mantis-order
npm run build-cw-mantis-order
rm --recursive --force schema
cargo run --bin gateway --package xc-core
npm run build-xc-core
rm --recursive --force schema
cargo run --bin gateway --package xc-core
npm run build-xc-core
npm publish
'';
};
npm publish
'';
};
in {
_module.args.pkgs = import self.inputs.nixpkgs {
Expand Down

0 comments on commit b0c504c

Please sign in to comment.