0.0.10 • Published 3 months ago

@guidesmiths/cuckoojs-schematics v0.0.10

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

Getting Started With Schematics

This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to NPM.

Testing

To test locally, install @angular-devkit/schematics-cli globally and use the schematics command line tool. That tool acts the same as the generate command of the Angular CLI, but also has a debug mode.

Check the documentation with

schematics --help

Unit Testing

npm run test will run the unit tests, using Jasmine as a runner and test framework.

Publishing

To publish, simply do:

npm run build
npm publish

That's it!

Available schematics

Pull Request Template

  • Description: Enables having a standard format when doing Pull Request
  • Command: schematics @guidesmiths/cuckoojs-schematics:pr-template
  • Parameters:
NameDescriptionSupported valuesDefault value
gitProviderGit provider where repo is hostedgithub, azuredevops

Dockerfile

  • Description: Created a Dockerfile for your build type
  • Command: schematics @guidesmiths/cuckoojs-schematics:dockerfile
  • Parameters:
NameDescriptionSupported valuesDefault value
directoryDirectory where files will be createdvalid folder.
buildTypeSpecify the build processgithub, azuredevops
nodeVersionSpecify the NodeJS version to use18, 16, 14, 12

Gitignore

  • Description: Created a Gitignore file with common files
  • Command: schematics @guidesmiths/cuckoojs-schematics:gitignore
  • Parameters:
NameDescriptionSupported valuesDefault value
directoryDirectory where files will be createdvalid folder.

Commitlint

  • Description: Config commit message pattern for your commits
  • Command: schematics @guidesmiths/cuckoojs-schematics:commitlint
  • Parameters:
NameDescriptionSupported valuesDefault value
directoryDirectory where files will be createdvalid folder.

Continuous Integration

  • Description: Config basic CI pipeline (docker build and push)
  • Command: schematics @guidesmiths/cuckoojs-schematics:ci
  • Parameters:
NameDescriptionSupported valuesDefault value
ciProviderCI providergithub, azuredevops
dockerRegistryDocker registry to push image or service connection if AzureDevOpsstring
imageNameName of the docker imagestring

Helm chart

  • Description: Create a helm chart to deploy on kubernetes
  • Command: schematics @guidesmiths/cuckoojs-schematics:helm
  • Parameters:
NameDescriptionSupported valuesDefault value
serviceNameName of the resource to deploystring
imageNameDocker image to be deployedstring
resourcesLimitCpuMaximum cpu used by each podnumber100
resourcesLimitMemoryMaximum memory used by each podnumber128
resourcesRequestCpuRequested cpu used by a pod to be launchednumber100
resourcesRequestMemoryRequested memory used by a pod to be launchednumber128
autoscalingEnabledEnable autoscaling features on the podstrue, falsetrue
autoscalingReplicasMinAutoscaled minimum replicasnumber1
autoscalingReplicasMaxAutoscaled maximum replicasnumber5
autoscalingTargetCpuTarget cpu used to trigger autoscalingnumber75
ingressControllerIngress controller to be usedgeneric, traefikgeneric
tlsCertManagerTLS certificate manager to be usednone, certManagernone
domainNameDomain name for the servicestringchart-example.local
0.0.10

3 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago