rustle icon indicating copy to clipboard operation
rustle copied to clipboard

Feat: Implemented CLI

Open qwertydelle opened this issue 2 years ago • 7 comments

Implemented a basic CLI, for now, that can compile any file with svelte syntax and a directory of files(has to end with either .svelte or .rustle).

qwertydelle avatar Oct 14 '22 02:10 qwertydelle

I also need suggestions on how to improve the CLI, especially when compiling a whole directory feel free to make changes as needed.

qwertydelle avatar Oct 14 '22 03:10 qwertydelle

@pintariching I think cargo.lock should be added to .gitignore

qwertydelle avatar Oct 14 '22 03:10 qwertydelle

I've read that cargo.lock should be ignored for libraries but used for binaries, so that when you build it, it uses the same version libraries as it did on your computer.

pintariching avatar Oct 14 '22 21:10 pintariching

Maybe I am doing something wrong but it causes some problems when building for me

qwertydelle avatar Oct 14 '22 21:10 qwertydelle

It could be that some library version mismatch, maybe serde_json that is used in both projects?

pintariching avatar Oct 14 '22 21:10 pintariching

Could be anyway gonna push a new commit that hopefully fixes it

qwertydelle avatar Oct 14 '22 21:10 qwertydelle

@pintariching Aight changed the .gitignore file

qwertydelle avatar Oct 14 '22 21:10 qwertydelle

Ok this seems great! I'll merge it.

pintariching avatar Oct 23 '22 09:10 pintariching