@nx/remix:library
Generate a Remix library to help structure workspace and application.
Generate a Remix library to help structure workspace and application.
1nx generate library ...
21nx g lib ... #same
2By default, Nx will search for library in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/remix:library ...
2Show what will be generated without writing to disk:
1nx g library ... --dry-run
2Generate libs/myapp/mylib:
1g lib mylib --directory=myapp
2A directory where the lib is placed.
^[a-zA-Z].*$Library name
falseShould the library be buildable?
The library name used to import it, like @myorg/my-awesome-lib
falseGenerate JavaScript files rather than TypeScript files
cssnone, cssGenerate a stylesheet
Add tags to the library (used for linting)
vitestvitest, jest, noneTest Runner to use for Unit Tests
falseSkip formatting files after generator runs
Watch the replays of exciting talks on developer tooling and monorepos! Catch all the insightful presentations from the event on our YouTube channel.