index.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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><code>
  52. $ mad
  53. MAD Manage Dependencies ad426a
  54. invoke = mad | mad params
  55. params = [] | command [options] params
  56. command = app [sample] | deps | clean | compile | strip
  57. | bundle [beam|script] | get [repo] | up [name]
  58. | start | stop | attach | repl | static [watch|min]
  59. </code></figure>
  60. </section>
  61. <section>
  62. <a name=docs><h3>APP</h3></a>
  63. <p>Create predefined sample applications built in MAD with a given name:</p>
  64. <div>
  65. <ul>
  66. <li><b><a href="man/mad_static.htm">mad_static</a></b> &mdash; MAD Static<div class=desk>: SKELETONS, MINIFIER</div></li>
  67. </ul>
  68. <figure><code>
  69. $ mad app ex && cd ex
  70. Created: "ex/sys.config"
  71. Created: "ex/apps/ex/priv/static/spa/index.htm"
  72. Created: "ex/apps/ex/rebar.config"
  73. Created: "ex/apps/ex/priv/templates/index.html"
  74. Created: "ex/apps/ex/src/ex.erl"
  75. Created: "ex/rebar.config"
  76. Created: "ex/apps/ex/src/index.erl"
  77. Created: "ex/apps/rebar.config"
  78. Created: "ex/vm.args"
  79. Created: "ex/apps/ex/src/ex.app.src"
  80. Created: "ex/apps/ex/priv/static/synrc.css"
  81. Created: "ex/apps/ex/src/routes.erl"
  82. OK
  83. </code></figure>
  84. </div>
  85. <a name=docs><h3>STATIC</h3></a>
  86. </section>
  87. <section>
  88. <a name=docs><h3>DEPS</h3></a>
  89. <div>
  90. <ul>
  91. <li><b><a href="man/mad_git.htm">mad_git</a></b> &mdash; MAD Git</div></li>
  92. </ul>
  93. <figure><code>
  94. $ mad deps
  95. ==> dependency: "git://github.com/voxoz/erlydtl" tag: []
  96. ==> dependency: "git://github.com/voxoz/cowlib" tag: []
  97. ==> dependency: "git://github.com/voxoz/ranch" tag: []
  98. ==> dependency: "git://github.com/voxoz/gproc" tag: []
  99. ==> dependency: "git://github.com/synrc/fs" tag: {tag,"4.10"}
  100. ==> dependency: "git://github.com/synrc/sh" tag: {tag,"2.10"}
  101. ==> dependency: "git://github.com/synrc/mad" tag: {tag,"4.10"}
  102. ==> dependency: "git://github.com/synrc/active" tag: {tag,"4.10"}
  103. ==> dependency: "git://github.com/synrc/nitro" tag: {tag,"3.10"}
  104. ==> dependency: "git://github.com/synrc/n2o" tag: {tag,"5.10"}
  105. </code></figure>
  106. </div>
  107. <a name=docs><h3>GET</h3></a>
  108. <figure><code>
  109. $ mad get kvx
  110. ==> dependency: "https://github.com/synrc/kvx" tag: []
  111. OK
  112. </code></figure>
  113. <a name=docs><h3>UP</h3></a>
  114. </section>
  115. <section>
  116. <a name=docs><h3>CLEAN</h3></a>
  117. <div>
  118. <figure><code>
  119. $ mad clean
  120. </code></figure>
  121. </div>
  122. <a name=docs><h3>START</h3></a>
  123. <figure><code>
  124. $ mad start
  125. </code></figure>
  126. <a name=docs><h3>STOP</h3></a>
  127. <div>
  128. <ul>
  129. <li><b><a href="man/mad_run.htm">mad_run</a></b> &mdash; MAD Runner</div></li>
  130. </ul>
  131. </div>
  132. </section>
  133. <section>
  134. <a name=docs><h3>COMPILE</h3></a>
  135. <div>
  136. <ul>
  137. <li><b><a href="man/mad_compile.htm">mad_compile</a></b> &mdash; MAD Compiler</li>
  138. <li><b><a href="man/mad_app.htm">mad_app</a></b> &mdash; OTP Application files</li>
  139. <li><b><a href="man/mad_cubical.htm">mad_cubical</a></b> &mdash; cubicaltt files</li>
  140. <li><b><a href="man/mad_dtl.htm">mad_dtl</a></b> &mdash; DTL files</li>
  141. <li><b><a href="man/mad_erl.htm">mad_erl</a></b> &mdash; Erlang source files</li>
  142. <li><b><a href="man/mad_leex.htm">mad_leex</a></b> &mdash; Erlang leex files</li>
  143. <li><b><a href="man/mad_yecc.htm">mad_yecc</a></b> &mdash; Erlang yecc files</li>
  144. <li><b><a href="man/mad_port.htm">mad_port</a></b> &mdash; C/C++ files</li>
  145. <li><b><a href="man/mad_script.htm">mad_script</a></b> &mdash; .script files</li>
  146. </ul>
  147. </div>
  148. <figure><code>
  149. $ mad compile
  150. </code></figure>
  151. </section>
  152. <section>
  153. <a name=docs><h3>STRIP</h3></a>
  154. <div>
  155. <ul>
  156. <li><b><a href="man/mad_strip.htm">mad_strip</a></b> &mdash; MAD Strip</div></li>
  157. </ul>
  158. </div>
  159. <figure><code>
  160. $ mad strip
  161. </code></figure>
  162. </section>
  163. <section>
  164. <a name=docs><h3>PLAN</h3></a>
  165. <div>
  166. <ul>
  167. <li><b><a href="man/mad_resolve.htm">mad_resolve</a></b> &mdash; MAD Resolver</div></li>
  168. </ul>
  169. </div>
  170. <figure><code>
  171. $ mad plan
  172. </code></figure>
  173. </section>
  174. <section>
  175. <a name=docs><h3>BUNDLE</h3></a>
  176. <div>
  177. <ul>
  178. <li><b><a href="man/mad_release.htm">mad_release</a></b> &mdash; MAD Bundler</li>
  179. <li><b><a href="man/mad_escript.htm">mad_escript</a></b> &mdash; MAD ESCRIPT</li>
  180. <li><b><a href="man/mad_ling.htm">mad_ling</a></b> &mdash; MAD LING</li>
  181. <li><b><a href="man/mad_systools.htm">mad_systools</a></b> &mdash; MAD BEAM</li>
  182. </ul>
  183. </div>
  184. <figure><code>
  185. $ mad bundle script sample
  186. </code></figure>
  187. </section>
  188. <section>
  189. <a name=docs><h3>REPL</h3></a>
  190. <div>
  191. <ul>
  192. <li><b><a href="man/mad_repl.htm">mad_repl</a></b> &mdash; MAD REPL</div></li>
  193. </ul>
  194. </div>
  195. <figure><code>
  196. $ mad repl
  197. $ open http://127.0.0.1:8001
  198. </code></figure>
  199. </section>
  200. <section>
  201. <a name=docs><h3>Related Documents</h3></a>
  202. <div>
  203. <ul>
  204. <li><a href="https://n2o.space/articles/n2o.htm">N2O: PROTOCOL</a></li>
  205. <li><a href="https://n2o.space/articles/web.htm">N2O: SERVER</a></li>
  206. <li><a href="https://n2o.space/articles/history.htm">N2O: HISTORY</a></li>
  207. </ul></div>
  208. </section>
  209. </main>
  210. <footer>
  211. Made with <span class="heart">❤</span> to N2O
  212. </footer>
  213. </body>
  214. </html>