{"id":17937769,"url":"https://github.com/jorrit/gulp-requirejs","last_synced_at":"2025-12-17T15:02:08.807Z","repository":{"id":22881002,"uuid":"26229046","full_name":"jorrit/gulp-requirejs","owner":"jorrit","description":"A small, simple, very easy wrapper around the require.js optimizer to work with gulp.js","archived":false,"fork":false,"pushed_at":"2024-07-22T05:36:03.000Z","size":455,"stargazers_count":60,"open_issues_count":6,"forks_count":40,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-05T02:21:30.625Z","etag":null,"topics":["gulp","javascript","requirejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"fusesource/leveldbjni","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jorrit.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-11-05T16:41:23.000Z","updated_at":"2024-06-30T21:41:03.000Z","dependencies_parsed_at":"2025-05-05T22:38:01.344Z","dependency_job_id":"f451e93c-c61f-4afe-8863-ff485f56b03e","html_url":"https://github.com/jorrit/gulp-requirejs","commit_stats":null,"previous_names":["robinthrift/gulp-requirejs"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/jorrit/gulp-requirejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorrit%2Fgulp-requirejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorrit%2Fgulp-requirejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorrit%2Fgulp-requirejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorrit%2Fgulp-requirejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jorrit","download_url":"https://codeload.github.com/jorrit/gulp-requirejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorrit%2Fgulp-requirejs/sbom","scorecard":{"id":533050,"data":{"date":"2025-08-11","repo":{"name":"github.com/jorrit/gulp-requirejs","commit":"69aaed7d8ab434ba90400387179acc7a3fa71f44"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/jorrit/gulp-requirejs/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/jorrit/gulp-requirejs/test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-x3m3-4wpv-5vgc","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T06:12:42.233Z","repository_id":22881002,"created_at":"2025-08-20T06:12:42.233Z","updated_at":"2025-08-20T06:12:42.233Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27784063,"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","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"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":["gulp","javascript","requirejs"],"created_at":"2024-10-28T23:07:35.857Z","updated_at":"2025-12-17T15:02:08.766Z","avatar_url":"https://github.com/jorrit.png","language":"JavaScript","readme":"# gulp-requirejs\n\n[![gulp-requirejs on npm](https://img.shields.io/npm/v/gulp-requirejs.svg?style=flat)](https://www.npmjs.com/package/gulp-requirejs)\n![Build Status](https://github.com/jorrit/gulp-requirejs/workflows/Node.js%20CI/badge.svg)\n[![Coverage](https://coveralls.io/repos/github/jorrit/gulp-requirejs/badge.svg)](https://coveralls.io/github/jorrit/gulp-requirejs)\n\n## Information\n\nA small, simple, very easy wrapper around the [require.js optimizer](https://github.com/jrburke/r.js) to work with [gulp.js](https://github.com/gulpjs/gulp).\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003ePackage\u003c/td\u003e\u003ctd\u003egulp-requirejs\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eDescription\u003c/td\u003e\n\u003ctd\u003euses require.js's r.js optimizer to combine require.js AMD modules into one file\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eNode Version\u003c/td\u003e\n\u003ctd\u003e≧ 4\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\n## Installation\n\nSimply add `gulp-requirejs` as a dev-dependency in your package.json or run\n\n```bash\n$ npm install --save-dev gulp-requirejs\n```\n\n## Usage\n\nBecause the require.js optimizer (_r.js_) is a kind of build system in itself we can't use the `gulp.src([...])` syntax at the moment (I might add this in future), instead this wrapper itself emits a pipable stream, holding a 'virtual' file, in which the result of the r.js build process are saved.\n\nThe resulting stream can be treated like a regular `gulp.src(...)` stream.\n\n\u003eNOTE: The built in minification/obfuscation is deactivated by default. It is recommended to use a gulp plugin like gulp-uglify for minification, but you can enable r.js minification by setting the `optimize` option to `uglify` to minify using r.js.\n\n```javascript\nvar gulp = require('gulp'),\n    rjs = require('gulp-requirejs');\n\ngulp.task('requirejsBuild', function() {\n    return rjs({\n        baseUrl: 'root/directory/of/js/files/',\n        out: 'FILENAME_TO_BE_OUTPUTTED',\n        name: 'mainfile', // no extension\n        shim: {\n            // standard require.js shim options\n        },\n        // ... more require.js options\n    })\n    .pipe(gulp.dest('./deploy/')); // pipe it to the output DIR\n});\n```\n\nIf you use instead of out the dir option, you do not need the pipe at all, see this example in Gulp 4 syntax and mocha test:\n\n```javascript\nconst rjs = require('gulp-requirejs');\n\nasync function requirejsBuild(cb) {\n    return rjs({\n        dir: 'deploy',\n        mainConfigFile: 'config.js',\n        path: {\n          'config': '../config_init'\n        },\n        modules: [{\n          name: 'FILENAME_TO_BE_OUTPUTTED', // no extension\n          include  : [ .. ]\n         ...\n        }]\n    }) ...\n};\n    \nexports.requirejsBuild = requirejsBuild;\n```\n\nNote: In order to let gulp know that the optimization completes, return the rjs stream.\n\nSee [requirejs.org](https://requirejs.org/docs/optimization.html) for more information about the supported parameters.\n\n### Error handling\n\ngulp-requirejs will emit errors when you don't pass an options object, if the `baseUrl` or `out` properties are undefined or when the requirejs optimizer detects an error.\n\n### Source maps\n\nWhen source maps are enabled via the r.js `generateSourceMaps` option the file in the stream `rjs()` contains a `sourceMap` property with the sourcemap as an object.\n\nUse [gulp-sourcemaps](https://www.npmjs.com/package/gulp-sourcemaps) to process this object in your gulp configuration.\n\n```javascript\nvar gulp = require('gulp'),\n    rjs = require('gulp-requirejs')\n    sourcemaps = require('gulp-sourcemaps');\n\ngulp.task('requirejsBuild', function() {\n    return rjs({\n        baseUrl: 'root/directory/of/js/files/',\n        out: 'FILENAME_TO_BE_OUTPUTTED',\n        name: 'mainfile', // no extension\n        generateSourceMaps: true,\n        shim: {\n            // standard require.js shim options\n        },\n        // ... more require.js options\n    })\n    .pipe(sourcemaps.init({loadMaps: true})) // initialize gulp-sourcemaps with the existing map\n    .pipe(sourcemaps.write()) // write the source maps\n    .pipe(gulp.dest('./deploy/')); // pipe it to the output DIR\n});\n```\n\n## Options\n\nThe options object supports the same parameters as the [require.js optimizer](https://github.com/jrburke/r.js).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorrit%2Fgulp-requirejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorrit%2Fgulp-requirejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorrit%2Fgulp-requirejs/lists"}