@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 ...
2
1nx g lib ... #same
2
By 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 ...
2
Show what will be generated without writing to disk:
1nx g library ... --dry-run
2
Generate libs/myapp/mylib:
1g lib mylib --directory=myapp
2
A directory where the lib is placed.
none
none
, vite
, rollup
The bundler to use. Choosing 'none' means this library is not buildable.
none
eslint
, none
The tool to use for running lint checks.
^[a-zA-Z].*$
Library name
none
vitest
, jest
, none
Test Runner to use for Unit Tests
The library name used to import it, like @myorg/my-awesome-lib
false
Generate JavaScript files rather than TypeScript files
css
none
, css
Generate a stylesheet
Add tags to the library (used for linting)
false
Skip formatting files after generator runs
false
Generate a buildable library that uses rollup to bundle.
Use the bundler
option for greater control (none, vite, rollup).