# generator-cl

> generates a typescript angular 1 componet with a view template and sass styles file

Latest version **0.0.17** (published 2018-01-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install generator-cl
pnpm add generator-cl
yarn add generator-cl
bun add generator-cl
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.17 |
| Published | 2018-01-11 |
| First published | 2017-02-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+9 in 1 direct dependencies) |
| Install scripts | no |
| Author | bsouthga@gmail.com |
| Maintainers | christian.yang, bsouthga |

## Links

- npm: https://www.npmjs.com/package/generator-cl
- npm.io page: https://npm.io/package/generator-cl

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) 4.17.4
- [mkdirp](https://npm.io/package/mkdirp.md) 0.5.1
- [yeoman-generator](https://npm.io/package/yeoman-generator.md) 1.1.1

## Recent versions

- 0.0.17 (latest) — 2018-01-11
- 0.0.16 — 2017-11-30
- 0.0.15 — 2017-11-30
- 0.0.13 — 2017-08-29
- 0.0.12 — 2017-08-28
- 0.0.11 — 2017-08-10
- 0.0.10 — 2017-08-01
- 0.0.9 — 2017-08-01
- 0.0.8 — 2017-08-01
- 0.0.7 — 2017-07-27
- 0.0.6 — 2017-07-26
- 0.0.5 — 2017-07-25
- 0.0.4 — 2017-07-25
- 0.0.3 — 2017-03-22
- 0.0.2 — 2017-02-14
- … 1 more at https://npm.io/package/generator-cl/versions

## README

# generator-cl [![npm version](https://badge.fury.io/js/generator-cl.svg)](https://badge.fury.io/js/generator-cl)

To install:

```shell
yarn add generator-cl --dev
```

## Contributing a new generator

To add a new generator (like `cl:controller`), just add a folder with the same name
to the `src` directory (so, `src/controller`), and have an `index.ts` file export
a generator class. See `src/comp/index.ts` for an example.


## Generators

The following can be used via...

```shell
yo cl:<component> <...params>
```

### `comp` (angularjs component)

Lets say we want to make a component called `task-list`, and
attach it to the `clPlatform.app` module.
After changing to your desired directory, run the following...

```shell
yo cl:comp task-list app
```

This will generate the following folder:

```
task-list
├── task-list.component.ts
├── task-list.styles.scss
└── task-list.view.html
```

Now, just add an `import ./task-list/task-list.component.ts';` to `clPlatform.app`.

---
_Source: https://npm.io/package/generator-cl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
