28

GitHub - kateinoigakukun/TouchTypist: Speed up your build time. Rewrite your sou...

 5 years ago
source link: https://github.com/kateinoigakukun/TouchTypist
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

README.md

TouchTypist

Installation

TODO

Usage

Rewrite single file

$ swiftc -frontend -dump-ast sourcefile.swift > sourcefile.swift.ast
$ touchtypist rewrite sourcefile.swift.ast
- let value = 1
+ let value: Int = 1


- [1, 2, 3].map { i in
+ [1, 2, 3].map { (i: Int) -> String in
    return i.description
}

Rewrite Xcode projects

Set User-Defined build setting, SWIFT_EXEC with touchtypist-xcode-wrapper and run building.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK