{"id":29585902,"url":"https://github.com/cuarti/grunt-requirejs-injector","last_synced_at":"2025-07-20T02:38:36.020Z","repository":{"id":32114553,"uuid":"35686969","full_name":"cuarti/grunt-requirejs-injector","owner":"cuarti","description":"Inject RequireJS dependencies on definition.","archived":false,"fork":false,"pushed_at":"2015-05-25T21:32:29.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T16:06:26.117Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cuarti.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":"2015-05-15T17:23:18.000Z","updated_at":"2015-05-15T17:23:26.000Z","dependencies_parsed_at":"2022-09-07T01:00:43.140Z","dependency_job_id":null,"html_url":"https://github.com/cuarti/grunt-requirejs-injector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cuarti/grunt-requirejs-injector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fgrunt-requirejs-injector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fgrunt-requirejs-injector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fgrunt-requirejs-injector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fgrunt-requirejs-injector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuarti","download_url":"https://codeload.github.com/cuarti/grunt-requirejs-injector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuarti%2Fgrunt-requirejs-injector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266058481,"owners_count":23870157,"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-07-20T02:38:33.272Z","updated_at":"2025-07-20T02:38:36.005Z","avatar_url":"https://github.com/cuarti.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-requirejs-injector\n\n\u003e Inject RequireJS dependencies on definition.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-requirejs-injector --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-requirejs-injector');\n```\n\n## requirejs_injector task\n\nYou can convert a RequireJS application to a single script, concatenate modules and inject his dependencies on definition. \n\n### Overview\nIn your project's Gruntfile, add a section named `requirejs_injector` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  requirejs_injector: {\n    your_target: {\n      src: src_target,\n      dest: dest_target\n    },\n  },\n});\n```\n\n### Usage Examples\n\n#### Simple Example\nIn this example, compile `test/fixtures/print/main.js` to `tmp/print.js`.\n\n```js\ngrunt.initConfig({\n  requirejs_injector: {\n    print: {\n      src: 'test/fixtures/print/main.js',\n      dest: 'tmp/print.js'\n    }\n  },\n});\n```\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuarti%2Fgrunt-requirejs-injector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuarti%2Fgrunt-requirejs-injector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuarti%2Fgrunt-requirejs-injector/lists"}