Closed canadaduane closed 2 years ago
Thanks for sharing... just tried this out but can't reproduce - make sure you're pulling from the latest master branch.
I also changed the structure of the Svelte template today to just instead use the user-provided target and dependency, so it should now be:
version = 0.1
[[task]]
name = "svelte"
template = "chomp:svelte"
target = "lib/#.js"
deps = ["src/#.svelte"]
directly showing the interpolation makes it clearer and allows more configurability I think.
Ok. I'm pulling from latest, and copy-pasted the example from this project's root (chompfile.toml). Perhaps that needs to be updated then.
Are you still getting the issue or can we close this?
When I use what you suggested it works, yes. However, I suggest you change this file: https://github.com/guybedford/chomp/blob/main/chompfile.toml#L3 (and perhaps use this issue to track?)
Good point, done in https://github.com/guybedford/chomp/commit/465ed945c5fd8122b5d6460832b0437694d2029c. The test/chompfile.toml
file always has up-to-date examples now.
I have a chompfile.toml in an empty directory like this:
When I type "chp" on the command line (no args), I get the following panic:
With RUST_BACKTRACE=1 I get the following: