Socket
Book a DemoInstallSign in
Socket

tns-generator

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tns-generator

generates component files for angular typescript nativescript apps

1.0.14
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 13 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.