tns-generator

1.0.14 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i tns-generator

Weekly Downloads

15

Version

1.0.14

License

ISC

Last publish

Collaborators

  • asitaka