rustle icon indicating copy to clipboard operation
rustle copied to clipboard

Implement a CLI

Open pintariching opened this issue 2 years ago • 4 comments

I think a simple CLI is the last piece missing before doing a prerelease. I think it should just accept a file or a directory and call the rustle::compile_file_to_js function. For now I think if anything goes wrong it should just panic.

Does anybody want to work on it or has any other suggestions?

pintariching avatar Oct 09 '22 17:10 pintariching

How would the CLI behave when a directory is passed instead of a file? split if it should compile every file in the directory or a specific file it looks for.

qwertydelle avatar Oct 09 '22 22:10 qwertydelle

I think it should look for all files that end in .rustle and compile them to a directory named build. Maybe make the output directory name configurable?

pintariching avatar Oct 10 '22 06:10 pintariching

Is anybody working on this or can I start?

pintariching avatar Oct 12 '22 06:10 pintariching

I am currently working on it

qwertydelle avatar Oct 12 '22 06:10 qwertydelle