Titanium ã®ã³ã¼ããä¿åãããèªåãªãã¼ããã¦ããã elisp
Titanium ãå¼ã£ã¦ããã¨ãã³ã¼ãä¿®æ£ãããã³ã« Titanium Developer ã® GUIã«åãæ¿ã㦠Launch ãã¿ã³(buildãã)æ¼ããªãããªãããé¢åããããã§ãããGUI ãªã㧠build ã§ããããã«ãã ruby ã¹ã¯ãªãããæ¸ããã¦ãæ¹ãããã£ãããã¾ããã
Titaniumã®ããã¸ã§ã¯ããã©ã«ãã«build.rbãç½®ãã¦ãã¿ã¼ããã«ãã
ruby build.rb
ãµã¼ãã¼ãç«ã¡ä¸ããã®ã§ãhttp://127.0.0.1:9090/run ãå©ãã°ãbuildãå§ã¾ãã¾ãã
TitaniumのコードをGUIなしでエディタからすばやくbuildする on Ruby
ã¿ã¼ããã«ä¸ã§ãã°ãè¦ããã¨ãã§ãã¾ãã
ãã¡ããå©ç¨ãã¦ãemacs ã§ãã¡ã¤ã«ä¿åæã« build ã§ããããã«ãã¦ã¿ã¾ãããããâ
(defun ti-send-run () (setq proc (open-network-stream "titanium" nil "127.0.0.1" 9090)) (process-send-string proc "GET /run HTTP/1.0\r\n\r\n") (sleep-for 1) (delete-process proc)) (defun reload-titanium () (if (string-match "Resources" (buffer-file-name)) (ti-send-run))) (add-hook 'after-save-hook 'reload-titanium)
ä¸ã®ã³ã¼ãã.emacsã«æ¸ãã¨ãã°ãResources é ä¸ã«ãããã¡ã¤ã«ã emacs ã§ä¿åããã¨ãã«èªå㧠build ããã¾ãã
ã©ã¼ããããããã ãã