{ "info": { "author": "Rick Harding", "author_email": "rharding@canonical.com", "bugtrack_url": null, "classifiers": [], "description": "jsautobuild documentation\n==========================\n\nThis is meant to be used to help you write your own watching js builder\nscript. It provides the hooks and the pyinotify inclusion. You can tweak it to\nyour own specific application as required.\n\nUsage\n------\nYou need to build a simple script to use the builder. Below is an example\nscript that helps copy changed JS files to a build directory.\n\n::\n\n import os\n\n from jsautobuild import YUIBuilder\n\n\n def lp_path_builder(changed_path, **builder_props):\n \"\"\"The custom bit of LP code that determines where files get moved to\"\"\"\n # to start out let's assume your CWD is where we're referencing things from\n CWD = os.getcwd()\n JSDIR = os.path.join(CWD, builder_props['build_dir'])\n RENAME = re.compile(\"^.*lib/lp/(.*)/javascript\")\n\n match = RENAME.search(changed_path)\n js_dir = match.groups()[0]\n return os.path.join(JSDIR, RENAME.sub(js_dir, changed_path))\n\n\n if __name__ == \"__main__\":\n build_dir = 'build/js/lp'\n meta_name = 'LP_MODULES'\n watch_dir = 'lib'\n\n builder = YUIBuilder(lp_path_builder,\n build_dir,\n watch_dir=watch_dir,\n meta_jsmodule=meta_name)\n\n builder.run()\n\nOptions\n-------\n:build_callable:\nYou need a function that will accept the filename of the JS file that has\nchanged, and then return back the proper location of that file in the build\ndirectory.\n\n:build_dir:\nWhat is the root directory all build files are heading to. This is also used\nfor the meta.js generate code. It'll build a list of all modules in this build\ndirectory.\n\n:meta_jsmodule:\nWhat is the Javascript global variable name you want the meta file to be\ngenerated to. You'll use this in your own application to feed the module list\nto the YUI combo loader.\n\n:update_metajs:\n**default True**\nShould we rebuild the meta.js whenever a new .js file is created.\n\n:watch_dir:\n**default .**\nThis is the directory that is watched for all file changes and triggers the\nbuild of js files. By default it'll watch the current working directory and\nanything below that.\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.2\n---\n*Release date: 28-Feb-2012\n\n* Fix the requirements in setup.py\n\n\n0.1\n---\n\n*Release date: 27-Feb-2012*\n\n* Start the project to help build a JS auto building watcher.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "javascript yui build minify development", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "jsautobuild", "package_url": "https://pypi.org/project/jsautobuild/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jsautobuild/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/jsautobuild/0.2/", "requires_dist": null, "requires_python": null, "summary": "Auto build JS files using Pyinotify to help during development of JS in projects", "version": "0.2" }, "last_serial": 743321, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e5f3684d89169db72584f482ce35523c", "sha256": "638a5ad7b8fd42248f0a9435ceaef09a64a05b77f1c3b5d4e9721a4098943d43" }, "downloads": -1, "filename": "jsautobuild-0.1.tar.gz", "has_sig": false, "md5_digest": "e5f3684d89169db72584f482ce35523c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4096, "upload_time": "2012-02-28T19:14:43", "url": "https://files.pythonhosted.org/packages/fc/00/cf0a75d7aec75927715f2b1f9747a09bf711289157027a3c410556667fb9/jsautobuild-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "7cca44f2085727a7732909b3a08ee0bd", "sha256": "720256357eb4e282b539ea8ab803fe770ba3cf65911b71b53e120f4981a6ecd0" }, "downloads": -1, "filename": "jsautobuild-0.2.tar.gz", "has_sig": false, "md5_digest": "7cca44f2085727a7732909b3a08ee0bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4244, "upload_time": "2012-02-28T19:50:03", "url": "https://files.pythonhosted.org/packages/ff/23/50390d61ca1dda2a12bd60831ad3a63a98dccea16494969285a705c7250b/jsautobuild-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7cca44f2085727a7732909b3a08ee0bd", "sha256": "720256357eb4e282b539ea8ab803fe770ba3cf65911b71b53e120f4981a6ecd0" }, "downloads": -1, "filename": "jsautobuild-0.2.tar.gz", "has_sig": false, "md5_digest": "7cca44f2085727a7732909b3a08ee0bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4244, "upload_time": "2012-02-28T19:50:03", "url": "https://files.pythonhosted.org/packages/ff/23/50390d61ca1dda2a12bd60831ad3a63a98dccea16494969285a705c7250b/jsautobuild-0.2.tar.gz" } ] }