An open API service indexing awesome lists of open source software.

https://github.com/svenliebig/angular-helper


https://github.com/svenliebig/angular-helper

angular-component angular-components angular-testing angular2 nodejs npm

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

## Build an Angular Component on the Fly

This package was created to get rid of the creating of css, ts and html of angular components.

## Install to the Command line
```
$> npm i angular-helper -g
```

## Run Angular Helper

```
$> angular-helper c | compontent | create-component ClassName
or
$> nah c ClassName
or
$> ah c ClassName
```

## Commands
```
c | compontent | create-component - creates an Angular Component
s | service - creates an Angular Service
```

## Output
```
Create an Angular Component
-+ classname (directory)
-+-+ classname.css
-+-+ classname.component.html
-+-+ classname.component.ts

Create an Angular Service
-+ classname (directory)
-+-+ classname.service.ts
```

## Build 0.3

New Attribute "-t" available now, so:

```
ah c SuperClass -t
```

will add a jasmine/karma angular component test into your directory:
```
Create an Angular Component
-+ classname (directory)
-+-+ classname.css
-+-+ classname.component.html
-+-+ classname.component.ts
-+-+ classname.component.spec.ts
```

## Contact

Write me your thoughts to liebigsv@gmail.com
Github: https://github.com/Sly321/angular-helper
NPM: https://www.npmjs.com/package/angular-helper