Comments (2)
While I've implemented this in this repo, while implementing this on the SwiftGen repo's side (CLI), it becomes a breaking change:
The CLI will look in both the internal templates
directory, but also in the application support templates
directory. If we change the code for how it searches for templates, we should make it consistent for both directories (internal and app support).
This is the patch:
- var path = appSupportTemplatesPath + "\(prefix)-\(templateShortName).stencil"
+ var path = appSupportTemplatesPath + prefix + "\(templateShortName).stencil"
if !path.isFile {
- path = bundledTemplatesPath + "\(prefix)-\(templateShortName).stencil"
+ path = bundledTemplatesPath + prefix + "\(templateShortName).stencil"
from templates.
Note that if we do that in SwiftGen 5.0, we must not forget to update the help message for swiftgen templates list
accordingly as well.
from templates.
Related Issues (20)
- Enable Travis
- Remove old stuff HOT 8
- Configure Circle CI
- Script(s) to generate contexts and swift output files HOT 2
- Storyboards: module name for target may not match "customModule" set by Xcode HOT 13
- Use escapeReservedKeywords in all templates
- Add missing tests for edge cases HOT 1
- Test the output code
- SwiftLint the output code
- Suggestion for improvement of Strings template: `L13y`. HOT 8
- Swift 4 templates HOT 2
- Use enum for namespacing instead of struct
- Make an Info.plist template for UIAppFonts HOT 12
- Compile output files using a configuration file for options HOT 1
- Fonts: Only one 'register' called per font family HOT 2
- Storyboards: remove isBaseViewController
- Support for .swifttemplate format? HOT 2
- Colors with alpha HOT 5
- Strings: remove typed declarations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templates.