A lightweight command-line tool to generate standalone NativeScript Angular components and Angular services with clean structure and zero config.
- ✅ Generate standalone Angular components for NativeScript
- ✅ Auto-create
.ts
,.html
, and.css
files - ✅ Generate injectable services
- ✅ Automatically handles folders and nesting
- ✅ Easy to install and use
Install globally using npm:
npm install -g ns-gc
ns-gc c component-name
Example:
ns-gc c login
Creates:
app/login/
├── login.component.ts
├── login.component.html
└── login.component.css
Nested Components:
ns-gc c auth/login
Creates:
app/auth/login/
├── login.component.ts
├── login.component.html
└── login.component.css
ns-gc s service-name
Example:
ns-gc s auth
Creates:
app/auth.service.ts
Nested Services:
ns-gc s auth/user
Creates:
app/auth/user.service.ts
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.
This project is licensed under the MIT License.
MIT © 2025 Muhammad Bilal