cubo-schematics

A schematics to angular-cli

Usage no npm install needed!

<script type="module">
  import cuboSchematics from 'https://cdn.skypack.dev/cubo-schematics';
</script>

README

cubo-schematics

A schematics to build components and pages on angular-cli

license GitHub contributors

Install

npm install cubo-schematics

Usage

Generate a component

ng generate cubo-schematics:component componentName

Generate a page

ng generate cubo-schematics:page pageName

API

Component

--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 <type> Specifies the view encapsulation strategy
--changeDetection, -c <type>   Specifies the view encapsulation strategy
--prefix, -p <type>            The prefix to apply to generated selectors
--styleext <type>              The file extension to be used for style files
--spec <boolean>               Specifies if a spec file is generated

Page

--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 <type> Specifies the view encapsulation strategy
--changeDetection, -c <type>   Specifies the view encapsulation strategy
--prefix, -p <type>            The prefix to apply to generated selectors
--styleext <type>              The file extension to be used for style files
--spec <boolean>               Specifies if a spec file is generated
--root <boolean>               Specifies if a root module is generated
--translate, -i18n <boolean>   Flag to indicate if the component have structure of translate.
--children, -cc <boolean>      Flag to indicate if the component is a children.

License

MIT License © Cubo 2018