Skip to content

CORE-225: Added template changes for the Nest JS to support Nest@8.0x#1

Open
sneracc wants to merge 1 commit intomasterfrom
CORE-225
Open

CORE-225: Added template changes for the Nest JS to support Nest@8.0x#1
sneracc wants to merge 1 commit intomasterfrom
CORE-225

Conversation

@sneracc
Copy link

@sneracc sneracc commented Mar 9, 2022

CORE-225: Added template changes for the Nest JS to support Nest@8.0x

PR checklist

  • [ x] Read the contribution guidelines.
  • [ x] Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.

@sneracc sneracc requested a review from gausnes March 9, 2022 16:02
"rimraf": "^2.6.3",
"rxjs": "^6.5.2"
"rxjs": "^7.1.0",
"@nestjs/axios": "^0.0.6"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a variable for setting the axios version

"@nestjs/common": "^{{nestVersion}}",
"@nestjs/core": "^{{nestVersion}}",
"@nestjs/platform-express": "^{{nestVersion}}",
"@nestjs/config": "1.1.6",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a variable for setting the config version, some of our applications are using 1.2.0 already

public static final String STRING_ENUMS_DESC = "Generate string enums instead of objects for enum values.";

protected String nestVersion = "6.0.0";
protected String nestVersion = "8.3.1";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should default this to 8.4.0, I ran into some issues installing fastify plugins on 8.3.x

@Global()
@Module({
imports: [ HttpModule ],
imports: [ HttpModule, ConfigModule ],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used?

public {{nickname}}({{#allParams}}{{^isConstEnumParam}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/isConstEnumParam}}{{/allParams}}): Observable<AxiosResponse<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>>;
public {{nickname}}({{#allParams}}{{^isConstEnumParam}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/isConstEnumParam}}{{/allParams}}): Observable<any> {
public {{nickname}}({{#allParams}}{{^isConstEnumParam}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/isConstEnumParam}}{{/allParams}}options?: AxiosRequestConfig): Observable<AxiosResponse<{{#returnType}}{{{returnType}}}{{#isResponseTypeFile}}|undefined{{/isResponseTypeFile}}{{/returnType}}{{^returnType}}any{{/returnType}}>>;
public {{nickname}}({{#allParams}}{{^isConstEnumParam}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/isConstEnumParam}}{{/allParams}}options?: AxiosRequestConfig): any {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking we'd want to pump in the same Configuration object that is being passed into the constructor, like done in the Axios generated clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants