index.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <html><head><meta charset="utf-8" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  2. <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="description" content="" />
  3. <meta name="author" content="Maxim Sokhatsky" /><title>MAD</title>
  4. <link rel="stylesheet" href="https://n2o.dev/blank.css" />
  5. <link rel="stylesheet" href="https://n2o.dev/zima.css" />
  6. </head><body><nav>
  7. <a href="https://n2o.dev">DEV</a>
  8. <a href="https://mad.n2o.space" style="background:#ededed;">MAD</a>
  9. </nav><header>
  10. <a href="https://github.com/synrc/mad"><img src="https://synrc.space/images/Synrc Neo.svg?v=1" /></a>
  11. <h1>MAD</h1>
  12. </header><aside>
  13. <article>
  14. <section>
  15. <h3>SYNOPSIS</h3>
  16. <div>MAD is a small and fast rebar replacement.
  17. </div>
  18. </section>
  19. <section>
  20. <a name="install"></a><h3>INSTALL</h3>
  21. <div>Place MAD binary into <b>$PATH</b> or <b>/usr/local/bin</b>. E.g. using curl:</div><br/>
  22. <figure>
  23. <code> $ curl -fsSL \
  24. https://git.io/fpYm4 \
  25. > mad &#38;&#38; chmod +x mad \
  26. &#38;&#38; sudo cp mad /usr/local/bin</code>
  27. </figure><br/>
  28. <div>
  29. APR 2018 © <a href="https://github.com/5HT">Namdak Tonpa</a> ISC<br />
  30. VER 5.4 4.11 4.10
  31. </div>
  32. </div></section>
  33. </article>
  34. </aside><main>
  35. <section>
  36. <a name="docs"></a><h3>HELP</h3>
  37. <p> MAD accepts a list of words. This list of words contains special words,
  38. delimiters or commands.
  39. Words between commands are arguments for the nearest command from left.
  40. </p>
  41. <figure><code>
  42. MAD Manage Dependencies 5.4-14-g7810b8d
  43. invoke = mad | mad list
  44. list = [] | command [options] list
  45. command = app [zero|nitro] <name> | deps | clean | compile | strip
  46. | bundle [beam|script] <name> | man | get <repo> | up [name]
  47. | start | stop | attach | repl | static <min>
  48. </min></repo></name></name></code></figure>
  49. <div>
  50. <ul><li><b><a href="man/mad.htm">mad</a></b> — MAD Main Module</li><li><b><a href="man/mad_local.htm">mad_local</a></b> — MAD POSIX Profile</li></ul>
  51. </div>
  52. </section>
  53. <section>
  54. <a name="app"></a><h3>APP</h3>
  55. <p>Create predefined sample application.
  56. MAD has built-in two sample applications: <b>zero</b> and <b>nitro</b>. </p>
  57. <figure><code>
  58. $ mad app nitro sample
  59. OK
  60. </code></figure>
  61. <div>
  62. <ul><li><b><a href="man/mad_static.htm">mad_static</a></b> — MAD Static<div class="desk">: SKELETONS, MINIFIER</div></li></ul>
  63. </div>
  64. </section>
  65. <section>
  66. <a name="deps"></a><h3>DEPS</h3>
  67. <div>
  68. <figure><code>
  69. $ cd sample
  70. $ cat rebar.config
  71. {sub_dirs,["apps"]}.
  72. {deps_dir,"deps"}.
  73. {deps, [
  74. {erlydtl,".*", {git, "git://github.com/voxoz/erlydtl", [] }},
  75. {cowboy, ".*", {git, "git://github.com/voxoz/cowboy", [] }},
  76. {gproc, ".*", {git, "git://github.com/voxoz/gproc", [] }},
  77. {fs, ".*", {git, "git://github.com/synrc/fs", {tag, "4.10"} }},
  78. {sh, ".*", {git, "git://github.com/synrc/sh", {tag, "2.10"} }},
  79. {mad, ".*", {git, "git://github.com/synrc/mad", {tag, "4.10"} }},
  80. {active, ".*", {git, "git://github.com/synrc/active", {tag, "4.10"} }},
  81. {nitro, ".*", {git, "git://github.com/synrc/nitro", {tag, "3.10"} }},
  82. {n2o, ".*", {git, "git://github.com/synrc/n2o", {tag, "5.10"} }}
  83. ]}
  84. </code></figure>
  85. <figure><code>
  86. $ mad deps
  87. ==> dependency: "git://github.com/voxoz/erlydtl" tag: []
  88. ==> dependency: "git://github.com/voxoz/cowlib" tag: []
  89. ==> dependency: "git://github.com/voxoz/ranch" tag: []
  90. ==> dependency: "git://github.com/voxoz/gproc" tag: []
  91. ==> dependency: "git://github.com/synrc/fs" tag: {tag,"4.10"}
  92. ==> dependency: "git://github.com/synrc/sh" tag: {tag,"2.10"}
  93. ==> dependency: "git://github.com/synrc/mad" tag: {tag,"4.10"}
  94. ==> dependency: "git://github.com/synrc/active" tag: {tag,"4.10"}
  95. ==> dependency: "git://github.com/synrc/nitro" tag: {tag,"3.10"}
  96. ==> dependency: "git://github.com/synrc/n2o" tag: {tag,"5.10"}
  97. OK
  98. </code></figure>
  99. </div>
  100. <a name="get"></a><h3>GET</h3>
  101. <figure><code>
  102. $ mad get kvx
  103. ==> dependency: "https://github.com/synrc/kvx" tag: []
  104. OK
  105. </code></figure>
  106. <a name="up"></a><h3>UP</h3>
  107. <figure><code>
  108. $ mad up
  109. OK
  110. </code></figure>
  111. <div>
  112. <ul><li><b><a href="man/mad_git.htm">mad_git</a></b> — MAD Git</li></ul></div>
  113. </section>
  114. <section>
  115. <a name="clean"></a><h3>CLEAN</h3>
  116. <div>
  117. <figure><code>
  118. $ mad clean
  119. OK
  120. </code></figure>
  121. </div>
  122. <a name="start"></a><h3>START</h3>
  123. <figure><code>
  124. $ mad start
  125. Scripting: "/Users/maxim/depot/synrc/mad/mad"
  126. OK
  127. </code></figure>
  128. <a name="attach"></a><h3>ATTACH</h3>
  129. <figure><code>
  130. $ $(mad attach)
  131. Attaching to . (^D to exit)
  132. 1>
  133. </code></figure>
  134. <a name="stop"></a><h3>STOP</h3>
  135. <figure><code>
  136. $ eval $(mad stop)
  137. Attaching to . (^D to exit)
  138. [EOF]
  139. </code></figure>
  140. <div>
  141. <ul><li><b><a href="man/mad_run.htm">mad_run</a></b> — MAD Runner</li></ul></div>
  142. </section>
  143. <section>
  144. <a name="compile"></a><h3>COMPILE</h3>
  145. <figure><code>
  146. $ mad compile
  147. Writing /apps/sample/ebin/sample.app
  148. OK
  149. </code></figure>
  150. <div>
  151. <ul><li><b><a href="man/mad_compile.htm">mad_compile</a></b> — MAD Compiler</li><li><b><a href="man/mad_app.htm">mad_app</a></b> — OTP Application files</li><li><b><a href="man/mad_cubical.htm">mad_cubical</a></b> — cubicaltt files</li><li><b><a href="man/mad_dtl.htm">mad_dtl</a></b> — DTL files</li><li><b><a href="man/mad_erl.htm">mad_erl</a></b> — Erlang source files</li><li><b><a href="man/mad_leex.htm">mad_leex</a></b> — Erlang leex files</li><li><b><a href="man/mad_yecc.htm">mad_yecc</a></b> — Erlang yecc files</li><li><b><a href="man/mad_port.htm">mad_port</a></b> — C/C++ files</li><li><b><a href="man/mad_script.htm">mad_script</a></b> — .script files</li></ul>
  152. </div>
  153. </section>
  154. <section>
  155. <a name="plan"></a><h3>PLAN</h3>
  156. <figure><code>
  157. $ mad plan
  158. OK
  159. </code></figure>
  160. <a name="strip"></a><h3>STRIP</h3>
  161. <figure><code>
  162. $ mad strip
  163. OK
  164. </code></figure>
  165. <a name="bundle"></a><h3>BUNDLE</h3>
  166. <figure><code>
  167. $ mad bundle script sample
  168. OK
  169. </code></figure>
  170. <figure><code>
  171. $ mad bundle beam sample
  172. OK
  173. </code></figure>
  174. <div>
  175. <ul><li><b><a href="man/mad_release.htm">mad_release</a></b> — MAD Bundler</li><li><b><a href="man/mad_escript.htm">mad_escript</a></b> — MAD escript bundler</li><li><b><a href="man/mad_systools.htm">mad_systools</a></b> — MAD BEAM release bundler</li></ul>
  176. </div>
  177. </section>
  178. <section>
  179. <a name="repl"></a><h3>REPL</h3>
  180. <figure><code>
  181. $ mad repl
  182. $ open http://127.0.0.1:8001/app/index.htm
  183. </code></figure>
  184. <div>
  185. <ul><li><b><a href="man/mad_repl.htm">mad_repl</a></b> — MAD REPL</li></ul></div>
  186. </section>
  187. <section>
  188. <a name="articles"></a><h3>ARTICLES</h3>
  189. <div>
  190. <ul><li><a href="https://n2o.space/articles/n2o.htm">N2O: PROTOCOL</a></li><li><a href="https://n2o.space/articles/web.htm">N2O: SERVER</a></li><li><a href="https://n2o.space/articles/history.htm">N2O: HISTORY</a></li></ul></div>
  191. </section>
  192. </main><footer>
  193. Made with <span class="heart">❤</span> to N2O
  194. </footer></body></html>