destiny icon indicating copy to clipboard operation
destiny copied to clipboard

Documentation on best/common way to integrate into a project

Open andria-dev opened this issue 5 years ago • 1 comments

As it currently stands, I can't seem to find a great way to integrate Destiny into a project. When should I be running Destiny? I mean, ideally, it would be whenever an import is changed or when a file is referenced/created.

The only way I've found to run it consistently is to run it on pre-commit with husky, is that the best practice currently? What do you do for this repo?

All of this information might be useful in your documentation.

andria-dev avatar May 24 '20 18:05 andria-dev

On this repo will still manualy run Destiny on src. But maybe a day we'll switch to a lint stage or a husky hook. I personally use it that way on another project.

A watch mode has been mentioned in #17. It could be a possible way to use it.

There's also a discussion in #112 about a "flat structure" on the remote repo.

I though about an IDE plugin, but I don't know if it would be viable.

AnatoleLucet avatar May 25 '20 13:05 AnatoleLucet