gulp-cdnizer
Advanced tools
Comparing version 0.1.0 to 0.1.2
{ | ||
"name": "gulp-cdnizer", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"description": "A plugin for Gulp", | ||
"keywords": [ | ||
"gulpplugin", "cdn" | ||
"gulpplugin", | ||
"cdn" | ||
], | ||
@@ -47,3 +48,4 @@ "homepage": "https://github.com/OverZealous/gulp-cdnizer", | ||
} | ||
] | ||
], | ||
"readme": "# gulp-cdnizer\n [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]\n \n > cdnizer plugin for [gulp](https://github.com/wearefractal/gulp)\n \n This plugin will replace references in HTML and other files with CDN locations. It's flexible without being overly complicated, and handles private *and* public CDNs. It can use your bower installation to determine file versions.\n \n It also provides optional fallback scripts for failed file loading. By default it can only handle failed JavaScript files, but it shouldn't be too difficult to provide a better script.\n \n ## Usage\n \n First, install `gulp-cdnizer` as a development dependency:\n \n ```shell\n npm install --save-dev gulp-cdnizer\n ```\n \n Then, add it to your `gulpfile.js`:\n \n ```javascript\n var cdnizer = require(\"gulp-cdnizer\");\n \n gulp.src(\"./src/index.html\")\n .pipe(cdnizer({\n defaultBase: \"//my.cdn.host/base\",\n allowRev: true,\n allowMin: true,\n files: [\n 'js/app.js',\n {\n file: 'vendor/angular/angular.js',\n package: 'angular',\n test: 'angular',\n cdn: '//ajax.googleapis.com/ajax/libs/angularjs/${ major }.${ minor }.${ patch }/angular.min.js'\n },\n {\n file: 'vendor/firebase/firebase.js',\n test: 'Firebase',\n cdn: '//cdn.firebase.com/v0/firebase.js'\n }\n ]\n })\n .pipe(gulp.dest(\"./dist\"));\n \n // Alternatively, just pass in the files array if you don't need to provide any options, and only have custom files:\n gulp.src(\"./src/index.html\")\n .pipe(cdnizer([\n {\n file: 'vendor/angular/angular.js',\n package: 'angular',\n test: 'angular',\n cdn: '//ajax.googleapis.com/ajax/libs/angularjs/${ major }.${ minor }.${ patch }/angular.min.js'\n },\n {\n file: 'vendor/firebase/firebase.js',\n test: 'Firebase',\n cdn: '//cdn.firebase.com/v0/firebase.js'\n }\n ])\n .pipe(gulp.dest(\"./dist\"));\n ```\n \n ## API\n \n For full usage and API, [check the GitHub repository.](https://github.com/OverZealous/gulp-cdnizer).\n \n ## License\n \n [MIT License](http://en.wikipedia.org/wiki/MIT_License)\n \n [npm-url]: https://npmjs.org/package/gulp-cdnizer\n [npm-image]: https://badge.fury.io/js/gulp-cdnizer.png\n \n [travis-url]: http://travis-ci.org/OverZealous/gulp-cdnizer\n [travis-image]: https://secure.travis-ci.org/OverZealous/gulp-cdnizer.png?branch=master" | ||
} |
@@ -188,7 +188,1 @@ # gulp-cdnizer | ||
[travis-image]: https://secure.travis-ci.org/OverZealous/gulp-cdnizer.png?branch=master | ||
[coveralls-url]: https://coveralls.io/r/OverZealous/gulp-cdnizer | ||
[coveralls-image]: https://coveralls.io/repos/OverZealous/gulp-cdnizer/badge.png | ||
[depstat-url]: https://david-dm.org/OverZealous/gulp-cdnizer | ||
[depstat-image]: https://david-dm.org/OverZealous/gulp-cdnizer.png |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
4
19513
9
162
188