Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yhkaplan/code-gen-presentation-2019-02-16
https://github.com/yhkaplan/code-gen-presentation-2019-02-16
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/yhkaplan/code-gen-presentation-2019-02-16
- Owner: yhkaplan
- Created: 2019-02-11T07:29:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-01T12:07:24.000Z (almost 6 years ago)
- Last Synced: 2024-11-06T05:42:20.567Z (3 months ago)
- Homepage:
- Size: 290 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [fit] Code Generation
---
# [fit] Self intro
---
# [fit] What you can do
---
# Generate
- Mocks
- Tests
- Lenses---
# [fit] Tools of the trade
---
# Test specific
- [Cuckoo](https://github.com/Brightify/Cuckoo)
- [SwiftyMock](https://github.com/MakeAWishFoundation/SwiftyMocky)---
# Network test specific
- [Mockingjay](https://github.com/kylef/Mockingjay)
- [Kakapo](https://github.com/devlucky/Kakapo)---
# Type safe resources
- Storyboards
- Assets
- Plists
- json (useful in tests)
- Localizable.strings---
# General code generation
- [Sourcery](https://github.com/krzysztofzablocki/Sourcery)
- [Gyb](https://github.com/jph00/gyb)
- [Gyb (Swift Repo)](https://github.com/apple/swift/blob/664e5659c50fb35c6b8e08d05ca6a4e81bdae7f3/utils/gyb.py)---
# Safe assets
- [R.swift](https://github.com/mac-cain13/R.swift)
- [SwiftGen](https://github.com/SwiftGen/SwiftGen)---
# Share model data w/ server
- Swagger
- GraphQL + Apollo---
# [fit] About Gyb
---
# [fit] About Sourcery
---
# [fit] About Stencil
---
# [fit] The Stencil templating language
---
# It's just Swift (with special markers)
- Variables: `{{}}`
- Tags (control flow): `{%%}`
- Comments: `{##}`---
# Variables
```swift
There are {{ people.count }} people. {{ people.first }} is the first
person, followed by {{ people.1 }}.
```---
# If statements
```swift
{% if variable %}
{{ variable }} was found.
{% endif %}
```---
# Loops
```swift
{% for item in items %}
{{ item }}
{% endfor %}
```---
# [fit] Demo of Sourcery
---
# [fit] Mocks
---
# [fit] Tests
---
# [fit] Lenses
---
# Nice Templates
- https://github.com/AliSoftware/SourceryTemplates
- https://github.com/Liquidsoul/Sourcery-AutoJSONSerializable