ng add @ngrx/schematics
Requirements:
@ngrx/schematics as the default collection. If the user accepts, it should do the equivalent of https://ngrx.io/guide/schematics#default-schematics-collection@brandonroberts if you'r accepting pr I can give it a try :)
Hey @brandonroberts, we're taking a look at this as well at Briebug. Curious how you test schematics in the repo outside of unit tests? Do you have any patterns for locally testing? I like to use a sandbox approach to develop and test with https://www.kevinschuchard.com/blog/2018-11-20-schematic-sandbox/
Thanks
I haven't used the sandbox approach but it seems nice!
I've used verdaccio in the past to host a private npm registry.
To avoid duplicate work, by working on this issue with multiple devs simultaneously, perhaps it would be better to assign someone to this issue?
I agree. @itayod claimed it first so I'm happy to step back or provided assistance if needed.
@schuchard its pretty manual right now. I've mostly used the nightly builds and test projects to validate, but something more automated such as sandboxing would be helpful. Its kinda meta, but I think a standalone library to do integration testing would be nice. This is similar to what you're doing already.
You use a clean CLI project
Run your schematic against it
Use the schematics CLI to read files from your CLI project and validate it was applied correctly.
It would at least help with potential breaking changes across major releases.
Most helpful comment
To avoid duplicate work, by working on this issue with multiple devs simultaneously, perhaps it would be better to assign someone to this issue?