@ng-native/nx
v0.10.0
Published
Nx generators for Angular Native: nx add, an Expo app project whose targets run it, and native libraries and components.
Maintainers
Readme
@ng-native/nx
Nx generators for Angular Native: nx add @ng-native/nx, an app generator that adds an Expo app
project to the workspace, able to import its Angular libraries, and library and component
generators whose tests render on the fake Fabric.
Alpha: APIs may change before 1.0.
Install
nx add @ng-native/nx
nx g @ng-native/nx:app apps/mobile
nx g @ng-native/nx:library packages/uinx add adds @nx/expo at the workspace's Nx version and registers its plugin, which infers the
app's Expo targets. The generator writes the template's app, with a metro.config.js wrapped in
withNxMetro so workspace libraries resolve, and adds typecheck and test targets.
Example
nx start mobile # expo start
nx run mobile:run-ios # expo run:ios
nx export mobile --platform ios
nx test mobile # vitest run, on the fake Fabric
nx typecheck mobileIn a workspace whose root package is scoped, the project is @org/mobile.
What's in the package
generators.json-init, whichnx addruns,application(aliasapp),library(aliaslib),component(aliasc),tailwind, which sets up Tailwind in an app and the libraries it uses, andsync-native-modules, the sync generator an app runs beforestart,exportandprebuild.files/- the template's source files, which a test keeps identical totemplate/.
Docs
License
MIT
