
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
generator-an2
Advanced tools

AngualarJS 2.0 knew a tramadic changes over the pat nonths and for that matter, new concept have been introduced and one of them is the Component.
And so we have the normal way and it's by creating the file it self and make the needed addiction and configure everything with your app and then you install a live server that let you Launch your application i don't know about you but this process is really teades for me personally.So and because of that i've created AN2 Generator.
In order to have a full complete vision please check out this article.
Or just follow the steps bellow :
1 - Install Yo , Bower , Grunt-Cli and for our case we will use Gulp you will find a development version bundled with
the end result but yu ned to instal it in your development machine :
$ npm install -g bower grunt-cli gulp yo
2 - Make yourself a working directory where you will scaffold your application, in direct or through command-line :
$ mkdir dev-code
3 - Simply Run the following command:
$ yo an2
In this version of the app we will assume that you will work using TypeScriptthat's why all the generated fiels will be in TypeScript
import {Component} from 'angular2/angular2';
@Component({
selector : 'my-app',
template : '<span>Hello world !</span>',
})
export class componentName {
public hello : string = 'Hello !';
}
For this matter we introduced the cmp sub generator, thi last will be responsible of creating the 3 different kind of files :
.ts & .html & .css, and all that will be in a supported naming convention for th overall file name : componentName.Component.ts/html/css or just a plane naming componentName.ts\html\css.
Using this command :
$ yo an2:cmp hero
Where :
1 - an2 : is the name of the generator.
2 - cmp : is yeoman way to launh the sub generator, and in our case it's called : cmp and the : is critical.
AN2 Generator comes with pre-configuration files and we use live-server and the tsc the TypeScript compiler and it will run using the following commands
$ npm start #In order to launch the Liver-Server module.
And :
$ npm run tsc #In order to launch the TypeScript Compiler.
Recent changes can be viewed on Github on the Releases Page
FAQs
A generator for creating and scafolding AngularJS 2 basic application
We found that generator-an2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.