Closed ghost closed 3 years ago
it follows the same rule of the cli pattern, sao ./foo
will fetch the generator from the local folder ./foo
, sao nm
will instead use sao-npm
the npm package.
but in this case the npm package is resolved from the file system, relative to the saofile instead of downloading from npm. so it has to be installed in your project, which means it works with monorepo as well.
Got it, thank you for the quick response and the great work you're doing with SAO, just discovered it and it's already my favorite option for project scaffolding :)
The documentation for v1 has a section about sub-generators, explaining their usage, more specifically, in two different manners, being them, as a path to the generator, or a package:
From where exactly the package is retrieved? i'm not sure if it's from npm, or from the filesystem, also, does it works with monorepos?