Gathering detailed insights and metrics for gulp-requirejs-cdnbundler
Gathering detailed insights and metrics for gulp-requirejs-cdnbundler
Gathering detailed insights and metrics for gulp-requirejs-cdnbundler
Gathering detailed insights and metrics for gulp-requirejs-cdnbundler
Gulp plugin. Wraps gulp-requirejs and adds the ability to emit bundle files and bundle config.
npm install gulp-requirejs-cdnbundler
Typescript
Module System
Min. Node Version
Node Version
NPM Version
CoffeeScript (51.37%)
JavaScript (48.63%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Apr 13, 2016
Latest Version
1.0.1
Package Id
gulp-requirejs-cdnbundler@1.0.1
Size
4.32 kB
NPM Version
3.5.2
Node Version
0.12.7
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
6
A require-bundler plugin for gulp.
Apart from normal bundling, this plugin also adds a require.config call to the final optimized script in which all paths are re-added that where removed from the build by using "empty:" during optimization.
Thanks to @SteveSanderson for the original gulp-requirejs-bundler and all his other great work!
First, install gulp-requirejs-cdnbundler
as a development dependency:
1npm install --save-dev gulp-requirejs-cdnbundler
Then, add it to your gulpfile.js
(example):
1var require-bundler = require("gulp-requirejs-cdnbundler"); 2 3gulp.task("requirejs", function() { 4 var requireJsOptimizerConfig, requireJsRuntimeConfig; 5 // get the "normal" config that is used during development. You can also just use some JS object like 6 // { 7 // paths: { 8 // foo: "path/to/foo" 9 // }, 10 // shim: { 11 // someShimedModule: { 12 // deps: ["foo"] 13 // } 14 // } 15 // } 16 requireJsRuntimeConfig = vm.runInNewContext(fs.readFileSync("src/app/require.config.js") + "; require;"); 17 18 // config that extends or overwrites the original config 19 requireJsOptimizerConfig = { 20 out: "scripts.js", 21 baseUrl: "./src", 22 name: "app/startup", 23 paths: { 24 requireLib: "bower_modules/requirejs/require", 25 socketio: "empty:" 26 }, 27 include: ["requireLib", "some/component"], 28 insertRequire: ["app/startup"], 29 bundles: {}, 30 optimize: "none" 31 }; 32 33 // call/return rjs with the two configurations. 34 return rjs(requireJsRuntimeConfig, requireJsOptimizerConfig) 35 .pipe(gulp.dest("./dist/")); 36 });
Takes two arguments:
See requirejs config docs and requirejs optimization docs for possible options.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/10 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More