Folder structure generator for Angular projects, automatically organizing components, services, guards, and other elements into a modular and maintainable architecture.
If you don't want to install the script, just copy and run this command in your Angular project:
mkdir -p src/app/{core/{guards,interceptors,interfaces,services},features/{navbar,header,footer},pages/{admin,home,login,"not-found"},shared/{components,directives,pipes}}git clone https://github.com/FlorianBx/ng-angular-structure-cli.gitBASH & ZSH
- Add alias to your shell config (~/.zshrc or ~/.bashrc):
mkdir -p ~/bin
cp ng-struct.sh ~/bin/ng-struct.sh
chmod +x ~/bin/ng-struct.sh
echo 'alias ng-struct="~/path/to/ng-angular-structure-cli/create-structure.sh"' >> ~/.zshrc- Reload your shell config:
source ~/.zshrcFISH
1. Add alias to your shell config (config.fish): ```bash mkdir -p ~/bin cp ng-struct.sh ~/bin/ng-struct.sh chmod +x ~/bin/ng-struct.sh echo 'alias ng-struct="~/bin/ng-struct.sh"' >> ~/.config/fish/config.fish ```- Reload your shell config:
source ~/.zshrcOpen to contributions!
BASH & ZSH
- Add alias to your shell config (~/.zshrc or ~/.bashrc):
mkdir -p ~/bin
cp ng-struct.sh ~/bin/ng-struct.sh
chmod +x ~/bin/ng-struct.sh
echo 'alias ng-struct="~/path/to/ng-angular-structure-cli/create-structure.sh"' >> ~/.zshrc- Reload your shell config:
source ~/.zshrcIn your Angular project root directory:
ng-structsrc/
βββ app/
βββ core/
β βββ guards/
β βββ interceptors/
β βββ interfaces/
β βββ services/
βββ features/
β βββ navbar/
β βββ header/
β βββ footer/
βββ pages/
β βββ admin/
β βββ home/
β βββ login/
β βββ not-found/
βββ shared/
βββ components/
βββ directives/
βββ pipes/
MIT