Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/cubonetwork/cubo-schematics

A schematics to build components and pages on angular-cli
https://github.com/cubonetwork/cubo-schematics

Last synced: 16 days ago
JSON representation

A schematics to build components and pages on angular-cli

Awesome Lists containing this project

README

        

# cubo-schematics

> A schematics to build components and pages on angular-cli

[![license](https://img.shields.io/github/license/cubonetwork/cubo-schematics.svg)](./license.md)
[![GitHub contributors](https://img.shields.io/github/contributors/cubonetwork/cubo-schematics.svg)](https://github.com/cubonetwork/cubo-schematics/graphs/contributors)

## Install

```sh
npm install cubo-schematics
```

## Usage

Generate a component

```sh
ng generate cubo-schematics:component componentName
```

Generate a page

```sh
ng generate cubo-schematics:page pageName
```

## API

### Component

```text
--inlineStyle, -s Specifies if the style will be in the ts file
--inlineTemplate, -t Specifies if the template will be in the ts file
--viewEncapsulation, -v Specifies the view encapsulation strategy
--changeDetection, -c Specifies the view encapsulation strategy
--prefix, -p The prefix to apply to generated selectors
--styleext The file extension to be used for style files
--spec Specifies if a spec file is generated
```

### Page

```text
--inlineStyle, -s Specifies if the style will be in the ts file
--inlineTemplate, -t Specifies if the template will be in the ts file
--viewEncapsulation, -v Specifies the view encapsulation strategy
--changeDetection, -c Specifies the view encapsulation strategy
--prefix, -p The prefix to apply to generated selectors
--styleext The file extension to be used for style files
--spec Specifies if a spec file is generated
--root Specifies if a root module is generated
--translate, -i18n Flag to indicate if the component have structure of translate.
--children, -cc Flag to indicate if the component is a children.
```

## License

MIT License © Cubo 2018