Skip to content

Commit

Permalink
Added flat_case
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed May 28, 2024
1 parent 94295b6 commit 7f6c2b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions crates/templates_scaffolding_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ pub fn register_case_helpers<'a>(mut h: Handlebars<'a>) -> Handlebars<'a> {
handlebars_helper!(pascal_case: |s: String| s.to_case(Case::Pascal));
h.register_helper("pascal_case", Box::new(pascal_case));

handlebars_helper!(flat_case: |s: String| s.to_case(Case::Flat));
h.register_helper("flat_case", Box::new(flat_case));

h
}

Expand Down
2 changes: 1 addition & 1 deletion nix/fixtures/module-repo/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion nix/zome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ let
};

cargoVendorDir = craneLib.vendorMultipleCargoDeps {
cargoConfigs = [
(builtins.trace
(zomeCargoDeps { inherit craneLib; }).cargoVendorDir.outPath
((zomeCargoDeps { inherit craneLib; }).cargoVendorDir + ./config.toml))
];
cargoLockList =
[ ./reference-happ/Cargo.lock (workspacePath + /Cargo.lock) ];
};

wasm = craneLib.buildPackage (commonArgs // {
cargoArtifacts = (zomeCargoDeps { inherit craneLib; }).cargoArtifacts;
inherit cargoVendorDir;
# = (zomeCargoDeps { inherit craneLib; }).cargoVendorDir;
});

deterministicWasm = let
Expand Down

0 comments on commit 7f6c2b3

Please sign in to comment.