@nrwl/node:library
Create a Node Library for an Nx workspace.
Usage
nx generate library ...
nx g lib ... #same
By default, Nx will search for library
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/node:library ...
Show what will be generated without writing to disk:
nx g library ... --dry-run
Examples
Generate libs/myapp/mylib
:
nx g lib mylib --directory=myapp