<commit_before>[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![npm](https://img.shields.io/npm/v/yang-cli.svg)](https://www.npmjs.com/package/yang-cli)
[![Build Status](https://travis-ci.org/mselerin/yang-cli.svg?branch=master)](https://travis-ci.org/mselerin/yang-cli)

# Yang Cli
> Yet Another Angular Generator

## Installation
> _(You have pre-installed [node.js](https://nodejs.org/), right ?)_

Install Yang-Cli using [yarn](https://yarnpkg.com/) `yarn global add yang-cli` or using [npm](https://www.npmjs.com/) `npm install -g yang-cli`.


## Usage
Yang-Cli is just a wrapper around @angular/cli and [yang-schematics](https://github.com/mselerin/yang-schematics).  
It's main purpose is to avoid commands like `ng g yang-schematics:xxx` and write those as `yang xxx`  

Every cli parameters are passed 'as-is' to @angular/cli.

The first parameter is the Yang schematic short-name (ex: 'component' for 'yang-schematic:component'). 
If this name contains a slash ('/'), the cli assume you want to call a yang-schematic extension.
For example the command `yang @corp/stuff` is a shortcut for `ng g @corp/yang-schematic:stuff`.


## Available schematics
Just read the [yang-schematics](https://github.com/mselerin/yang-schematics) docs ;-)


## Special Commands
### New
`yang new my-awesome-project`
Scaffold a brand new application.

This will create a new folder `my-awesome-project` containing a fresh Angular application.
Just go inside this folder, install dependencies and run the project :
```bash
cd my-awesome-project
yarn
yarn start
```

Browse to http://localhost:4200.  
That's all !

***


### Help
`yang help`
Print all available schematics.


## License
MIT © [<NAME>]()


[npm-image]: https://badge.fury.io/js/yang-cli.svg
[npm-url]: https://npmjs.org/package/yang-cli
[travis-image]: https://travis-ci.org/mselerin/yang-cli.svg?branch=master
[travis-url]: https://travis-ci.org/mselerin/yang-cli
[daviddm-image]: https://david-dm.org/mselerin/yang-cli.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/mselerin/yang-cli
<commit_msg>docs: update README<commit_after>[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![npm](https://img.shields.io/npm/v/yang-cli.svg)](https://www.npmjs.com/package/yang-cli)
[![Build Status](https://travis-ci.org/mselerin/yang-cli.svg?branch=master)](https://travis-ci.org/mselerin/yang-cli)

# Yang Cli
> Yet Another Angular Generator

## Installation
> _(You have pre-installed [node.js](https://nodejs.org/), right ?)_

Install Yang-Cli using [yarn](https://yarnpkg.com/) `yarn global add yang-cli` or using [npm](https://www.npmjs.com/) `npm install -g yang-cli`.


## Usage
Yang-Cli is just a wrapper around @angular/cli and [yang-schematics](https://github.com/mselerin/yang-schematics).  
It's main purpose is to avoid commands like `ng g yang-schematics:xxx` and write those as `yang xxx`  

Every cli parameters are passed 'as-is' to @angular/cli.

The first parameter is the Yang schematic short-name (ex: 'component' for 'yang-schematic:component'). 
If this name contains a slash ('/'), the cli assume you want to call a yang-schematic extension.
For example the command `yang @corp/stuff` is a shortcut for `ng g @corp/yang-schematic:stuff`.


## Available schematics
Just read the [yang-schematics](https://github.com/mselerin/yang-schematics) docs ;-)


## Special Commands
### New
`yang new my-awesome-project`
Scaffold a brand new application.

This will create a new folder `my-awesome-project` containing a fresh Angular application.
Just go inside this folder, install dependencies and run the project :
```bash
cd my-awesome-project
yarn
yarn start
```

Browse to http://localhost:4200.  
That's all !

***


### Help
`yang help`
Print all available schematics.

***


## License
MIT © [<NAME>]()


[npm-image]: https://badge.fury.io/js/yang-cli.svg
[npm-url]: https://npmjs.org/package/yang-cli
[travis-image]: https://travis-ci.org/mselerin/yang-cli.svg?branch=master
[travis-url]: https://travis-ci.org/mselerin/yang-cli
[daviddm-image]: https://david-dm.org/mselerin/yang-cli.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/mselerin/yang-cli

{'fraction_non_alphanumeric': 0.1601314862643813, 'fraction_numerical': 0.0018783752054472881, 'mean_word_length': 4.468549422336329, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 34, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '996967', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1437, 'n_words': 368}