contrib.html
This file
Path
docs/contrib.html
240 lines · 6.2 KiB · HTML
Last changed by
Merge branch 'guide'Tj Holowaychukbefore adoptionf4a0809
History of this fileTake it
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241<html> <head> <title>Express - node web framework</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <style> #tagline { margin-left: 75px; margin-bottom: 30px; color: rgba(255,255,255,0.7); } html { background: #1c1c1c url(images/bg.tile.jpg); }
body { margin: 0; padding-bottom: 30px; font: 14px/1.4 "Helvetica Neue", "Lucida Grande", "Arial"; font-size: 14px; line-height: 1.5; -webkit-text-stroke: 1px rgba(0, 0, 0, 0.1); -moz-text-stroke: 1px rgba(0, 0, 0, 0.1); background: url(images/bg.jpg) 50% 0 no-repeat; color: #8b8b8b; }
* { outline: none; }
em { color: white; }
a img { border: none !important; }
a { font-weight: bold; text-decoration: none; color: white; -webkit-transition-property: opacity, -webkit-transform, color, background-color, padding, -webkit-box-shadow; -webkit-transition-duration: 0.15s; -webkit-transition-timing-function: ease-out; } a:hover { opacity: 0.8; }
h1, h2, h3 { margin: 45px 0 0 0; color: white; text-shadow: 1px 2px 2px rgba(0,0,0,0.6); }
h3 { font-size: 18px; }
pre { margin: 20px 10px; padding: 25px 20px; background: rgba(0,0,0,0.5); border: 1px solid #323232; -webkit-box-shadow: 1px 2px 2px rgba(0,0,0,0.6); -moz-box-shadow: 1px 2px 2px rgba(0,0,0,0.6); -webkit-border-radius: 5px; -moz-border-radius: 5px; }
code { font-family: "Helvetica Neue", "Lucida Grande", "Arial"; }
ul { margin: 15px 0; padding: 0 0 0 35px; } ul li { margin: 0; padding: 2px 0; list-style: square; } ul li ul { margin: 0; padding-left: 12px; }
.man-name, #Express { display:none; }
.sect { margin-left: 40px; }
#logo { display: block; margin-left: 30%; margin-bottom: 30px; width: 194px; height: 51px; background: url(images/logo.png) 0 0 no-repeat; text-indent: -99999px; } #logo:hover { opacity: 0.7; } #logo:active { opacity: 0.3; }
#ribbon { position: fixed; top: 0; right: 0; z-index: 2; }
#wrapper { width: 100%; min-height: 800px; background: url(images/top.png) 0 0 repeat-x; }
#container { margin: 0 auto; padding-top: 80px; width: 550px; }
#toc { position: fixed; top: 0; left: 0; margin: 0 0 0 15px; padding: 15px; height: 100%; background: rgba(0,0,0,0.2); overflow: auto; border-right: 1px solid rgba(255,255,255,0.05); } #toc li { padding: 0; list-style: none; } #toc li a { font-size: 11px; } #menu { margin-left: 65px; padding: 0; padding-bottom: 30px; } #menu li { display: inline; list-style: none; } #menu li a { display: block; float: left; margin: 0 2px; padding: 3px 15px; background: rgba(0,0,0,0.2); -webkit-border-radius: 8px; -moz-border-radius: 8px; -webkit-box-shadow: 1px 2px 2px rgba(0,0,0,0.6); -moz-box-shadow: 1px 2px 2px rgba(0,0,0,0.6); -webkit-transition-property: opacity, -webkit-transform, color, background-color, -webkit-box-shadow; -webkit-transition-duration: 0.15s; -webkit-transition-timing-function: ease-out; } #menu li a:hover, #menu li a.active { background: rgba(0,0,0,0.5); } #menu li a:active { background: rgba(0,0,0,0.1); -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.4); -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.4); } </style> <script> $(function(){ $('.section').hide(); $('.toggle, a.section-title').toggle(function(){ $(this).siblings('ul').fadeIn(300); return false; }, function(){ $(this).siblings('ul').fadeOut(300); return false; }); }); </script> </head> <body> <a href='http://github.com/visionmedia/express'> <img alt='Fork me on GitHub' id='ribbon' src='http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png' /> </a> <div id="wrapper"> <div id="container"> <a href='http://github.com/visionmedia/express' id='logo'>Express</a> <p id="tagline"> High performance, high class web development for <a href="http://nodejs.org">Node.js</a> </p> <ul id="menu"> <li><a href="index.html">Home</a></li> <li><a href="guide.html">Guide</a></li> <li><a href="contrib.html">Contributing</a></li> <li><a href="migrate.html">1.x Migration</a></li> </ul><div class='mp'><h2 id="Express">Express</h2><p class="man-name"> <code>contrib</code></p><h3 id="Development-Dependencies">Development Dependencies</h3>
<p>Express development dependencies are stored within the <em>./support</em> directory. Toupdate them execute:</p>
<pre><code>$ git submodule update --init</code></pre>
<h3 id="Running-Tests">Running Tests</h3>
<p>Express uses the <a href="http://github.com/visionmedia/expresso">Expresso</a> TDDframework to write and run elegant test suites extremely fast. To run all test suitessimply execute:</p>
<pre><code>$ make test</code></pre>
<p>To target specific suites we may specify the files via:</p>
<pre><code>$ make test TESTS=test/view.test.js</code></pre>
<p>To check test coverage run:</p>
<pre><code>$ make test-cov</code></pre>
<h3 id="Contributions">Contributions</h3>
<p>To accept a contribution, you should follow these guidelines:</p>
<ul><li>All tests <em>must</em> pass</li><li>Your alterations or additions <em>must</em> include tests</li><li>Your commit(s) should be <em>focused</em>, do not commit once for several changes</li><li>Do <em>not</em> alter release information such as the <em>version</em>, or <em>History.md</em></li><li>Indents are <em>4</em> spaces.</li></ul>
<h3 id="Documentation">Documentation</h3>
<p>To contribute documentation edit the markdown files in <em>./docs</em>, howeverdo <em>not</em> run <em>make docs</em>, as they will be re-built and published with each release.</p>
</div> </div> </div> </body></html>