๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐ŸŽ iOS/Third Party

[iOS/Library] Swift๋กœ ๋ธ”๋กœ๊ทธ ์›น์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ(feat.Publish)

by Fomagran ๐Ÿ’ป 2021. 4. 14.
728x90
๋ฐ˜์‘ํ˜•

์•ˆ๋…•ํ•˜์„ธ์š” Foma ์ž…๋‹ˆ๋‹ค!

 

์˜ค๋Š˜์€ Swift๋กœ ์›น์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“ค์–ด๋ณผ๊ฑฐ์—์š”!

 

์˜ˆ์ „๋ถ€ํ„ฐ Swift๋กœ ์›น์‚ฌ์ดํŠธ๋ฅผ ์ง„์งœ ๋งŒ๋“ค๊ณ ์‹ถ์—ˆ๋Š”๋ฐ ์ข‹์€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ฐพ๊ฒŒ ๋˜์–ด์„œ ๊ณต์œ ํ•˜๋ ค๊ณ  ๊ธ€์„ ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค!

 

๋ฐ”๋กœ ์‹œ์ž‘ํ• ๊ฒŒ์š”~


Publish

 

iOS๊ณ„(?)์—์„œ ์•„์ฃผ ์œ ๋ช…ํ•œ John Sundell ๋‹˜์ด ๋งŒ๋“œ์‹  Publish ๋ผ๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ด์šฉํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค!

 

 

JohnSundell/Publish

A static site generator for Swift developers. Contribute to JohnSundell/Publish development by creating an account on GitHub.

github.com


Swift Package Manager

 

์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋Š” ์ฝ”์ฝ”์•„ํŒŸ์ด๋‚˜ ์นด๋ฅดํƒ€๊ณ ๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š๊ณ  ์Šค์œ„ํ”„ํŠธ ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ €๋กœ ์„ค์น˜ํ•˜์…”์•ผํ•ฉ๋‹ˆ๋‹ค!

 

์ €๋„ ์ด๋ฒˆ์— ์ฒ˜์Œ ์Šค์œ„ํ”„ํŠธ ํŒจํ‚ค์ง€ ๋งค๋‹ˆ์ €๋กœ ์„ค์น˜๋ฅผ ํ•ด๋ดค๋Š”๋ฐ ์ƒ๊ฐ๋ณด๋‹ค ๊ฐ„๋‹จํ•˜๋”๋ผ๊ตฌ์š”.

 

Install

 

ํ„ฐ๋ฏธ๋„์— ์›ํ•˜์‹œ๋Š” ๊ฒฝ๋กœ์— ์•„๋ž˜์™€ ๊ฐ™์ด ์ž…๋ ฅํ•˜๋ฉด

$ git clone https://github.com/JohnSundell/Publish.git
$ cd Publish
$ make

 

์„ค์น˜๋ฅผ ์ž๋™์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค.

 

 

๊ทธ๋Ÿฌ๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด Publish๋ผ๋Š” ํด๋”๊ฐ€ ๋”ฐ๋กœ ์ƒ๊ฒผ์„๊ฑฐ์—์š”!

 

 

๊ทธ ๋‹ค์Œ์œผ๋กœ ์›ํ•˜๋Š” ์ด๋ฆ„์œผ๋กœ ํด๋”๋ฅผ ๋งŒ๋“ค์–ด์ค๋‹ˆ๋‹ค. (์ €๋Š” FomagranWebsite๋ผ๊ณ  ์ด๋ฆ„ ์ง€์—ˆ์–ด์š”)

 

 

๊ทธ๋ฆฌ๊ณค ๋งŒ๋“ค์–ด์ค€ ํด๋”๋กœ ์ด๋™ํ•ด์„œ publish new ๋ผ๊ณ  ์ž…๋ ฅํ•ด์ค๋‹ˆ๋‹ค.

 

 

