I have the following gulp code for gulp-cdnizer. I would like to ensure that angular-timer is working by specifying a test
option as I did for angular in the example below.
How can I specify the test
option for angular-timer?
gulp.task('html', function() {
return gulp.src(source + '*.html')
.pipe(gulpcdnizer({
bowerComponents: './dev/components',
defaultCDNBase: "//my.cdn.host/base",
allowRev: true,
allowMin: true,
files: [
/* angular */
{
file: '**/angular/*.js',
package: 'angular',
test: 'window.angular',
cdn: 'cdnjs:angular.js:${ filenameMin }'
},
{
file: '**/angular-timer/dist/*.js',
package: 'angular-timer',
cdn: 'cdnjs:angular-timer:${ filenameMin }'
}
]
})) // replace local dependencies with cdn equivalents
.pipe(gulp.dest(dest)); // copy html to dest directory
});