tns-generator
v1.0.14
Published
generates component files for angular typescript nativescript apps
Downloads
5
Readme
Scaffolder for Nativscript Apps
How to use
Install: (might need to install with -g if it doesn't work)
$ npm install tns-generator
Usage:
$ ng2gen -f folder -n componentname
$ ng2gen -f components -n home
This will create a folder: app/foldername/name with three files:
- componentname.html
- componentname-common.css
- componentname.js
It will check for tns-dev-stylus, tns-dev-jade and tns-dev-typescript and generate variants, .jade, .styl and .ts if needed.
If you are using typescript, it will also generate a component template for you.