{ "info": { "author": "cocopon & OrgaChem", "author_email": "cocopon@me.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Topic :: Utilities" ], "description": "Googkit\n=======\n\n\n.. image:: https://pypip.in/v/googkit/badge.png\n :target: https://crate.io/packages/googkit\n\n.. image:: https://secure.travis-ci.org/googkit/googkit.png?branch=master\n :target: http://travis-ci.org/googkit/googkit\n\n\n\n\nOverview\n--------\nGoogkit is an easy way to use Google Closure Library.\nYou can setup only two commands, so start developing quickly.\nYou can also do such a complicated compiling ... at one blow!\n\n\nRequirements\n~~~~~~~~~~~~\nGoogkit requires Following commands.\nInstall them if not installed yet.\n\n:Git: downloads Closure Library\n:Python: executes Closure Tools\n\n\n\n\nInstall Googkit\n---------------\nFirst, you need to install Googkit.\n\n\nLinux or OS X\n~~~~~~~~~~~~~\n\n1. Download and extract `the latest version of Googkit `_\n\n\n2. Put it into a preferred place::\n\n $ mv googkit /usr/local\n\n\n3. Add environment variables::\n\n export GOOGKIT_HOME=/usr/local/googkit\n export PATH=$PATH:$GOOGKIT_HOME/bin\n\n\nWindows\n~~~~~~~\n\n1. Download and extract `the latest version of Googkit `_\n\n\n2. Put it into a preferred place::\n\n $ move googkit C:\\\n\n\n3. Add environment variables\n\n +------------------+--------------------------------+\n | Variable | Value |\n +==================+================================+\n | ``GOOGKIT_HOME`` | ``C:\\googkit`` |\n | ``PATH`` | Append ``;%GOOGKIT_HOME%\\bin`` |\n +------------------+--------------------------------+\n\n\n\n\nGetting Started\n---------------\n1. Create a project directory and initialize::\n\n $ mkdir my_project\n $ cd my_project\n $ googkit init\n\n\n2. Download Closure Tools::\n\n $ googkit setup\n\n\n3. Develop your web app in ``development/``\n\n Modify existing scripts, or add your awesome scripts\n to ``development/js_dev``.\n\n After adding/removing scripts, you need to update dependency information::\n\n $ googkit ready\n\n\n4. Build your project\n\n Building the project including JavaScript files compilation improves\n performance and makes them unreadable::\n\n $ googkit build\n\n If it succeed, output files will be stored in ``production/``.\n\n\n\n\nProject Structure\n-----------------\n:googkit.cfg: config file of the project\n:closure/: stores Closure Tools\n:development/: for development\n:debug/: for debug (it will be created if debug is enabled)\n:production/: for production\n\n\n\n\nRunning Unit Tests\n------------------\nYou can run `jsunit-style `_\nunit tests.\n\n\n1. Create a HTML file for testing\n\n Copy `example_test.html `_\n into the same directory as the target, then rename it to\n ``{target_name}_test.html``.\n\n If you don't like the default name ``{target_name}_test.html``, you can\n change it by ``test_file_pattern`` in ``googkit.cfg``.\n\n\n2. Write unit tests\n\n\n3. Apply config changes and update dependency information::\n\n $ googkit ready\n\n\n4. Run unit tests\n\n Open the test html file in your browser.\n\n If you want to run all tests, open ``development/all_tests.html``\n in your browser with **http scheme** (doesn't work with file scheme).\n\n\n\n\nTips\n----\n\n\nRenaming a Compiled Script\n~~~~~~~~~~~~~~~~~~~~~~~~~~\nEdit ``compiled_js`` in ``googkit.cfg``.\nAfter editing, apply it with a following command::\n\n $ googkit ready\n\n\nPreventing Some Scripts from Compiling\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nPlace them outside ``development/js_dev``.\nScripts that are in it will be compiled and removed in production.\n\n\nDebugging a Compiled Source\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\nChange ``is_debug_enabled`` to ``yes`` in ``googkit.cfg`` and build it::\n\n $ googkit build\n\nThen you can use debugging features in ``debug/``.\nThis option makes compilation slow.\n\n\nUsing Source Map\n~~~~~~~~~~~~~~~~\nGoogkit generates a source map file ``script.min.js.map`` within ``debug/``,\nso you can use `Source Map V3 `_\nif your browser supports it.\n\nFor reason of obfuscation, source map file will **NOT** be stored\nin ``production/``.\n\n\n\n\nMisc\n----\n\n\nThe Googkit team\n~~~~~~~~~~~~~~~~\n- cocopon (cocopon@me.com)\n- OrgaChem (orga.chem.job@gmail.com)\n\n\nLicense\n~~~~~~~\nGoogkit are licensed under MIT License.\nSee ``LICENSE.txt`` for more information.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/googkit/googkit", "keywords": "", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "googkit", "package_url": "https://pypi.org/project/googkit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/googkit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/googkit/googkit" }, "release_url": "https://pypi.org/project/googkit/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Easier way to develop your web app with Google Closure Library", "version": "0.2.0" }, "last_serial": 937640, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "1ba0f1a5aef8846d97dbc13e87950877", "sha256": "4e716a566f4900f3b4c90bc070a5928b23153a30583bbadfb227d8690bd767e4" }, "downloads": -1, "filename": "googkit-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1ba0f1a5aef8846d97dbc13e87950877", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19020, "upload_time": "2013-11-02T04:05:21", "url": "https://files.pythonhosted.org/packages/c3/a7/d1b6b131000f9c6cc4be9895a792d76e25880ef2c2dd3f36e60dac639073/googkit-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "37a3de3edcb62b1276e9b8b6d1129cc7", "sha256": "0f6bc40f44cf266c82df9c268412fc9077fb018cec19be46ee81830599b61693" }, "downloads": -1, "filename": "googkit-0.1.2.tar.gz", "has_sig": false, "md5_digest": "37a3de3edcb62b1276e9b8b6d1129cc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19207, "upload_time": "2013-11-21T11:38:29", "url": "https://files.pythonhosted.org/packages/af/0e/e953a25000c2f56ef0602461aa4df6357287dcdcb8a7b10a5d1481587499/googkit-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "29fd4068b5819e547c10d8a24edee6de", "sha256": "f86269d7f118aef011a8cc857ec1db21ed4f0dced1bd3583803efcb819f561f7" }, "downloads": -1, "filename": "googkit-0.2.0.tar.gz", "has_sig": false, "md5_digest": "29fd4068b5819e547c10d8a24edee6de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21022, "upload_time": "2013-12-06T14:55:17", "url": "https://files.pythonhosted.org/packages/a1/fc/abe16f9eeefb858e79c138504218118b7a47416b69ab2ced63351c617f18/googkit-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "29fd4068b5819e547c10d8a24edee6de", "sha256": "f86269d7f118aef011a8cc857ec1db21ed4f0dced1bd3583803efcb819f561f7" }, "downloads": -1, "filename": "googkit-0.2.0.tar.gz", "has_sig": false, "md5_digest": "29fd4068b5819e547c10d8a24edee6de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21022, "upload_time": "2013-12-06T14:55:17", "url": "https://files.pythonhosted.org/packages/a1/fc/abe16f9eeefb858e79c138504218118b7a47416b69ab2ced63351c617f18/googkit-0.2.0.tar.gz" } ] }