UNPKG

1.05 kBMarkdownView Raw
1# Contributing
2
3Thanks for your interest in classNames. Issues, PRs and suggestions welcome :)
4
5Before working on a PR, please consider the following:
6
7* Speed is a serious concern for this package as it is likely to be called a
8significant number of times in any project that uses it. As such, new features
9will only be accepted if they improve (or at least do not negatively impact)
10performance.
11* To demonstrate performance differences please set up a
12[JSPerf](http://jsperf.com) test and link to it from your issue / PR.
13* Tests must be added for any change or new feature before it will be accepted.
14
15A benchmark utilitiy is included so that changes may be tested against the
16current published version. To run the benchmarks, `npm install` in the
17`./benchmarks` directory then run `npm run benchmarks` in the package root.
18
19Please be aware though that local benchmarks are just a smoke-signal; they will
20run in the v8 version that your node/iojs uses, while classNames is _most_
21often run across a wide variety of browsers and browser versions.