{"id":32232294,"url":"https://github.com/nowells/requirejs-config","last_synced_at":"2026-07-18T07:38:00.076Z","repository":{"id":58231463,"uuid":"13261837","full_name":"nowells/requirejs-config","owner":"nowells","description":"Simplify \u0026 Centralize your RequireJS configurations","archived":false,"fork":false,"pushed_at":"2013-10-24T19:59:39.000Z","size":380,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-23T06:46:17.425Z","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/nowells.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-02T03:17:18.000Z","updated_at":"2015-09-24T02:24:36.000Z","dependencies_parsed_at":"2022-08-30T22:31:52.314Z","dependency_job_id":null,"html_url":"https://github.com/nowells/requirejs-config","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nowells/requirejs-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowells%2Frequirejs-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowells%2Frequirejs-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowells%2Frequirejs-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowells%2Frequirejs-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nowells","download_url":"https://codeload.github.com/nowells/requirejs-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nowells%2Frequirejs-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35610620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-18T02:00:07.223Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-22T11:55:30.623Z","updated_at":"2026-07-18T07:38:00.059Z","avatar_url":"https://github.com/nowells.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"requirejs-config\n================\n\n\u003e Simplify \u0026amp; Centralize your RequireJS configurations.\n\nWith RequireJS it is often a challenge to find the right way to share a common\nconfiguration across different instances of an application (development,\nproduction, test suite, multiple pages).\n\n## Example Configurations\n\n**config.js**\n\n```javascript\n(function(root, factory) {\n  function define(func) { return typeof(module) === 'undefined' ? root.define.apply(this, arguments) : (module.exports = func(require)); }\n  define(function(require) {\n    return require('../bower_components/requirejs-config/config')(factory);\n  });\n}(this, function(root, config) {\n  config.merge({\n    hbs: {\n      disableI18n: true,\n      disableHelpers: true\n    },\n    pragmasOnSave: {\n      excludeHbsParser: true,\n      excludeHbs: true,\n      excludeAfterBuild: true\n    }\n  });\n\n  config.pkg('myapp');\n  config.add('jquery1.10', 'bower_components/jquery/jquery').map('jquery');\n  config.add('underscore', 'bower_components/underscore/underscore').shim('_');\n  config.add('backbone', 'bower_components/backbone/backbone').shim('Backbone', ['jquery', 'underscore']);\n}));\n```\n\n**Gruntfile.js**\n\n```javascript\nmodule.exports = function(grunt) {\n  var rConfig = require('./config');\n\n  rConfig.merge({\n      baseUrl: './',\n      out: 'build/main.js',\n      name: 'main',\n      optimize: 'none'\n  });\n\n  grunt.initConfig({\n    requirejs: {\n      compile: {\n        options: rConfig\n      }\n    },\n  });\n\n  grunt.loadNpmTasks('grunt-contrib-requirejs');\n};\n```\n\n**main.js**\n\n```javascript\ndefine(function(require) {\n    // My application initialization.\n});\n```\n\n**development.js**\n\n```javascript\nrequire(['./config'], function(config) {\n    require.config(config);\n    require(['./main'], function() {});\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowells%2Frequirejs-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnowells%2Frequirejs-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnowells%2Frequirejs-config/lists"}