๊ทธ๋Ÿผ ์•„๋ž˜์™€ ๊ฐ™์ด ๋งŒ๋“ค์–ด์ค€ ํด๋”๊ฐ€ ์ƒ๊ฒผ์„๊ฑฐ์—์š”!

 

 

๋งˆ์ง€๋ง‰์œผ๋กœ open Package.swift๋ผ๊ณ  ์ž…๋ ฅํ•ด์ฃผ๋ฉด ํ•ด๋‹น ์ด๋ฆ„์„ ๊ฐ€์ง„ Xcode ํ”„๋กœ์ ํŠธ๊ฐ€ ์—ด๋ฆด๊ฑฐ์—์š”.

 

(์•„์ง ํ„ฐ๋ฏธ๋„์„ ๋„์ง€ ๋ง์•„์ฃผ์„ธ์š”!)


Xcode

 

xcode๋กœ ์ด๋™ํ•˜์…”์„œ ์‹คํ–‰๋Œ€์ƒ์„ mac์œผ๋กœ ์„ค์ •ํ•ด์ค๋‹ˆ๋‹ค.

 

๊ทธ๋ฆฌ๊ณ  ์‹คํ–‰๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ์ฃผ๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ์•Œ๋ฆผ์ด ๋œฐ๊ฑฐ์—์š”.

 

ํ™•์ธ์„ ๋ˆŒ๋Ÿฌ์ค๋‹ˆ๋‹ค.

 

 

 

๊ทธ๋ฆฌ๊ณค Xcode ์ถœ๋ ฅ์ฐฝ์„ ๋ณด๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ์„ฑ๊ณต์ ์œผ๋กœ publish๊ฐ€ ๋๋‹ค๊ณ  ๋‚˜์˜ฌ๊ฑฐ์—์š”!

 

๋‹ค์‹œ ํ„ฐ๋ฏธ๋„๋กœ ์ด๋™ํ•ด์„œ

 

publish run์ด๋ผ๊ณ  ์ž…๋ ฅํ•ด์ค๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋ฉด ๋ง‰ ์„ค์น˜๋ฅผ ํ•˜๋ฉด์„œ ๋งˆ์ง€๋ง‰์— ์•„๋ž˜์™€ ๊ฐ™์ด ๋œฐ๊ฑฐ์—์š”.

 

 

์œ„ ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ•ด์„œ ์ž…๋ ฅํ•ด์ฃผ๋ฉด

 

 

์•„๋ž˜์™€ ๊ฐ™์ด ๋‚˜๋งŒ์˜ ์›น์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“ค์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค!!

 

 


๊ธ€ ์ˆ˜์ •ํ•ด๋ณด๊ธฐ

 

์›น์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“ค์–ด์คฌ๋˜ ํด๋”์—์„œ Content - posts๋กœ ๋“ค์–ด๊ฐ€๋ฉด mdํŒŒ์ผ๋“ค์ด ์žˆ์„๊ฑฐ์—์š”!

 

 

mdํŒŒ์ผ์„ ์›ํ•˜๋Š” ๊ธ€๋กœ ์ˆ˜์ •ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

 

์ €๋Š” ์•„๋ž˜์™€ ๊ฐ™์ด ์ œ๋ชฉ๊ณผ ํƒœ๊ทธ ๊ธ€์„ ๋ฐ”๊พธ๊ณ  ๊ธ€ ์•ˆ์— ์ด๋ฏธ์ง€๋„ ๋„ฃ์–ด๋ดค์–ด์š” .

---
date: 2021-04-14 14:36
description: Swift๋กœ ๋งŒ๋“  ์›น์‚ฌ์ดํŠธ ์ž…๋‹ˆ๋‹ค..
tags: Swift, Website
---
# ์•ˆ๋…•ํ•˜์„ธ์š”!

๋ฐ˜๊ฐ‘์Šต๋‹ˆ๋‹ค ์ €๋Š” Fomagran ์ž…๋‹ˆ๋‹ค!

