{ "info": { "author": "Rick Harding", "author_email": "rharding@canonical.com", "bugtrack_url": null, "classifiers": [], "description": "lpjsmin for minifying js files\n===============================\n\nWe need to handle several minification goals within the Launchpad codebase.\nThis helps to create a single lib to help handle all of the cases and allow it\nto be flexibly used in more projects.\n\n\nUsage\n-----\n\ncmd line\n~~~~~~~~~\nYou can pass the cmd line `lpjsmin` either a filename or a directory and it'll\nprocess the file(s) adding a $fname-min.js next to the original file. This is\nused for things like minifying files in the combo directory. You can just let\nit know the root of the combo directory and it'll minify all files it finds in\nthere.\n\n::\n\n $ lpjsmin -p static/js/\n $ lpjsmin -p static/js/myapp.js\n\npython usage\n~~~~~~~~~~~~\nYou can import the module and minify in your own build scripts either via just\nfilename and directory.\n\n::\n\n import lpjsmin\n lpjsmin.minify('static/js')\n lpjsmin.minify('static/js/myapp.js')\n\nIf you need to be able to customize the name or location of the minified\nfiles, wrap the lpjsmin script in your own build script and pass it the in/out\nstreams.\n\n::\n\n import lpjsmin\n lpjsmin.minify_stream(\n open('static/js/myapp.js'),\n open('/tmp/myapp.minified.js', 'w')\n )\n\nstdin\n~~~~~~\nYou can also just pass text at the script via stdin and it'll minimze it back\nout to you.\n\n::\n\n $ cat file.js | lpjsmin\n\n\n.. This is your project NEWS file which will contain the release notes.\n.. Example: http://www.python.org/download/releases/2.6/NEWS.txt\n.. The content of this file, along with README.rst, will appear in your\n.. project's PyPI page.\n\nNews\n====\n\n0.5\n---\n*Release date: 11-June-2012*\n\n* Ignore any files that don't end in .js\n* Fix broken logic detecting if this file was already minified or not that\n allowed multiple nested minifications (filename-min-min-min.js)\n\n\n0.4\n---\n*Release date: 21-Feb-2012*\n\n* Fix typo in the setup.py\n\n\n0.3\n----\n*Release date: 21-Feb-2012*\n\n* Add argparse as a conditional dep for older Python versions.\n\n\n0.2\n----\n*Release date: 21-Feb-2012*\n\n* Move the file/directory based minifying to the -p/--path cmd line flag.\n* Support minifying off of stdin and sending to stdout if no path is\n specified.\n* Fix the ipdb dependency that should not have been there.\n\n0.1\n---\n\n*Release date: 17-Feb-2012*\n\n* Initial pulling out of the Launchpad utils directory.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://launchpad.net/lpjsmin", "keywords": "javascript minification compress", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "lpjsmin", "package_url": "https://pypi.org/project/lpjsmin/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lpjsmin/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://launchpad.net/lpjsmin" }, "release_url": "https://pypi.org/project/lpjsmin/0.5/", "requires_dist": null, "requires_python": null, "summary": "JS Min script that provides cmd line and python processors", "version": "0.5" }, "last_serial": 5354861, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "68a1f471cee839319dc3a495e3c2f3b3", "sha256": "09996298a49bd12d2e3c2e57a25c5e415631bed18d956b159045df94560c454a" }, "downloads": -1, "filename": "lpjsmin-0.1.tar.gz", "has_sig": false, "md5_digest": "68a1f471cee839319dc3a495e3c2f3b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5135, "upload_time": "2012-02-21T19:19:45", "url": "https://files.pythonhosted.org/packages/60/73/c44a4a04bb20a3048b25937c1ace20510cb7f516016ee708bf3057016f7a/lpjsmin-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "47aafb7638288979f64664404f746517", "sha256": "89234a8dac183b2d73b722a52f7533d76bfe2ff5cd80950e5770f19a51df1e03" }, "downloads": -1, "filename": "lpjsmin-0.2.tar.gz", "has_sig": false, "md5_digest": "47aafb7638288979f64664404f746517", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5543, "upload_time": "2012-02-21T20:17:13", "url": "https://files.pythonhosted.org/packages/2e/cb/93d53c1e6c2debe903fba65232c7fd2a5ce17172c5b0acbf75a56bc8e15f/lpjsmin-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7c3763658188a11c720e8ced6695e1c8", "sha256": "51a27223f0966a027980f3ba27d2a3582dd1815a9a9a8d997cdeb24f120c55b7" }, "downloads": -1, "filename": "lpjsmin-0.3.tar.gz", "has_sig": false, "md5_digest": "7c3763658188a11c720e8ced6695e1c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5580, "upload_time": "2012-02-21T21:01:04", "url": "https://files.pythonhosted.org/packages/28/2a/9d726aab30a7e95a3b1655b35b5f5a8f05dc19d4158cbd8ba1a62e155cf7/lpjsmin-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "4fc86908f3e3dc4125bafc209448d26d", "sha256": "c8a9689fcb644d523fb756d433b13bb13aab87cdcf6861c1d5731b3d678258e5" }, "downloads": -1, "filename": "lpjsmin-0.4.tar.gz", "has_sig": false, "md5_digest": "4fc86908f3e3dc4125bafc209448d26d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5610, "upload_time": "2012-02-21T21:30:07", "url": "https://files.pythonhosted.org/packages/f6/99/4e51b1fd8f34d958b44674cb2525fc02868c261588ca4647aab1186794c8/lpjsmin-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "482a729d728ce77e9bfde08782b27ea7", "sha256": "80bd80521340548609f2d22a2128c09866892309c9f777ab7e56bde8f6b028ee" }, "downloads": -1, "filename": "lpjsmin-0.5.tar.gz", "has_sig": false, "md5_digest": "482a729d728ce77e9bfde08782b27ea7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5760, "upload_time": "2012-06-11T16:01:34", "url": "https://files.pythonhosted.org/packages/30/6a/e019c2ee2b95200dd921ad289da6c35983eb594cbb012a7e034ac97136cf/lpjsmin-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "482a729d728ce77e9bfde08782b27ea7", "sha256": "80bd80521340548609f2d22a2128c09866892309c9f777ab7e56bde8f6b028ee" }, "downloads": -1, "filename": "lpjsmin-0.5.tar.gz", "has_sig": false, "md5_digest": "482a729d728ce77e9bfde08782b27ea7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5760, "upload_time": "2012-06-11T16:01:34", "url": "https://files.pythonhosted.org/packages/30/6a/e019c2ee2b95200dd921ad289da6c35983eb594cbb012a7e034ac97136cf/lpjsmin-0.5.tar.gz" } ] }