This repository has been archived by the owner on Sep 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Rename default
templates to swift2
#47
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5fc04f9
rename `default` templates to `swift2` & remove some old templates
djbe de31d48
update output files
djbe 4b6e6de
update tests
djbe ec90412
Add a `allValues` property to the images template
djbe 6e74727
Add a `noComments` parameter to the string templates
djbe 18efcdb
work a bit on documentation
djbe 9926d29
strings: rename dot-syntax to structured, to better contrast with `fl…
djbe 5630bc8
Document the `noComments` parameter
djbe 98bacb5
Added migration guide
djbe 1e8c057
Added a `noAllValues` parameter
djbe b80df01
Changelog entry
djbe dfcae97
rename macOS doc files
djbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
## Deprecated templates in 2.0 (SwiftGen 5.0) ## | ||
|
||
The two general themes for this version are: | ||
|
||
- Templates now reside in the subfolder corresponding to their subcommand (`colors`, `fonts`, ...) intead of the filename being prefixed with it. | ||
- The `default` template doesn't exist anymore, templates now specify which swift version they support. | ||
|
||
Below is a list of renamed and removed templates, grouped by subcommand. If your template isn't listed, you don't need to do anything. | ||
|
||
### Colors ### | ||
|
||
| Old | New | Reason | | ||
| --- | --- | ------ | | ||
| default | swift2 | | | ||
| rawvalues | **deleted** | Seldomly used | | ||
|
||
### Fonts ### | ||
|
||
| Old | New | Reason | | ||
| --- | --- | ------ | | ||
| default | swift2 | | | ||
|
||
### Images ### | ||
|
||
| Old | New | Reason | | ||
| --- | --- | ------ | | ||
| all-values | **deleted** | The other templates by default now generate an `allValues` static constant | | ||
| default | **deleted** | Deprecated by `dot-syntax` (now called `swift2`) | | ||
| dot-syntax | swift2 | | | ||
| dot-syntax-swift3 | swift3 | | | ||
| swift3 | **deleted** | Deprecated by `dot-syntax-swift3` (now called `swift3`) | | ||
|
||
### Storyboards ### | ||
|
||
| Old | New | Reason | | ||
| --- | --- | ------ | | ||
| default | swift2 | | | ||
| lowercase | **deleted** | No longer needed since we prefix classes with their module | | ||
| osx-default | macOS-swift2 | | | ||
| osx-lowercase | **deleted** | No longer needed since we prefix classes with their module | | ||
| osx-swift3 | macOS-swift3 | | | ||
| uppercase | **deleted** | No longer needed since we prefix classes with their module | | ||
|
||
### Strings ### | ||
|
||
| Old | New | Reason | | ||
| --- | --- | ------ | | ||
| default | flat-swift2 | | | ||
| dot-syntax | structured-swift2 | | | ||
| dot-syntax-swift3 | structured-swift3 | | | ||
| genstrings | **deleted** | Seldomly used | | ||
| no-comments-swift3 | **deleted ** | The other templates now support a `noComments` parameter | | ||
| structured | **deleted** | Deprecated by `dot-syntax` (now called `structured-swift2/3`) | | ||
| swift3 | flat-swift3 | | |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we repeat there that people can also just use
--param <paramName>
for boolean parameters, especially since this template use one (noAllValues
)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, I'd make a separate PR changing those lines to point to the StencilSwiftKit docs (or new SwiftGen docs) explaining how to customise templates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ref SwiftGen/SwiftGen#305