ns-gc
v1.0.0
Published
CLI tool to generate NativeScript Angular components and services
Downloads
6
Readme
ns-gc
A lightweight command-line tool to generate standalone NativeScript Angular components and Angular services with clean structure and zero config.
🚀 Features
- ✅ Generate standalone Angular components for NativeScript
- ✅ Auto-create
.ts,.html, and.cssfiles - ✅ Generate injectable services
- ✅ Automatically handles folders and nesting
- ✅ Easy to install and use
📦 Installation
Install globally using npm:
npm install -g ns-gc🛠 Usage
➤ Generate a Component
ns-gc c component-nameExample:
ns-gc c loginCreates:
app/login/
├── login.component.ts
├── login.component.html
└── login.component.cssNested Components:
ns-gc c auth/loginCreates:
app/auth/login/
├── login.component.ts
├── login.component.html
└── login.component.css➤ Generate a Service
ns-gc s service-nameExample:
ns-gc s authCreates:
app/auth.service.tsNested Services:
ns-gc s auth/userCreates:
app/auth/user.service.ts🤝 Contribution
Contributions are welcome!
If you have suggestions for improvements, bug fixes, or new features:
- Fork the repository
- Create a new branch (
git checkout -b feature-name) - Commit your changes
- Push and open a pull request
For major changes, please open an issue first to discuss the proposed update.
📜 License
This project is licensed under the MIT License.
MIT © 2025 Muhammad Bilal
