From 3f41d4ade1401421756550dc0cdf0046677c7f08 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 22 Dec 2015 17:03:30 +0000 Subject: Import python-jsmin_2.2.0.orig.tar.gz --- README.rst | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index ade024a..e7a5755 100644 --- a/README.rst +++ b/README.rst @@ -17,46 +17,63 @@ You can run it as a commandline tool also:: python -m jsmin myfile.js +NB: ``jsmin`` makes no attempt to be compatible with +`ECMAScript 6 / ES.next / Harmony `_. +The current maintainer does not intend to add ES6-compatibility. If you would +like to take over maintenance and update ``jsmin`` for ES6, please contact +`Tikitu de Jager `_. Pull requests are also +welcome, of course, but my time to review them is somewhat limited these days. + +If you're using ``jsmin`` on ES6 code, though, you might find the ``quote_chars`` +parameter useful: + +.. code:: python + + from jsmin import jsmin + with open('myfile.js') as js_file: + minified = jsmin(js_file.read(), quote_chars="'\"`") + + Where to get it =============== * install the package `from pypi `_ -* get the latest release `from the stable branch on bitbucket `_ -* get the development version `from the default branch on bitbucket `_ +* get the latest release `from latest-release on github `_ +* get the development version `from master on github `_ Contributing ============ -`Issues `_ and `Pull requests `_ -will be gratefully received on Bitbucket. Pull requests on github are great too, but the issue tracker lives on -bitbucket. +`Issues `_ and `Pull requests `_ +will be gratefully received on Github. The project used to be hosted +`on bitbucket `_ and old issues can still be +found there. -If possible, please make separate pull requests for tests and for code: tests will be committed on the stable branch -(which tracks the latest released version) while code will go to default by, erm, default. +If possible, please make separate pull requests for tests and for code: tests will be added to the `latest-release` branch while code will go to `master`. -Unless you request otherwise, your Bitbucket identity will be added to the contributor's list below; if you prefer a +Unless you request otherwise, your Github identity will be added to the contributor's list below; if you prefer a different name feel free to add it in your pull request instead. (If you prefer not to be mentioned you'll have to let the maintainer know somehow.) Build/test status ================= -Both default and stable branches are tested with Travis: https://travis-ci.org/tikitu/jsmin +Both branches are tested with Travis: https://travis-ci.org/tikitu/jsmin -Stable (latest released version plus any new tests) is tested against CPython 2.6, 2.7, 3.2, and 3.3. +The `latest-release` branch (the version on PyPI plus any new tests) is tested against CPython 2.6, 2.7, 3.2, and 3.3. Currently: -.. image:: https://travis-ci.org/tikitu/jsmin.png?branch=ghstable +.. image:: https://travis-ci.org/tikitu/jsmin.png?branch=latest-release -If stable is failing that means there's a new test that fails on *the latest released version on pypi*, with no fix yet +If that branch is failing that means there's a new test that fails on *the latest released version on pypi*, with no fix yet released. -Default (development version, might be ahead of latest released version) is tested against CPython 2.6, 2.7, 3.2, and +The `master` branch (development version, might be ahead of latest released version) is tested against CPython 2.6, 2.7, 3.2, and 3.3. Currently: .. image:: https://travis-ci.org/tikitu/jsmin.png?branch=master -If default is failing don't use it, but as long as stable is passing the pypi release should be ok. +If `master` is failing don't use it, but as long as `latest-release` is passing the pypi release should be ok. Contributors (chronological commit order) ========================================= @@ -65,3 +82,6 @@ Contributors (chronological commit order) * `Hans weltar `_ * `Tikitu de Jager `_ (current maintainer) * https://bitbucket.org/rennat +* `Nick Alexander `_ +* `Gennady Kovshenin `_ +* `Matt Molyneaux `_ -- cgit v1.2.3