Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Rename default templates to swift2 #47

Merged
merged 12 commits into from
May 17, 2017
Merged

Conversation

djbe
Copy link
Member

@djbe djbe commented May 11, 2017

Fixes #11

  • Rename default templates to swift2
  • Remove deprecated templates
  • Add allValues to each images template
  • Add noComments as parameter to strings template
  • Update documentation
  • Migration guide
  • Changelog entry

@djbe djbe force-pushed the feature/breaking/default-to-swift2 branch 3 times, most recently from aa1708a to 3c734b5 Compare May 12, 2017 13:09
@djbe djbe requested review from AliSoftware and Liquidsoul May 12, 2017 14:00
@Liquidsoul
Copy link
Member

That's quite a lot of files to review 🙄
But, after viewing the changes, this LGTM 👍

@djbe
Copy link
Member Author

djbe commented May 14, 2017

As long as the templates look ok, everything should be fine. The tests ensure that 😄

@djbe
Copy link
Member Author

djbe commented May 14, 2017

I should maybe add a flag to control the allValues generation, in case people don't want it.

@djbe djbe force-pushed the feature/breaking/default-to-swift2 branch from e1c8593 to 1e8c057 Compare May 16, 2017 14:39
@@ -15,11 +15,12 @@ It also takes into account any namespacing folder in your Assets Catalogs (i.e.

## Customization

You can customize some elements of this template by overriding the following parameters when invoking `swiftgen` in the command line, using `--param <paramName> <newValue>`
You can customize some elements of this template by overriding the following parameters when invoking `swiftgen` in the command line, using `--param <paramName>=<newValue>`
Copy link
Collaborator

@AliSoftware AliSoftware May 17, 2017

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)?

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -2,8 +2,8 @@

| Name | Description |
| --------- | ----------------- |
| File name | storyboards-osx-default.stencil |
| Invocation example | `swiftgen storyboards -t osx-default …` |
| File name | storyboards/macOS-swift2.stencil |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those documentation files themselves should be renamed macOS-swift2.md, etc. right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jup forgot that

enum This {

enum Is {
static let Deep = L10n.tr("settings.navigation-bar.title.deeper.than.we.can.handle.no.really.this.is.deep")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That key name always makes me laugh, like… this is psychologically deep 😆

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to go deeper

@@ -14,11 +14,12 @@

## Customization

You can customize some elements of this template by overriding the following parameters when invoking `swiftgen` in the command line, using `--param <paramName> <newValue>`
You can customize some elements of this template by overriding the following parameters when invoking `swiftgen` in the command line, using `--param <paramName>=<newValue>`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same q about --param <paramName> for boolean flags like noComments

@AliSoftware
Copy link
Collaborator

This feels sooooo good:
684 lines added, 3804 lines deleted

@djbe
Copy link
Member Author

djbe commented May 17, 2017

Man, did you see the remove deprecated variables PR? #45
screen shot 2017-05-17 at 12 48 00

@djbe djbe merged commit 2d872c8 into master May 17, 2017
@djbe djbe deleted the feature/breaking/default-to-swift2 branch May 17, 2017 12:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants