RE: RE: Adonis-Auth-Scaffold Development Update: Api/HTTP Client Authentication Code Generation
You are viewing a single comment's thread from:

RE: Adonis-Auth-Scaffold Development Update: Api/HTTP Client Authentication Code Generation

Words
134
Reading
1 min
Listen
Play
8y

Thank you for your contribution.

You probably can use a single variable mode (which can be enum) to determine if it is API or REST, which will make the logics a lot simpler.

The copyAppStarterFiles appears to me requiring a parameter client, but on the code, it passes nothing, do this code work?

For the line append/prepend, have you considered the line endings on Linux, Windows or MAC? \n, \n\r or \r?

You may want to check if a file has been prepended using a better approach rather than if (fileContents[lineNumber] === lineContent) return; .

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

@justyy: Thank you for | Ecency