0.1.8 • Published 7 years ago

tnsg v0.1.8

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

tnsg

A NativeScript CLI Generator


Generate quickly your pages, services, class..

Installation

npm install -g tnsg

Generating Pages, Service, Class (Angular)

ScaffoldUsage
Pagetnsg -p my-page
Servicetnsg -s my-service
Classtnsg -c my-class

Examples:

tnsg -p pages/login will generate:

  • ./app/pages/login/login.android.css
  • ./app/pages/login/login.ios.css
  • ./app/pages/login/login-common.css
  • ./app/pages/login/login.component.ts
  • ./app/pages/login/login.html and link the component in app.module.ts

tnsg -p pages/user-detail will generate:

  • ./app/pages/user-detail/user-detail.android.css
  • ./app/pages/user-detail/user-detail.ios.css
  • ./app/pages/user-detail/user-detail-common.css
  • ./app/pages/user-detail/user-detail.component.ts
  • ./app/pages/user-detail/user-detail.html and link the component in app.module.ts

    Generating View {N}

    ScaffoldUsage
    Viewtnsg -vi my-view

Examples:

tnsg -vi views/user will generate:

  • ./app/views/user/user.css
  • ./app/views/user/user.js
  • ./app/views/user/user.xml
0.1.8

7 years ago

0.1.6

7 years ago

0.1.4

7 years ago

0.1.31

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago