File: contributing.rst

package info (click to toggle)
node-raven-js 3.22.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,864 kB
  • sloc: javascript: 10,128; makefile: 144; python: 34
file content (117 lines) | stat: -rw-r--r-- 2,848 bytes parent folder | download | duplicates (2)
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
111
112
113
114
115
116
117
Contributing
============

This part of the documentation gives you a basic overview of how to help
with the development of Raven.js.

Setting up an Environment
-------------------------

To run the test suite and run our code linter, node.js and npm are
required. If you don't have node installed, `get it here
<http://nodejs.org/download/>`_ first.

Installing all other dependencies is as simple as:

.. code-block:: sh

    $ npm install

And if you don't have `Grunt <http://gruntjs.com/>`_ already, feel free to
install that globally:

.. code-block:: sh

    $ npm install -g grunt-cli

Running the Test Suite
~~~~~~~~~~~~~~~~~~~~~~

The test suite is powered by `Mocha
<http://visionmedia.github.com/mocha/>`_ and can both run from the command
line, or in the browser.

From the command line:

.. code-block:: sh

    $ npm run test

From your browser:

.. code-block:: sh

    $ grunt run:test

Then visit: http://localhost:8000/test/

Compiling Raven.js
~~~~~~~~~~~~~~~~~~

The simplest way to compile your own version of Raven.js is with the
supplied grunt command:

.. code-block:: sh

    $ grunt build

By default, this will compile raven.js and all of the included plugins.

If you only want to compile the core raven.js:

.. code-block:: sh

    $ grunt build.core

Files are compiled into ``build/``.

Contributing Back Code
~~~~~~~~~~~~~~~~~~~~~~

Please, send over suggestions and bug fixes in the form of pull requests
on `GitHub <https://github.com/getsentry/raven-js>`_. Any nontrivial
fixes/features should include tests.  Do not include any changes to the
``dist/`` folder or bump version numbers yourself.

Documentation
-------------

The documentation is written using `reStructuredText
<http://en.wikipedia.org/wiki/ReStructuredText>`_, and compiled using
`Sphinx <http://sphinx-doc.org/>`_. If you don't have Sphinx installed,
you can do it using following command (assuming you have Python already
installed in your system):

.. code-block:: sh

    $ pip install sphinx

Documentation can be then compiled by running:

.. code-block:: sh

    $ make docs

Afterwards you can view it in your browser by running following command
and than pointing your browser to http://127.0.0.1:8000/:

.. code-block:: sh

    $ grunt run:docs


Releasing New Version
~~~~~~~~~~~~~~~~~~~~~

* Bump version numbers in ``package.json``, ``bower.json``, and ``src/raven.js``.
* ``$ grunt dist`` This will compile a new version and update it in the
  ``dist/`` folder.
* Confirm that build was fine, etc.
* Commit new version, create a tag. Push to GitHub.
* ``$ grunt publish`` to recompile all plugins and all permutations and
  upload to S3.
* ``$ npm publish`` to push to npm.
* Confirm that the new version exists behind ``cdn.ravenjs.com``
* Update version in the ``gh-pages`` branch specifically for
  http://ravenjs.com/.
* glhf