feature generator delegates to the Nx JavaScript library generator and creates a minimal package under packages/.
Command
Options
Pass custom tags with:
--tags, the generator creates:
Generated configuration
Foraccount-preferences, the generator configures the Nx library with:
- directory
packages - import path
@amisi-mobile-starter/account-preferences - no bundler
- no generated linter target
- no generated unit-test target
- minimal library files
Next steps
- Define the package’s responsibility and public API.
- Add implementation under
packages/account-preferences/src. - Add tests and Nx targets consistent with neighboring packages.
- Add the package to mobile dependencies or TypeScript paths only if consumers require it.
- Run
bun run verify.
Add an adapter
Scaffold a provider adapter inside an existing package.