Slide 1

Slide 1 text

Pancake with SourceKitten 2016.01.27 ؔ੢ϞόΠϧΞϓϦݚڀձ #10 Martha 1

Slide 2

Slide 2 text

ࣗݾ঺հ @JPMartha_jp JPMartha 2

Slide 3

Slide 3 text

MarthaʢϚʔαʣ • ֨ಆՈͷ໊લͰڹ͖͕͍͍ͱࢥͬͯ
 ࢖͍͸͡Ί·ͨ͠ɻ • ͨͩঁੑͷ໊લͩͱ͋ͱ͔Β஌Γ·ͨ͠ɻ • ͝ཡͷͱ͓ΓΦδαϯͰ͢ɻ 3

Slide 4

Slide 4 text

ਆށ͔Βདྷ·ͨ͠ 4

Slide 5

Slide 5 text

ൃදͷ֓ཁ • SourceKitten Λ࢖ͬͯυΩϡϝϯτࣗಈੜ੒ • ʢ͓·͚ʣInstagram ΁ࣸਅΛγΣΞ͢ΔϥΠϒϥϦ 5

Slide 6

Slide 6 text

υΩϡϝϯτ ࣗಈੜ੒πʔϧ ·ͩ׬੒͸͍ͯ͠ͳ͍Ͱ͕͢ݱঢ়ใࠂͰ͢ɻ 6

Slide 7

Slide 7 text

πʔϧΛάάΓ·ͨ͠ ͦ͏͍͏΋ͷ͸͢Ͱʹ͋Γ·͢ɻ 7

Slide 8

Slide 8 text

jazzy https://github.com/realm/jazzy • HTMLܗࣜͷϑΝΠϧΛੜ੒͠·͢ɻ ‣Markdown ܗࣜʹ͍ͨ͠Ͱ͢ɻ • ΦʔϓϯιʔεͰ͢ɻʢRubyʣ ‣Ruby ͸Θ͔Γ·ͤΜɻ 8

Slide 9

Slide 9 text

ࣗྗͰ࡞Γ·͢ https://github.com/JPMartha/Pancake ʢԾʣ 9

Slide 10

Slide 10 text

ίʔυղੳ • ͸͡Ί͸ࣗྗͰ͠·͕ͨ͠ෳࡶͰͨ͠ɻ • SourceKitten Λར༻͢Δ͜ͱʹ͠·ͨ͠ɻ
 ʢ jazzy ΍ SwiftLint ΋ར༻͍ͯ͠·͢ʣ ‣https://github.com/jpsim/SourceKitten ‣https://github.com/realm/jazzy ‣https://github.com/realm/SwiftLint 10

Slide 11

Slide 11 text

 SourceKitten ͱ͸ ͜Μͳ͜ͱ͕Ͱ͖·͢ɻʢઆ໌͸লུʣ

Slide 12

Slide 12 text

[{ "\/Users\/sathachie\/Pancake\/DemoApp\/DemoApp\/ViewController.swift" : { "key.substructure" : [ { "key.kind" : "source.lang.swift.decl.class", "key.offset" : 174, "key.parsed_declaration" : "class ViewController: NSViewController", "key.namelength" : 14, "key.bodyoffset" : 208, "key.bodylength" : 385, "key.length" : 14, "key.name" : "ViewController", "key.typename" : "ViewController.Type", "key.parsed_scope.end" : 34, "key.usr" : "s:C7DemoApp14ViewController", "key.nameoffset" : 174, "key.inheritedtypes" : [ { "key.name" : "NSViewController" } ], "key.annotated_decl" : "class ViewController : NSViewController<\/Type><\/ Declaration>", "key.accessibility" : "source.lang.swift.accessibility.internal", "key.substructure" : [ { "key.kind" : "source.lang.swift.decl.function.method.instance", 12

Slide 13

Slide 13 text

ߏ੒ 13 SourceKitʢίʔυղੳɾύʔεʣ HimotokiʢJSONσίʔυʣ ࣗ࡞πʔϧʢMarkdownੜ੒ʣ SourceKittenʢJSONੜ੒ʣ

Slide 14

Slide 14 text

Markdown ܗࣜͰग़ྗ 14

Slide 15

Slide 15 text

ݱঢ়ใࠂ Himotoki ͸ΤϥʔͰࣦഊͨ͠ͷͰ… 15

Slide 16

Slide 16 text

Promise.swift https://github.com/yashigani/Promise 16

Slide 17

Slide 17 text

 Promise.md

Slide 18

Slide 18 text

 State.md Result.md

Slide 19

Slide 19 text

͜͜ʹஔ͍͍ͯ·͢ https://gist.github.com/JPMartha/49b3215fb5d99bdf9aea 19

Slide 20

Slide 20 text

͓·͚ 20

Slide 21

Slide 21 text

Instagram ΁ࣸਅΛ γΣΞ͢ΔϥΠϒϥϦ https://github.com/JPMartha/EggsBenedict 21

Slide 22

Slide 22 text



Slide 23

Slide 23 text

ΦʔϓϯιʔεͰ͢ ͨͩ͠ Issues ͸͢΂ͯࣗ෼ͷϝϞͰ͢ɻ 23

Slide 24

Slide 24 text

ࢀߟ • SourceKitten
 https://github.com/jpsim/SourceKitten • jazzy
 https://github.com/realm/jazzy • SwiftLint
 https://github.com/realm/SwiftLint • Swift SourceKitΛ࢖ͬͯSwiftιʔείʔυΛϋΠϥΠτ͢Δ
 http://qiita.com/gfx/items/7f47e98762ecf6f53af5 • SourceKittenʹ͍ͭͯ
 http://www.slideshare.net/ssusera7b1a1/source-kitten 24

Slide 25

Slide 25 text

Ҏ্ ͋Γ͕ͱ͏͍͟͝·ͨ͠ 25