{"id":19951657,"url":"https://github.com/grimen/guard-packr","last_synced_at":"2025-07-26T23:36:02.880Z","repository":{"id":66311436,"uuid":"2081283","full_name":"grimen/guard-packr","owner":"grimen","description":"Guard for javascript compession/obfuscation using Packr. NOTE: Not maintained.","archived":false,"fork":false,"pushed_at":"2011-07-21T02:36:45.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T06:11:21.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grimen.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-21T01:30:07.000Z","updated_at":"2013-10-21T07:23:05.000Z","dependencies_parsed_at":"2023-02-20T02:00:59.349Z","dependency_job_id":null,"html_url":"https://github.com/grimen/guard-packr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimen%2Fguard-packr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimen%2Fguard-packr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimen%2Fguard-packr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grimen%2Fguard-packr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grimen","download_url":"https://codeload.github.com/grimen/guard-packr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241381521,"owners_count":19953749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T01:08:59.432Z","updated_at":"2025-03-01T14:44:12.969Z","avatar_url":"https://github.com/grimen.png","language":"Ruby","readme":"h1. GUARD-PACKR *alpha*\n\n_Guard::Packr automatically compresses/obfuscates javascript files when modified (using Guard + Packr)._\n\nh2. Installation\n\nAdd to your @Gemfile@:\n\n\u003cpre\u003e\n  gem 'guard-packr'\n\u003c/pre\u003e\n\n...and @bundle install@.\n\n*Dependencies:*\n\n* *\"guard\":http://github.com/guard/guard*\n* *\"packr\":http://github.com/jcoglan/packr*\n\n...you will need, but installed by *Bundler* they will be. - Yoda\n\nh2. Setup\n\nUse the *Guard* generator:\n\n\u003cpre\u003e\n  $ guard init packr\n\u003c/pre\u003e\n\n...to generate default *Packr*-guard (with notes) into your @Guardfile@\n\nh2. Usage\n\nIn your @Guardfile@, something like:\n\n\u003cpre\u003e\n  guard 'packr', :extension =\u003e '.packed.js', :shrink_vars =\u003e true, :private =\u003e true, :base62 =\u003e false, :protect =\u003e %w[_this that] do\n    # == IMPORTANT:\n    #\n    #   - Ensure that you don't write rules that owerwrite your source files!\n    #     To avoid that either use custom \"extension\" (see above), or temporarily\n    #     generated files as source (e.g. app/assets/javascripts =\u003e tmp/javascripts).\n    #\n    #   - This guard should be placed after any javascript processing (guard-sprockets, guard-jammit, etc.)\n    #     within your Guardfile - naturally (Packr makes no sense for pre-processing javascript).\n    #\n    watch('tmp/javascripts/.*\\.js')\n  end\n\u003c/pre\u003e\n\nTo read more about the *Packr*-options, see \"Packr\":https://github.com/jcoglan/packr.\n\nWhen in doubt, see \"Guard\":https://github.com/guard/guard.\n\nh2. Options\n\n\u003cpre\u003e\n  :extension    =\u003e '.packed.js'     # File-extension for the packed javascript file.\n  :shrink_vars  =\u003e true,            # Compress local variable names.\n  :private      =\u003e true,            # Obfuscate 'private' identifiers, i.e. names beginning with a single underscore.\n  :base62       =\u003e false,           # Encode the program using base 62.\n  :protect      =\u003e %w[_this that]   # Variable names to protect from compression.\n\u003c/pre\u003e\n\nh2. Notes\n\nThis gem was developed for a tiny special case at *\"Merchii\":http://github.com/merchii*, so feel free to send pull-requests with enhancements of any kind (features, bug-fixes, documentation, tests, etc.) to make it better or useful for you as well.\n\nh2. License\n\nReleased under the MIT license.\nCopyright (c) \"Merchii\":http://github.com/merchii, \"Jonas Grimfelt\":http://github.com/grimen\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimen%2Fguard-packr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrimen%2Fguard-packr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrimen%2Fguard-packr/lists"}