index.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <html>
  2. <head>
  3. <meta charset="utf-8" />
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="description" content="" />
  7. <meta name="author" content="Maxim Sokhatsky" />
  8. <title>MAD</title>
  9. <link rel="stylesheet" href="https://synrc.space/synrc.css" />
  10. </head>
  11. <body>
  12. <nav>
  13. <a href='https://synrc.space/'>SYNRC</a>
  14. <a href='https://n2o.space'>N2O ECO</a>
  15. </nav>
  16. <header>
  17. <a href="https://n2o.space"><img src="https://synrc.space/images/Synrc Neo.svg?v=1"></a>
  18. <h1>MAD</h1>
  19. </header>
  20. <aside>
  21. <article>
  22. <section>
  23. <h3>SYNOPSIS</h3>
  24. <div>MAD is the small and fast rebar replacement.
  25. </div>
  26. </section>
  27. <section>
  28. <a name=plugin><h3>INTALL</h3></a>
  29. <div>Place MAD binary into <b>$PATH</b> or <b>/usr/local/bin</b>:
  30. <figure>
  31. <code>
  32. # curl -fsSL \
  33. https://raw.github.com/synrc/mad/master/mad > mad \
  34. && chmod +x mad \
  35. && sudo cp /usr/local/bin
  36. </code>
  37. </figure>
  38. <div>
  39. Nov 2018 &copy; <a href="https://github.com/synrc/mad">Namdak Tonpa</a> ISC
  40. </div>
  41. </section>
  42. </article>
  43. </aside>
  44. <main>
  45. <section>
  46. <a name=mqtt><h3>HELP</h3></a>
  47. <p> MAD accepts a list of words. This list of words contains special words,
  48. delimiters or commands.
  49. Words between commands are arguments for the nearest command from left.
  50. </p>
  51. <figure>
  52. <code>
  53. $ mad
  54. MAD Manage Dependencies ad426a
  55. invoke = mad | mad params
  56. params = [] | command [options] params
  57. command = app [sample] | deps | clean | compile | strip
  58. | bundle [beam|script] | get [repo] | up [name]
  59. | start | stop | attach | repl | static [watch|min]
  60. </code></figure>
  61. </section>
  62. <section>
  63. <a name=docs><h3>APP</h3></a>
  64. <p>Create predefined sample applications built in MAD with a given name:</p>
  65. <div>
  66. <ul>
  67. <li><b><a href="man/mad_static.htm">mad_static</a></b> &mdash; MAD Static<div class=desk>: SKELETONS, MINIFIER</div></li>
  68. </ul>
  69. <figure><code>
  70. $ mad app ex && cd ex
  71. Created: "ex/sys.config"
  72. Created: "ex/apps/ex/priv/static/spa/index.htm"
  73. Created: "ex/apps/ex/rebar.config"
  74. Created: "ex/apps/ex/priv/templates/index.html"
  75. Created: "ex/apps/ex/src/ex.erl"
  76. Created: "ex/rebar.config"
  77. Created: "ex/apps/ex/src/index.erl"
  78. Created: "ex/apps/rebar.config"
  79. Created: "ex/vm.args"
  80. Created: "ex/apps/ex/src/ex.app.src"
  81. Created: "ex/apps/ex/priv/static/synrc.css"
  82. Created: "ex/apps/ex/src/routes.erl"
  83. OK
  84. </code><figure>
  85. </div>
  86. <a name=docs><h3>STATIC</h3></a>
  87. </section>
  88. <section>
  89. <a name=docs><h3>DEPS</h3></a>
  90. <div>
  91. <ul>
  92. <li><b><a href="man/mad_git.htm">mad_git</a></b> &mdash; MAD Git</div></li>
  93. </ul>
  94. <figure><code>
  95. $ mad deps
  96. ==> dependency: "git://github.com/voxoz/erlydtl" tag: []
  97. ==> dependency: "git://github.com/voxoz/cowlib" tag: []
  98. ==> dependency: "git://github.com/voxoz/ranch" tag: []
  99. ==> dependency: "git://github.com/voxoz/gproc" tag: []
  100. ==> dependency: "git://github.com/synrc/fs" tag: {tag,"4.10"}
  101. ==> dependency: "git://github.com/synrc/sh" tag: {tag,"2.10"}
  102. ==> dependency: "git://github.com/synrc/mad" tag: {tag,"4.10"}
  103. ==> dependency: "git://github.com/synrc/active" tag: {tag,"4.10"}
  104. ==> dependency: "git://github.com/synrc/nitro" tag: {tag,"3.10"}
  105. ==> dependency: "git://github.com/synrc/n2o" tag: {tag,"5.10"}
  106. </code></figure>
  107. </div>
  108. <a name=docs><h3>GET</h3></a>
  109. <figure><code>
  110. $ mad get kvx
  111. ==> dependency: "https://github.com/synrc/kvx" tag: []
  112. OK
  113. </code></figure>
  114. <a name=docs><h3>UP</h3></a>
  115. </section>
  116. <section>
  117. <a name=docs><h3>CLEAN</h3></a>
  118. <div>
  119. <figure><code>
  120. $ mad clean
  121. </code></figure>
  122. </div>
  123. <a name=docs><h3>START</h3></a>
  124. <figure><code>
  125. $ mad start
  126. </code></figure>
  127. <a name=docs><h3>STOP</h3></a>
  128. <div>
  129. <ul>
  130. <li><b><a href="man/mad_run.htm">mad_run</a></b> &mdash; MAD Runner</div></li>
  131. </ul>
  132. </div>
  133. </section>
  134. <section>
  135. <a name=docs><h3>COMPILE</h3></a>
  136. <div>
  137. <ul>
  138. <li><b><a href="man/mad_compile.htm">mad_compile</a></b> &mdash; MAD Compiler</li>
  139. <li><b><a href="man/mad_app.htm">mad_app</a></b> &mdash; OTP Application files</li>
  140. <li><b><a href="man/mad_cubical.htm">mad_cubical</a></b> &mdash; cubicaltt files</li>
  141. <li><b><a href="man/mad_dtl.htm">mad_dtl</a></b> &mdash; DTL files</li>
  142. <li><b><a href="man/mad_erl.htm">mad_erl</a></b> &mdash; Erlang source files</li>
  143. <li><b><a href="man/mad_leex.htm">mad_leex</a></b> &mdash; Erlang leex files</li>
  144. <li><b><a href="man/mad_yecc.htm">mad_yecc</a></b> &mdash; Erlang yecc files</li>
  145. <li><b><a href="man/mad_port.htm">mad_port</a></b> &mdash; C/C++ files</li>
  146. <li><b><a href="man/mad_script.htm">mad_script</a></b> &mdash; .script files</li>
  147. </ul>
  148. </div>
  149. <figure><code>
  150. $ mad compile
  151. </code>/<figure>
  152. </section>
  153. <section>
  154. <a name=docs><h3>STRIP</h3></a>
  155. <div>
  156. <ul>
  157. <li><b><a href="man/mad_strip.htm">mad_strip</a></b> &mdash; MAD Strip</div></li>
  158. </ul>
  159. </div>
  160. <figure><code>
  161. $ mad strip
  162. </code>/<figure>
  163. </section>
  164. <section>
  165. <a name=docs><h3>PLAN</h3></a>
  166. <div>
  167. <ul>
  168. <li><b><a href="man/mad_resolve.htm">mad_resolve</a></b> &mdash; MAD Resolver</div></li>
  169. </ul>
  170. </div>
  171. <figure><code>
  172. $ mad plan
  173. </code>/<figure>
  174. </section>
  175. <section>
  176. <a name=docs><h3>BUNDLE</h3></a>
  177. <div>
  178. <ul>
  179. <li><b><a href="man/mad_release.htm">mad_release</a></b> &mdash; MAD Bundler</li>
  180. <li><b><a href="man/mad_escript.htm">mad_escript</a></b> &mdash; MAD ESCRIPT</li>
  181. <li><b><a href="man/mad_ling.htm">mad_ling</a></b> &mdash; MAD LING</li>
  182. <li><b><a href="man/mad_systools.htm">mad_systools</a></b> &mdash; MAD BEAM</li>
  183. </ul>
  184. </div>
  185. <figure><code>
  186. $ mad bun script sample
  187. </code>/<figure>
  188. </section>
  189. <section>
  190. <a name=docs><h3>REPL</h3></a>
  191. <div>
  192. <ul>
  193. <li><b><a href="man/mad_repl.htm">mad_repl</a></b> &mdash; MAD REPL</div></li>
  194. </ul>
  195. </div>
  196. <figure><code>
  197. $ mad repl
  198. $ open http://127.0.0.1:8001
  199. </code>/<figure>
  200. </section>
  201. <section>
  202. <a name=docs><h3>Related Documents</h3></a>
  203. <div>
  204. <ul>
  205. <li><a href="https://n2o.space/articles/n2o.htm">N2O: PROTOCOL</a></li>
  206. <li><a href="https://n2o.space/articles/web.htm">N2O: SERVER</a></li>
  207. <li><a href="https://n2o.space/articles/history.htm">N2O: HISTORY</a></li>
  208. </ul></div>
  209. </section>
  210. </main>
  211. <footer>
  212. Made with <span class="heart">❤</span> to N2O
  213. </footer>
  214. </body>
  215. </html>