15.1.0 • Published 2 years ago

@rxap/schematics v15.1.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

@rxap/schematics

npm version commitizen friendly styled with prettier Libraries.io dependency status for latest release, scoped npm package npm NPM

Installation

yarn add @rxap/schematics

Schematics

config-ng-add

Add required configs and files to a project for ng add support.

ng g @rxap/schematics:config-ng-add
OptionTypeDefaultDescription
projectstringThe project name.
savestringdependencies
Required
project

schematic-project

Creates a project for schematic distribution.

ng g @rxap/schematics:schematic-project
OptionTypeDefaultDescription
namestringLibrary name
projectstringOnly update an exiting schematic project
directorystringA directory where the lib is placed
linterstringeslintThe tool to use for running lint checks.
unitTestRunnerstringjestTest runner to use for unit tests
tagsstringAdd tags to the library (used for linting)
skipFormatbooleanfalseSkip formatting files
skipTsConfigbooleanfalseDo not update tsconfig.base.json for development experience.
importPathstringThe library name used to import it, like @myorg/my-awesome-lib. Must be a valid npm name.
rootDirstringSets the rootDir for TypeScript compilation. When not defined, it uses the project's root property, or srcRootForCompilationRoot if it is defined.
testEnvironmentstringjsdomThe test environment to use if unitTestRunner is set to jest
babelJestbooleanfalseUse babel instead ts-jest
pascalCaseFilesbooleanfalseUse pascal case file names.
jsbooleanfalseGenerate JavaScript files rather than TypeScript files.
strictbooleanfalseWhether to enable tsconfig strict mode or not.
buildersbooleanfalseWhether the project should have builders
overwritebooleanWhether to overwrite existing files.

component-module

Creates a new generic component module in the given or default project.

ng g @rxap/schematics:component-module
OptionTypeDefaultDescription
pathstringThe path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.
projectstringThe name of the project.
routingbooleanWeather the created component should be added to the declaring module
routestringThe route for this component
namestringThe name of the component.
storiesbooleantrue
inlineStylebooleanfalseWhen true, includes styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.
inlineTemplatebooleanfalseWhen true, includes template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.
viewEncapsulationstringThe view encapsulation strategy to use in the new component.
changeDetectionstringOnPushThe change detection strategy to use in the new component.
prefixstringThe prefix to apply to the generated component selector.
stylestringscssThe file extension or preprocessor to use for style files.
typestringComponentAdds a developer-defined type to the filename, in the format "name.type.ts".
debugbooleanfalseIf in debug mode. the resulting component will be printed to stout
themebooleantrueWeather this component has a theme scss
themeImportbooleantrueWeather the component theme file should be imported by the _index.scss
inputarrayA list of component inputs
outputarrayA list of component outputs
hostBindingarrayA list of component host bindings
hostListenerarrayA list of component host listener
importarrayA list of module imports
templatestringThe initial component template
astTransformer
inputOutputarrayA list of component 2 way data binding input/output's
skipTestsbooleanfalseWhen true, does not create "spec.ts" test files for the new component.
flatbooleanfalseWhen true, creates the new files at the top level of the current project.
selectorstringThe HTML selector to use for this component.
skipSelectorbooleanfalseSpecifies if the component should have a selector or not.
modulestringThe declaring NgModule.
entryComponentbooleanfalseWhen true, the new component is the entry component of the declaring NgModule.
lintFixbooleanfalseWhen true, applies lint fixes after generating the component.
commonModulebooleanfalseWhen true, the new NgModule imports "CommonModule".
Required
name

formControlComponent

Creates a new generic form control component module in the given or default project.

ng g @rxap/schematics:formControlComponent
OptionTypeDefaultDescription
namestringForm control component name
pathstringThe path at which to create the form control component file, relative to the current workspace.
projectstringThe name of the project.
prefixstringForm control component name
Required
name

viewComponent

Creates a new generic view component with module for the view system in the given or default project.

ng g @rxap/schematics:viewComponent
OptionTypeDefaultDescription
namestringForm control name
pathstringThe path at which to create the view component file, relative to the current workspace.
projectstringThe name of the project.
prefixstringView component name
Required
name

ideaRunConfig

Create Idea lib run configurations

ng g @rxap/schematics:ideaRunConfig
OptionTypeDefaultDescription
namestringProject name
basePathstringProject name
Required
name

packageScript

Add all build scripts to lib package.json

ng g @rxap/schematics:packageScript
OptionTypeDefaultDescription
namestringProject name
scss-bundlebooleanfalseWeather the project has custom themes
Required
name

libraryDependencies

Updates the package peer dependencies

ng g @rxap/schematics:libraryDependencies
OptionTypeDefaultDescription
pathstringProject path
Required
path

addSubPackage

Creates a sub ngPackage

ng g @rxap/schematics:addSubPackage
OptionTypeDefaultDescription
namestringThe name package
pathstringThe path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.
projectstringThe name of the project.

addSchematic

Add a new schematic to the collection

ng g @rxap/schematics:addSchematic
OptionTypeDefaultDescription
namestringThe name of the new schematic
pathstringThe absolute path to the schematic folder or the relative path from the project root
projectstringThe project where the schematic should be added
descriptionstringThe description of the new schematic
Required
name
description

component-stories

add a story book file to the component

ng g @rxap/schematics:component-stories
OptionTypeDefaultDescription
namestring
pathstring
projectstring
prefixstringThe prefix to apply to the generated component selector.

feature-module

Create a new feature module. Adds a new nx library and setup the routing

ng g @rxap/schematics:feature-module
OptionTypeDefaultDescription
namestring
parentModulestringapps/pwa/src/app/app-routing.module.ts
storybookbooleanfalse
Required
name

shared-module

Create a new shared module. Adds a new nx library if not already created

ng g @rxap/schematics:shared-module
OptionTypeDefaultDescription
namestringThe name of the component shared module
componentbooleanfalseWeather the new module is a component module
selectorstringThe HTML selector to use for this component.
inputarrayA list of component inputs
outputarrayA list of component outputs
importarrayA list of module imports
templatestringThe initial component template
inputOutputarrayA list of component 2 way data binding input/output's
hostBindingarrayA list of component host bindings
hostListenerarrayA list of component host listener
zeplinNamearray
storybookbooleantrue
Required
name

library-storybook-configuration

Add a storybook configuration to a library

ng g @rxap/schematics:library-storybook-configuration
OptionTypeDefaultDescription
namestringLibrary name
configureCypressbooleanfalseRun the cypress-configure schematic
generateStoriesbooleanfalseAutomatically generate *.stories.ts files for components declared in this library
generateCypressSpecsbooleanfalseAutomatically generate *.spec.ts files in the cypress e2e app generated by the cypress-configure schematic
Required
name

link-component-to-zeplin

Add the specified component to the zeplin components.json.

ng g @rxap/schematics:link-component-to-zeplin
OptionTypeDefaultDescription
namestring
pathstring
projectstring
zeplinNamearray
Required
name

component-theme

add the component scss theme

ng g @rxap/schematics:component-theme
OptionTypeDefaultDescription
namestring
pathstring
projectstring
prefixstringThe component prefix

component-input

Add an input to the specified component

ng g @rxap/schematics:component-input
OptionTypeDefaultDescription
componentstring
propertystring
typestring
typeImportstring
descriptionstringThe component input description
pathstring
projectstring
initialstring
Required
component
property
type

component-output

Add an output to the specified component

ng g @rxap/schematics:component-output
OptionTypeDefaultDescription
componentstring
propertystring
typestring
typeImportstring
descriptionstringThe component input description
pathstring
projectstring

component-input-output

Add an 2 way databinding input/output to the specified component

ng g @rxap/schematics:component-input-output
OptionTypeDefaultDescription
componentstring
propertystring
typestring
typeImportstring
descriptionstringThe component input description
pathstring
projectstring
initialstring
Required
component
property
type

component-host-binding

adds a host binding to the component

ng g @rxap/schematics:component-host-binding
OptionTypeDefaultDescription
componentstring
propertystring
hostPropertyNamestring
typestring
typeImportstring
pathstring
initialstring
projectstring
Required
component
property
hostPropertyName
type
initial

component-host-listener

adds a host listner to the component

ng g @rxap/schematics:component-host-listener
OptionTypeDefaultDescription
componentstring
propertystring
eventNamestring
descriptionstring
pathstring
projectstring
Required
component
property
eventName

init

create a new angular workspace

ng g @rxap/schematics:init
OptionTypeDefaultDescription
zeplinbooleanfalseAdd zeplin support
storybookbooleanfalseAdd storybook support
zeplinProjectarrayA list of zeplin project ids
zeplinStyleguidearrayA list of zeplin styleguide ids
zeplinConnectUrlstringThe zeplin connect url of the storybook

library-theme

add index theme to library

ng g @rxap/schematics:library-theme
OptionTypeDefaultDescription
projectstring
bundlebooleanfalseAdd the scss-bundle target

zeplin-configuration

adds zeplin connect support to the porject

ng g @rxap/schematics:zeplin-configuration
OptionTypeDefaultDescription
projectarrayA list of zeplin project ids
styleguidearrayA list of zeplin styleguide ids
urlstringThe zeplin connect url of the storybook

storybook-configuration

adds storybook support to the project

ng g @rxap/schematics:storybook-configuration
OptionTypeDefaultDescription
namestring
pathstring
projectstring

library-shared

adds the shared library

ng g @rxap/schematics:library-shared
OptionTypeDefaultDescription
storybookbooleanfalseAdd storybook support

pwa-init

Init a application for pwa use

ng g @rxap/schematics:pwa-init
OptionTypeDefaultDescription
projectstringpwaProject name

library

Adds an angular library project

ng g @rxap/schematics:library
OptionTypeDefaultDescription
namestring
importPathstring
themingbooleanfalse
directorystring
Required
name
importPath

plugin-project

Adds a plugin project to the workspace.

ng g @rxap/schematics:plugin-project
OptionTypeDefaultDescription
namestringLibrary name
projectstringOnly update an exiting schematic project
directorystringA directory where the lib is placed
linterstringeslintThe tool to use for running lint checks.
unitTestRunnerstringjestTest runner to use for unit tests
tagsstringAdd tags to the library (used for linting)
skipFormatbooleanfalseSkip formatting files
skipTsConfigbooleanfalseDo not update tsconfig.base.json for development experience.
importPathstringThe library name used to import it, like @myorg/my-awesome-lib. Must be a valid npm name.
rootDirstringSets the rootDir for TypeScript compilation. When not defined, it uses the project's root property, or srcRootForCompilationRoot if it is defined.
testEnvironmentstringjsdomThe test environment to use if unitTestRunner is set to jest
babelJestbooleanfalseUse babel instead ts-jest
pascalCaseFilesbooleanfalseUse pascal case file names.
jsbooleanfalseGenerate JavaScript files rather than TypeScript files.
strictbooleanfalseWhether to enable tsconfig strict mode or not.
defaultBuilderstringThe name of the default builder
defaultTargetstringThe name of the default target
overwritebooleanWhether to overwrite existing files.
defaultBuilderDescriptionstringThe description for the default builder

add-plugin-config-schematic

Adds the default plugin builder config schematic to the project.

ng g @rxap/schematics:add-plugin-config-schematic
OptionTypeDefaultDescription
namestringconfigThe name of the new schematic
pathstringThe absolute path to the schematic folder or the relative path from the project root
projectstringThe project where the schematic should be added
descriptionstringThe description of the new schematic
defaultBuilderstringThe name of the default builder
defaultTargetstringThe name of the default target
Required
name
defaultBuilder
defaultTarget

add-builder

Adds a builder to the specified project.

ng g @rxap/schematics:add-builder
OptionTypeDefaultDescription
namestringThe name of the new builder
pathstringThe absolute path to the builder folder or the relative path from the project root
projectstringThe project where the builder should be added
descriptionstringThe description of the new builder
Required
name
description

config-plugin-ng-add

Add required configs and files to a project for ng add support specific for plugins.

ng g @rxap/schematics:config-plugin-ng-add
OptionTypeDefaultDescription
projectstringThe project name.
savestringdependencies

config-package-json

Updates the project package.json.

ng g @rxap/schematics:config-package-json
OptionTypeDefaultDescription
projectstringThe project name.
Required
project

angular-library-project

Adds an angular library project to the workspace.

ng g @rxap/schematics:angular-library-project
OptionTypeDefaultDescription
namestringLibrary name
projectstringOnly update an exiting angular library project
overwritebooleanWhether to overwrite existing files.
directorystringA directory where the lib is placed
prefixstringThe prefix to apply to generated selectors.
skipFormatbooleanfalseSkip formatting files
simpleModuleNamebooleanfalseKeep the module name simple (when using --directory)
addModuleSpecbooleanfalseAdd a module spec file.
skipPackageJsonbooleanfalseDo not add dependencies to package.json.
skipTsConfigbooleanfalseDo not update tsconfig.json for development experience.
tagsstringAdd tags to the library (used for linting)
unitTestRunnerstringjestTest runner to use for unit tests
importPathstringThe library name used to import it, like @myorg/my-awesome-lib. Must be a valid npm name.
strictbooleantrueCreates a library with stricter type checking and build optimization options.
linterstringeslintThe tool to use for running lint checks.
enableIvybooleanfalseEnable Ivy for library in tsconfig.lib.prod.json. Should not be used with publishable libraries.
15.1.0

2 years ago

16.0.0-dev.1

2 years ago

16.0.0-dev.2

2 years ago

16.0.0-dev.0

2 years ago

14.1.0

2 years ago

15.0.0

3 years ago

14.0.2

3 years ago

14.0.3

3 years ago

14.0.1

3 years ago

14.0.0

3 years ago

13.0.0

3 years ago

13.0.0-next.9

3 years ago

13.0.0-next.8

3 years ago

13.0.0-next.5

3 years ago

13.0.0-next.7

3 years ago

13.0.0-next.6

3 years ago

13.0.0-next.4

3 years ago

13.0.0-next.1

3 years ago

13.0.0-next.0

3 years ago

13.0.0-next.3

3 years ago

13.0.0-next.2

3 years ago

12.9.9

3 years ago

12.9.9-next.0

4 years ago

12.9.9-next.2

4 years ago

12.9.9-next.1

4 years ago

12.9.8

4 years ago

12.9.7

4 years ago

12.9.6

4 years ago

12.9.6-next.0

4 years ago

12.9.5

4 years ago

12.9.5-next.1

4 years ago

12.9.5-next.0

4 years ago

12.9.3-next.1

4 years ago

12.9.3

4 years ago

12.9.4

4 years ago

12.9.3-next.0

4 years ago

12.9.1

4 years ago

12.9.2

4 years ago

12.9.1-next.0

4 years ago

12.9.0

4 years ago

12.9.0-next.1

4 years ago

12.9.0-next.0

4 years ago

12.8.9-next.0

4 years ago

12.8.8

4 years ago

12.7.0-next.2

4 years ago

12.7.0

4 years ago

12.8.0

4 years ago

12.8.1

4 years ago

12.8.2

4 years ago

12.8.7

4 years ago

12.8.3

4 years ago

12.8.4

4 years ago

12.8.5

4 years ago

12.8.6

4 years ago

12.7.0-next.1

4 years ago

12.7.0-next.0

4 years ago

12.6.0

4 years ago

12.6.0-next.6

4 years ago

12.6.0-next.5

4 years ago

12.5.2

4 years ago

12.5.0

4 years ago

12.5.1

4 years ago

12.6.0-next.3

4 years ago

12.6.0-next.4

4 years ago

12.6.0-next.1

4 years ago

12.6.0-next.0

4 years ago

12.3.0

4 years ago

12.1.0

4 years ago

12.0.3

4 years ago

12.0.2

4 years ago

12.0.0

4 years ago

12.0.1

4 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago