{"id":20073537,"url":"https://github.com/ragingwind/grunt-chrome-manifest","last_synced_at":"2025-08-08T18:51:10.206Z","repository":{"id":7891436,"uuid":"9269272","full_name":"ragingwind/grunt-chrome-manifest","owner":"ragingwind","description":"grunt plugin for chrome manifest to minify","archived":false,"fork":false,"pushed_at":"2016-04-19T16:10:15.000Z","size":342,"stargazers_count":33,"open_issues_count":5,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T06:38:01.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ragingwind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-07T01:11:08.000Z","updated_at":"2016-10-31T04:05:14.000Z","dependencies_parsed_at":"2022-09-03T09:51:17.466Z","dependency_job_id":null,"html_url":"https://github.com/ragingwind/grunt-chrome-manifest","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fgrunt-chrome-manifest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fgrunt-chrome-manifest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fgrunt-chrome-manifest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fgrunt-chrome-manifest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragingwind","download_url":"https://codeload.github.com/ragingwind/grunt-chrome-manifest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579993,"owners_count":21771248,"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-13T14:46:40.432Z","updated_at":"2025-05-05T21:30:52.297Z","avatar_url":"https://github.com/ragingwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-chrome-manifest\n\n\u003e Grunt task for Chrome manifest.json\n\n## Getting Started\n\nIf you haven't used [grunt][] before, be sure to check out the [Getting Started][] guide, as it explains how to create a [gruntfile][Getting Started] as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:\n\n```shell\nnpm install grunt-chrome-manifest --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-chrome-manifest');\ngrunt.registerTask('default', ['chromeManifest:dist']);\n```\n\n[grunt]: http://gruntjs.com/\n[Getting Started]: https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md\n\n## Workflow\n\nchrome-manifest is composed of 3 steps:\n\n- **prepare**: detects `background` and `content_script` javascript and css files in manifest and update the grunt config to run `concat` `cssmin` and `uglify`.\n  - `content_scripts` javascript files and excluded 'background' javascript files does not perform the `concat` task.\n- **buildnumber**: detects `buildnumber` and increased if set to true.\n- **cleanup**: detects javascripts files for develop in manifest and remove them from manifest.json for distribution.\n\n## Documentation\n\n### Example usage\n```javascript\nchromeManifest: {\n  dist: {\n    options: {\n      buildnumber: 'both',\n      background: {\n        target: 'scripts/background.js',\n        exclude: [\n          'background/scripts/chromereload.js'\n        ]\n      }\n    },\n    src: 'app',\n    dest: 'dist',\n    manifest: 'app/manifest.json'\n  }\n};\n```\n\n### Config\n\n#### src\n**Required**\nType: `String`\n\nBase directory where the origin source files\n\n#### dest\n**Required**\nType: `String`\n\nBase directory where the transformed files should be output.\n\n#### manifest\nType: `String`\n\nPath of the source of `manifest.json`. If it's not set the plugin will be going to read `manifest.json` in `src` path\n\n### Options\n#### buildnumber\nType: `String` `Boolean` Default: `undefined`, `false`\n\nAuto-increment types. Can be:\n\n  - `dest`: increase build number in dest only\n  - `both`: increase build number in both origin and dest\n  - `String`: version in [this format](http://developer.chrome.com/apps/manifest/version)\n  - `undefined`, `false`: do not increase build number\n\n#### background\n\n- target: `String`, Relative path of the transformed(`cssmin` and `uglify`) background script.\n- exclude: `String`, Javascript files to exclude.\n\n#### overwrite\nType: `Object` Default: `undefined`\n\nOverwrite in manifest keys from object.\n\n#### removeFields\nType: `Array[String]` Default: `['key']`\n\nRemove fields from manifest.json. The key field is removed by default as it is not allowed by the chrome webstore.\n\n## Tests\n\nGrunt currently doesn't have a way to test tasks directly. You can test this task by running `grunt` and manually verify that it works.\n\n## License\n\nMIT © [Jimmy Moon](http://ragingwind.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fgrunt-chrome-manifest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragingwind%2Fgrunt-chrome-manifest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fgrunt-chrome-manifest/lists"}