This repository was archived by the owner on Feb 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathcontributing.html
110 lines (90 loc) · 2.84 KB
/
contributing.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<h3><a href="#contributing">Contributing</a></h3>
<p>
Development happens
on <a href="https://github.com/fitzgen/wu.js">GitHub</a>. Include
test(s) and documentation updates in your pull requests.
</p>
<p>
File bugs and feature requests in
the <a href="https://github.com/fitzgen/wu.js/issues">GitHub issue
tracker</a>. When filing bugs, include:
</p>
<ul>
<li>
Whether the bug occurs in the normal ES6 version, the compiled ES5
version, or both and what environment (eg specific browser or node
version).
</li>
<li>
A testcase and steps to reproduce the bug with the testcase.
</li>
<li>
The expected results of executing the above steps.
</li>
<li>
The actual results of executing the above steps.
</li>
</ul>
<section id="building">
<h4><a href="#building">Building</a></h4>
<p>
To compile <code>wu.js</code> and its tests to ES5 using the Babel compiler,
run:
</p>
<pre><code>$ npm run build</code></pre>
<p>
This command regenerates:
</p>
<ul>
<li>
<code>dist/wu.js</code> — The ES5 compatible version of <code>wu.js</code>.
</li>
<li>
<code>dist/wu.debug.js</code> — The ES5 compatible version of <code>wu.js</code> with
an inline source map included.
</li>
<li>
<code>dist/wu.min.js</code> — The minified ES5 compartible version of <code>wu.js</code>.
</li>
</ul>
</section>
<section id="tests">
<h4><a href="#tests">Tests</a></h4>
<h5>Running the Test Suite</h5>
<pre><code>$ npm test</code></pre>
<h5>Creating New Tests</h5>
<p>
To add a new test, find or create the appropriate file
in <code>test/test-X.js</code>. <a href="http://visionmedia.github.io/mocha/">Mocha</a>
is the test
runner. <a href="http://chaijs.com/api/assert/">Chai's <code>assert</code>
module</a> is used for assertions.
</p>
</section>
<section id="documentation">
<h4><a href="#documentation">Documentation</a></h4>
<p>
This documentation is created with the static site generator
<a href="http://jekyllrb.com/">Jekyll</a>. To set up jekyll, run:
</p>
<pre><code>$ gem install jekyll bundler
$ cd path/to/wu.js
$ bundle install</code></pre>
<p>
Once Jekyll is set up, to serve the docs locally and automatically
recompile them on change, run:
</p>
<pre><code>$ npm run docs</code></pre>
<p>
The documentation will be served
at <a href="http://0.0.0.0:4000">http://0.0.0.0:4000</a>.
</p>
<p>
The sources for this documentation live in <code>index.html</code>
and markdown files in the <code>_posts</code>
directory. Each <code>wu</code> method has its own markdown file
in the <code>_posts</code> directory, and the table of contents
for the<code>wu</code> methods is generated automatically. The CSS
styles live in <code>index.css</code>.
</p>
</section>