- Yeoman can be installed globally using npm install yeoman –g command.The following screenshot shows the terminal with yeoman installation globally.
- Yeoman provides a generator named generator-angular2 to create a boiler plate for custom Gulp plugin development.
- The generator-angular2 can be installed globally using npm install generator-angular2 –g command.The following screenshot shows the terminal with generator-angular2 installation in execution.
- Now we can use Yeoman generator to create a AngularJS2 boilerplate using yo angular2 command.The following screenshot shows the terminal for angular2 boiler plate generation.
- The generated project structure for Angular2 looks like following screenshot:-
- The output of this boiler plate looks like following screenshot.
- The boiler plate can be downloaded from the following link.