Skip to main content
The feature generator delegates to the Nx JavaScript library generator and creates a minimal package under packages/.

Command

The first positional argument is required and becomes the package name and import path.

Options

Pass custom tags with:
Without --tags, the generator creates:

Generated configuration

For account-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
The generated package is intentionally minimal. Add its public exports, package metadata where needed, tests, lint/typecheck targets, and dependency boundaries before treating it as a shipped package.

Next steps

  1. Define the package’s responsibility and public API.
  2. Add implementation under packages/account-preferences/src.
  3. Add tests and Nx targets consistent with neighboring packages.
  4. Add the package to mobile dependencies or TypeScript paths only if consumers require it.
  5. Run bun run verify.

Add an adapter

Scaffold a provider adapter inside an existing package.