Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slayug/tnsg
Generate quickly your pages, services, view, class..
https://github.com/slayug/tnsg
angular generator nativescript pages service view
Last synced: about 1 month ago
JSON representation
Generate quickly your pages, services, view, class..
- Host: GitHub
- URL: https://github.com/slayug/tnsg
- Owner: Slayug
- License: mit
- Created: 2017-05-01T10:44:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-01T18:55:10.000Z (over 7 years ago)
- Last Synced: 2024-09-25T20:50:03.736Z (about 2 months ago)
- Topics: angular, generator, nativescript, pages, service, view
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tnsg
**A NativeScript CLI Generator**----------
Generate quickly your pages, services, class..
## Installation
```bash
npm install -g tnsg
```
## Generating Pages, Service, Class (Angular)Scaffold | Usage
--- | ---
`Page` | `tnsg -p my-page`
`Service` | `tnsg -s my-service`
`Class` | `tnsg -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}
Scaffold | Usage
--- | ---
`View` | `tnsg -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