Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying custom outputPath #58

Open
youngchen7 opened this issue Jan 7, 2022 · 2 comments
Open

Allow specifying custom outputPath #58

youngchen7 opened this issue Jan 7, 2022 · 2 comments

Comments

@youngchen7
Copy link
Contributor

I think it would be beneficial to be able to specify an outputPath - currently if I'm understanding this correctly the outputPath is always set to the current library directory.

It would be nice to take advantage of NX's caching mechanisms, as well as avoid committing autogenerated code.

Or would it be considered bad practice to have raw typescript code in the dist/ directory?

(Let me know if I'm totally off-base here, I've only been playing with NX for about a week).

@Teddarific
Copy link

This seems really useful, big plus one!

@trumbitta
Copy link
Owner

I'm not sure about this 🤔

On one hand, why not? Seems a pretty common option to have in tools like this one.
On the other hand, it kind of defies the whole approach of this plugin: having one lib for the spec file, and one lib for the autogenerated code. And you could use a .gitignore to avoid committing the code if you don't need to (I do 😆)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants