tns-generator
by asitaka | v1.0.14
generates component files for angular typescript nativescript apps
npm i --save tns-generator
  • Version: 1.0.14
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  0
    • Last Month: 0

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.