4.0.3 • Published 10 months ago

gb-schematics v4.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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 tsx 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 Prettierbooleanfalse
--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 the project source.string
--kindkind of moduleclass | valuesvalues
--unitTestRunnerTest runner to use for unit tests.jest | vitest | native | nonejest
--inSourceTestsWhen using Vitest, separate spec files will not be generated and instead will be included within the source files.booleanfalse
--pascalCaseFilesUse pascal case file names for class module.booleantrue
--languageThe language to use.ts | jsts
--sourceRootThe path to your project's source rootstring

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 | tsjs
--styleComponent style language (css/scss).css | scsscss
--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 | nonecss
--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.

Options

OPTIONDESCRIPTIONVALUE TYPEDEFAULT VALUE
--skipInstallSkip package installationbooleanfalse

see

3.9.1

11 months ago

3.8.2

12 months ago

3.8.1

12 months ago

3.8.0

12 months ago

4.0.1

11 months ago

4.0.0

11 months ago

4.0.3

10 months ago

4.0.2

11 months ago

3.7.1

1 year ago

3.7.0

2 years ago

3.6.1

2 years ago

3.6.0

2 years ago

3.5.0

2 years ago

3.4.0

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.13.0-alpha.1

3 years ago

2.13.0-alpha.2

3 years ago

2.13.0

3 years ago

2.11.0

3 years ago

2.12.0

3 years ago

2.10.0

3 years ago

2.7.0

3 years ago

2.9.0

3 years ago

2.8.0

3 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.3

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago