nativescript-angular-cli
NativeScript CLI command extensions to add some of the Angular CLI commands
npm i --save nativescript-angular-cli
- Version: 0.1.9
- GitHub:
- NPM: https://www.npmjs.com/package/nativescript-angular-cli
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
nativescript-angular-cli
NativeScript CLI command extensions to add some of the Angular CLI commands.
Installation
Just execute tns extension install nativescript-angular-cli
The package will be installed to:
~/.local/share/.nativescript-cli/extensions/
on macOS and Linux%APPDATA%/.nativescript-cli/extensions/
on Windows
NOTE: You need NativeScript CLI 3.0.0 or later. You can install latest version by executing
npm i -g nativescript
.
Usage
To generate a component, run:
tns generate component <component-name>
tns g c <component-name>
To create a component inside a module, run:
tns generate component <component-name> <module-name>
tns g c <component-name> <module-name>
To create a module, run:
tns generate module <module-name>
tns g m <module-name>
To create a service, run:
tns generate service <service-name>
tns g s <service-name>
TeamMaestro Shareable Components/Modules generators
To generate a shareable module run:
tns generate shared-module <module-name>
tns g sm <module-name>