Markdownã ãã§ã¹ã©ã¤ããä½ãCLIã®v1.0.0ããªãªã¼ã¹ãã
ä¸å¹´åã«ä½ã£ãã©ã¤ãã©ãªã®v1.0.0ãªãªã¼ã¹ã§ãã
- ãªãã¸ããª
- Fusumaã¨ã¯ï¼
- 大ããªå¤æ´
- ã¹ã©ã¤ãã©ã¤ãã©ãª
- ãã¼ã¯ãã¦ã³ã§æ¸ã
- æ¡å¼µ
- æ¬çªãã«ã
- çºè¡¨è ã¢ã¼ã
- ãµã³ãã«ãªãã¸ããª
- æå¾ã«
ãªãã¸ããª
Fusumaã¨ã¯ï¼
以ä¸ã®æ©è½ããµãã¼ããã¦ããCLIã§ãã
- éçºç°å¢(webpack-dev-server)
- æ¬çªç°å¢(æé©åå«ã)
- GitHub Pagesã¸ã®ãããã¤
- PDFã®åºå
- SNS, OGP対å¿
- çºè¡¨è
ã¢ã¼ã
- çºè¡¨è ãã¼ããã¿ã¤ãã¼ç
以ä¸ãå®è¡ããã ãã§ãã¹ã©ã¤ããä½ãã¾ãã
$ npm i fusuma -D $ npx fusuma init $ mkdir slides && echo '# Helloð' > slides/title.md $ npx fusuma build
å é¨ã§ã¯ãmarkdownã§æ¸ãããã¡ã¤ã«ãhtmlã«å¤æãã¦ããããhtmlã§ä½ãã¹ã©ã¤ãã©ã¤ãã©ãªã«èªã¿è¾¼ã¾ãã¦ãã¾ãã
大ããªå¤æ´
- bespokeããwebSlidesã¸
- çºè¡¨è ãã¼ã«ã®UIå¤æ´
- å é¨ãªãã¡ã¯ã¿ãªã³ã° + æé©å
ã¹ã©ã¤ãã©ã¤ãã©ãª
ãã¨ãã¨ãbespoke.jsã¨ããã®ã使ã£ã¦ãã®ã§ãããã¡ã³ããã³ã¹ã2016ãããããæ¢ã¾ãã¤ã¤ãã£ã¦ãä»å¾ããã©ããªã£ã¦æ°æã¡ã«ãªã£ãã®ã§ãWebSlidesã¨ããã©ã¤ãã©ãªã«åãæ¿ãã¾ããã(ã¡ã³ããããã¦ãã¾ã)
Fusumaã¯ä»¥ä¸ã®ã©ã¤ãã©ãªã«markdownããhtmlã¸å¤æã渡ãå½¹å²ãæã¡ã¾ãã
WebSlides
ãµã¤ãèªä½ãã¹ã©ã¤ãã«ãªã£ã¦ãã¾ãã
ç¨æããã¦ããã¯ã©ã¹ãã³ã³ãã¼ãã³ãããã£ã¡ãè±å¯ã§ãã¬ã¹ãã³ã·ã対å¿ããã¦ãã¾ãã
ã¾ããç¬èªã§ãã©ã°ã¤ã³ã追å ãããã§ãã¾ãã
ã³ã³ãã¼ãã³ã
ãµã³ãã«ã¹ã©ã¤ã
ã¯ã©ã¹
ãµã³ãã«ã¹ã©ã¤ã
ãã¼ã¯ãã¦ã³ã§æ¸ã
## 1ãã¼ã¸ç® Hi! --- ## 2ãã¼ã¸ç® Hi!
ã¿ããã«æ¸ãã¨ãwebSlidesã®cssãã¤ãã2ãã¼ã¸åã®ã¹ã©ã¤ããçæããã¾ãã
githubã®fileã§ãmarkdownã ã¨æ´å½¢ãã¦è¦ããã®ã§ãæ¡å¤markdownã§æ¸ãå©ç¹ããã¨æãã
æ¡å¼µ
JSã¨CSSã¯æ¡å¼µã§ããã®ã§ãwebSlidesã®æ°ã«å ¥ããªãé¨åã¨ããã£ããä¸æ¸ãã§ãã¾ãã
æ¬çªãã«ã
ç»åå§ç¸®ãcssã®æé©åçã¯ãã¹ã¦è¨å®ãã¦ããã®ã§ãä»ã¯webpackã¯ããããªãããã«ãã¦ãã¾ãã
çºè¡¨è ã¢ã¼ã
(ä¸è¨ã¯ç»å£è ç»é¢ãUIå¤æ´ããå¯è½æ§ãã)
Presentation APIã使ã£ã¦ãã£ã¹ããã¾ãã(chrome castã¨ãã§ãå¤åããããã©è©¦ãã¦ãªã)
ããã対å¿ãã¦ããªãã¦ãlocalstrageã§åæããä»çµã¿ãèªåã§ãã©ã¼ã«ããã¯ããã®ã§ãåé¡ã¯ç¡ãã¨æãã¾ãã
ãã¼ã
以ä¸ã®ããã«ã¹ã©ã¤ãã«æ¸ãã¦ããã¨ããã¼ãã¨ãã¦è¦ãã¾ãã
<!-- note Hi! -->
ãµã³ãã«ãªãã¸ããª
fusuma/samples/intro at master · hiroppy/fusuma · GitHub
æå¾ã«
ããã£ã¨ã¹ã©ã¤ã使ãããã¨ãã«ä¾¿å©ã§ã:)
ãã¡ããé²ãã§ãã¾ã
ä»é±ä¸ã«webpack-dev-serverã®æ°ãããã¼ã¸ã§ã³ãªãªã¼ã¹ããäºå®
— hiroppyð®ðª (@about_hiroppy) 2019å¹´5æ8æ¥