{"id":24976879,"url":"https://github.com/rezigned/grunt-auto-config","last_synced_at":"2025-03-29T08:24:06.916Z","repository":{"id":14685914,"uuid":"17405411","full_name":"rezigned/grunt-auto-config","owner":"rezigned","description":"Automatically load all grunt plugins and their configs in a better way","archived":false,"fork":false,"pushed_at":"2016-02-20T14:50:01.000Z","size":128,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T07:47:00.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rezigned.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-04T14:45:32.000Z","updated_at":"2024-12-25T22:50:57.000Z","dependencies_parsed_at":"2022-08-26T01:43:05.701Z","dependency_job_id":null,"html_url":"https://github.com/rezigned/grunt-auto-config","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/rezigned%2Fgrunt-auto-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2Fgrunt-auto-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2Fgrunt-auto-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezigned%2Fgrunt-auto-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rezigned","download_url":"https://codeload.github.com/rezigned/grunt-auto-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246158217,"owners_count":20732743,"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":"2025-02-03T22:59:20.133Z","updated_at":"2025-03-29T08:24:06.891Z","avatar_url":"https://github.com/rezigned.png","language":"CoffeeScript","readme":"# grunt-auto-config\n\n\u003e Automatically load all grunt plugins and their configs in a nicer way\n\n[![Build Status](https://travis-ci.org/rezigned/grunt-auto-config.png)](https://travis-ci.org/rezigned/grunt-auto-config)\n\n## Getting Started\n\u003e This plugin requires Grunt `~0.4.1`. \n\nIn a nutshell, this plugin will load all your grunt plugins automatically by reading it from `package.json` file. So, you don't have to explicitly set `grunt.loadNpmTasks();` in your Gruntfile anymore.\n\nAnother thing that `grunt-auto-config` offers you is a better grunt configs structure. Instead of having a long configuration in `Gruntfile`. It'll also lookup for config in `./config` directory for each task.\n\nFor example, let's say you have `grunt-contrib-copy` plugin installed. Normally you'll have to put its config in Gruntfile like this\n\n```js\ngrunt.initConfig({\n  copy: { ... }\n})\n```\n\nWith this plugin, it'll look for file `./config/copy.js` (or `copy.coffee`) and load from that file. So, in `copy.js` you just have to add this.\n\n```\nmodule.exports = {\n  options: ...\n  target1: ...\n}\n```\n\nYou may install this plugin with this command:\n\n```shell\nnpm install grunt-auto-config --save-dev\n```\n\nTo enable this plugin, put this line of code at the end of Gruntfile:\n\n```js\n// other stuffs\ngrunt.loadNpmTasks('grunt-auto-config');\n```\n\n## The \"auto_config\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `auto_config` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  auto_config: {\n    options: {\n      // Task-specific options go here.\n    }\n  },\n});\n```\n\n### Options\n\n#### options.dir\nType: `String`\nDefault value: `./config`\n\nA string value that is used to specify grunt config directory\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n_(Nothing yet)_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezigned%2Fgrunt-auto-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frezigned%2Fgrunt-auto-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezigned%2Fgrunt-auto-config/lists"}