<img src="https://user-images.githubusercontent.com/47676921/114306899-5dca6e00-9b18-11eb-9462-38a942808b3a.png"  width="200" height="400">

๋ฐ”๊พธ๊ณ  ๋‚˜์„œ ์‹คํ–‰๋ฒ„ํŠผ์„ ๋ˆ„๋ฅธ ๋’ค ๋‹ค์‹œ ๋กœ์ปฌํ˜ธ์ŠคํŠธ ์ฃผ์†Œ๋กœ ๋“ค์–ด๊ฐ€๋ฉด

 

 

๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ œ๋ชฉ๊ณผ ํƒœ๊ทธ์™€ ๊ธ€์ด ๋ฐ”๋€Œ์–ด ์žˆ๊ณ  

 

 

์•ˆ์œผ๋กœ ๋“ค์–ด๊ฐ€๋ฉด ์‚ฌ์ง„๋„ ์ž˜ ์ฒจ๋ถ€๋˜์—ˆ๋„ค์š”!

 


๊ธ€ ์ถ”๊ฐ€ํ•˜๊ธฐ

 

์›น์‚ฌ์ดํŠธ ํด๋”์—์„œ Content - posts๋กœ ๋“ค์–ด๊ฐ€์„œ first-post.md๋ฅผ ๋ณต์‚ฌํ•ด์„œ ์ด๋ฆ„์„ ๋ฐ”๊ฟ”์ค๋‹ˆ๋‹ค.

 

 

๊ทธ๋ฆฌ๊ณค ๋‘๋ฒˆ์งธ md ํŒŒ์ผ์€ ์•„๋ž˜์™€ ๊ฐ™์ด ์ž‘์„ฑํ•ด๋ดค์–ด์š”.

 

---
date: 2021-04-14 14:36
description: ์ •๋ง ๋„ˆ๋ฌด ์‹ ๊ฐ€ํ•˜๋„ค์š”!
tags: ์ •๋ง, ์‹ ๊ธฐ
---
# ์™€์šฐ!

Swift๋กœ ์›น์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ!!

 

Xcode๋ฅผ ์‹คํ–‰์‹œํ‚ค๊ณ  ๋กœ์ปฌํ˜ธ์ŠคํŠธ ์ฃผ์†Œ๋ฅผ ์ƒˆ๋กœ๊ณ ์นจํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ์ถ”๊ฐ€๋œ ๊ธ€์ด ์žˆ๋Š”๊ฑธ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค!!

 


์˜ค๋Š˜์€ ์ด๋ ‡๊ฒŒ Publish๋ผ๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ด์šฉํ•ด์„œ Swift๋กœ ๋ธ”๋กœ๊ทธ ์›น์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“ค์–ด๋ณด์•˜๋Š”๋ฐ์š”.

 

์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋งŒ๋“  John Sendell์ด ๋‹ค์‹œ ํ•œ๋ฒˆ ๋Œ€๋‹จํ•˜๋‹ค๊ณ  ๋Š๊ปด์ง€๋„ค์š”.

 

์˜ˆ์ „๋ถ€ํ„ฐ Swift๋กœ ์›น์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“ค์–ด๋ณด๊ณ ์‹ถ์—ˆ๋Š”๋ฐ ๋“œ๋””์–ด ์กฐ๊ธˆ์ด๋‚˜๋งˆ ๋งŒ๋“ค์–ด๋ด์„œ ๋ฟŒ๋“ฏํ•˜๋„ค์š” !

 

ํ˜น์‹œ๋ผ๋„ ํ‹€๋ฆฐ ๋ถ€๋ถ„์ด ์žˆ๊ฑฐ๋‚˜ ๊ถ๊ธˆํ•˜์‹  ์  ์žˆ์œผ๋ฉด ๋Œ“๊ธ€๋กœ ๋‚จ๊ฒจ์ฃผ์„ธ์š”!

728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€