question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support custom file suffixes/prefixes/names

See original GitHub issue

Does the tool support adding custom suffixes like attaching a .model.ts or .enum.ts to the end of every interface/enum generated? If not, can this be added in?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
luisfpgcommented, Jan 20, 2022

“The Angular way” states that class HelloIamAClass should be placed in the file named hello-i-am-a-class.ts. So, renaming just the file name would break this. Also the file name is explicitly referenced when others import the class (other models or services). Also, trust me, configuring the generator by “just adding a random regex here or there” is not simple at all.

0reactions
deniszholobcommented, Jan 21, 2022

Ohhh, so we misunderstood one another, so then my original question is then valid still. Attaching suffixes to file only, not the model name itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prefix and suffix for naming in extensions - Business Central
Use a prefix or suffix for names in your extension. ... It explains how to set your affixes in the AppSourceCop.json file.
Read more >
Allow media encoder to add custom prefix/suffix to output file
Specifically allow media encoder to add either custom text or source file name as a prefix/suffix to the output file.
Read more >
Supporting custom stack name - prefix, suffix, fixed · Issue #562
Feature request Ability to customize the stack name for stacks created by taskcat test run. It will especially be useful when user is...
Read more >
Adding Name Prefixes and Suffixes - iManage Control Center
Adding Name Prefixes and Suffixes · Understanding prefixes and suffixes. Benefits. Using custom values in prefixes and suffixes · Adding Prefixes and Suffixes....
Read more >
Customizing name prefixes and suffixes - Documentation & Help
Prefixes and suffixes are case- and punctuation-sensitive. To customize the contact name prefix and suffix list. From the Tools menu, click Preferences.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found