Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cubonetwork/cubo-schematics
- Owner: cubonetwork
- License: mit
- Created: 2018-04-20T21:14:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T17:41:28.000Z (about 6 years ago)
- Last Synced: 2024-11-06T15:26:15.633Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 126 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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