bump-version
@ensono-stacks/rest-client:bump-version
Details
Creates new version(s) for an existing client endpoint
This plugin reads any existing endpoints and creates a new directory for the specified new version with the files contained within the previous version.Prerequisites
This generator requires a client-endpoint project to be available.
Usage
nx g @ensono-stacks/rest-client:bump-version
Command line arguments
The following command line arguments are available:
Option | Description | Type | Accepted Values | Default | Required |
---|---|---|---|---|---|
--name | The endpoint name you want to bump | string | true | ||
--directory | Subdirectory inside libs/ where the generated endpoint is placed | string | |||
--endpointVersion | The version you want to bump your endpoint. Omitting this value will bump latest version + 1. | number |
Generator Output
The generator will take a copy of your latest endpoint and bump it to the next version (unless overridden through the --endpointVersion argument)
V1 endpoint
├── client-endpoint
│ ├── v1
│ │ ├── README.md
│ │ │ ├── src
│ │ │ │ ├── index.ts