3.7.0 • Published 4 months ago

gb-schematics v3.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

gb-schematics

npm version

This package contains a collection of Schematics for generating my favorite features.

You will need the Reference Schematics CLI tooling to execute these schematics.

If you're using Nx: Smart, Fast and Extensible Build System you might also like my miscellaneous NX plugins.

npm i @angular-devkit/schematics-cli -g

Development

npx ts-node tools/make-schemas --stamp generated

Schematics

bump

schematics gb-schematics:bump [part]

Bump package.json version

Arguments

ARGUMENTDESCRIPTIONVALUE TYPE
partWhich part to incrementmajor | premajor | minor | preminor | patch | prepatch | prerelease

Options

OPTIONDESCRIPTIONVALUE TYPEDEFAULT VALUE
--skipInstallSkip package installationbooleanfalse

devops

schematics gb-schematics:devops [platform]

Add platform devops pipeline

Arguments

ARGUMENTDESCRIPTIONVALUE TYPE
platformWhich Dev Ops pipelineazure | github

Options

OPTIONDESCRIPTIONVALUE TYPEDEFAULT VALUE
--skipInstallSkip package installationbooleanfalse

eslint

schematics gb-schematics:eslint

Add eslint configuration.

Options

OPTIONDESCRIPTIONVALUE TYPEDEFAULT VALUE
--includeTypescriptInclude Typescriptbooleantrue
--includePrettierInclude Prettierbooleantrue
--skipInstallSkip package installationbooleanfalse

jest

schematics gb-schematics:jest

Add Jest testing

module

schematics gb-schematics:module [name]

Add Class or general Module

Arguments

ARGUMENTDESCRIPTIONVALUE TYPE
nameThe name of the module.string

Options

OPTIONDESCRIPTIONVALUE TYPEDEFAULT VALUE
--directoryThe directory to create the module, relative to your project source.string
--kindkind of moduleclass | valuesvalues
--skipTestsDo not create "spec.ts" test files for the new module.booleanfalse
--sourceRootThe path to your project's source rootstringsrc

prettier

schematics gb-schematics:prettier

Add prettier configuration.

sveltekit-component

schematics gb-schematics:sveltekit-component [name]

Add a component to your sveltekit project

Arguments

ARGUMENTDESCRIPTIONVALUE TYPE
nameThe name of the component.string

Options

OPTIONDESCRIPTIONVALUE TYPEDEFAULT VALUE
--directoryThe directory to create the component, relative to your project source.string
--languageComponent script language (ts/js).js | tsts
--styleComponent style language (css/scss).css | scssscss
--projectRootSvelte App root directorystring

sveltekit-route

schematics gb-schematics:sveltekit-route [name]

Add a route to your sveltekit project

Arguments

ARGUMENTDESCRIPTIONVALUE TYPE
nameThe name of the route.string

Options

OPTIONDESCRIPTIONVALUE TYPEDEFAULT VALUE
--pathThe path at which to create the route file, relative to the projectRoot. Default is a folder with the same name as the route in the project root.string
--styleThe value of style element lang attributecss | scss | nonescss
--skipTestsDo not create "spec.ts" test files for the new route.booleanfalse
--endpointCreate an endpoint handler for your route.booleantrue

typescript

schematics gb-schematics:typescript

Add typescript.

see

3.7.0

4 months ago

3.6.1

4 months ago

3.6.0

4 months ago

3.5.0

4 months ago

3.4.0

8 months ago

3.3.0

8 months ago

3.2.0

12 months ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.13.0-alpha.1

1 year ago

2.13.0-alpha.2

1 year ago

2.13.0

1 year ago

2.11.0

2 years ago

2.12.0

2 years ago

2.10.0

2 years ago

2.7.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.6.0

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.3

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago