feat!: dynamic filename conventions / no spaces in filenames#259
Merged
feat!: dynamic filename conventions / no spaces in filenames#259
Conversation
0ffb31c to
3155cbf
Compare
mnahkies
added a commit
that referenced
this pull request
Nov 2, 2024
similar to #258, split from #259 start exporting clients using unique names, whilst keeping the original names for backwards compatibility. the names are generated from the `info.title` field, which can additionally be overridden by passing the new param: ``` --override-specification-title SomethingElse ```
- sometimes you want spaces in your `tag`, such that this is rendered in `<insert documentation tool>` with a space, but don't want this to flow into your code filenames - before merging I'll probably make this an actual option, since different projects will have different preferences here, personally I like `names-like-this.ts`, but others will prefer `NamesLikeThis.ts`
95afc1c to
594876c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applies conventions to dynamically generated filenames, defaulting to
kebab-casebut configurable through new option--filename-conventionSometimes you want spaces in your
tag, such that this is rendered in<insert documentation tool>with a space, but don't want this to flow into your code filenamesBREAKING CHANGE: emitted filenames may change if not already in
kebab-caseformat. Use--filename-conventionif an alternative convention such ascamel-caseis preferred.