return function() { var suffix = overwrite ? '' : '.OPENSOURCE'; // Vulcanize TensorBoard without external libraries. gulp.src('components/tf-tensorboard/tf-tensorboard.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, excludes: getNonTensorBoardComponents(), })) // TODO(danmane): Remove this worrisome brittleness when vulcanize // fixes https://github.com/Polymer/vulcanize/issues/273 .pipe(replace(linkRegex, '')) .pipe(replace(scriptRegex, '')) .pipe(header(HEADER_STR)) .pipe(rename('tf-tensorboard.html' + suffix)) .pipe(gulp.dest('./dist')); gulp.src('components/tf-tensorboard/tf-tensorboard-demo.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, })) .pipe(header(HEADER_STR)) .pipe(gulp.dest('./dist')); }
gulp.task('vulcanize', ['compile.all', 'tslint-strict'], function() { // Vulcanize TensorBoard without external libraries. gulp.src('components/tf-tensorboard/tf-tensorboard.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, excludes: getNonTensorBoardComponents(), })) // TODO(danmane): Remove this worrysome brittleness when vulcanize // fixes https://github.com/Polymer/vulcanize/issues/273 .pipe(replace(linkRegex, '')) .pipe(replace(scriptRegex, '')) .pipe(gulp.dest('dist')); // Vulcanize TensorBoard with all external libraries inlined. gulp.src('components/index.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, })) .pipe(gulp.dest('dist')); gulp.src('app/tf-tensorboard-demo.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, })) .pipe(gulp.dest('dist')); });
gulp.task('vulcanize', ['compile.all', 'tslint-strict'], function() { gulp.src('app/tf-tensorboard.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, excludes: ['/bower_components/'], })) // TODO(danmane): Remove this worrysome brittleness when vulcanize // fixes https://github.com/Polymer/vulcanize/issues/273 .pipe(replace(linkRegex, '')) .pipe(replace(scriptRegex, '')) .pipe(gulp.dest('dist')); gulp.src('app/index.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, })) .pipe(gulp.dest('dist')); gulp.src('app/tf-tensorboard-demo.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, })) .pipe(gulp.dest('dist')); });
gulp.task('vulcanize', function() { var index = gulp.src([ 'app/index.html' ]) .pipe(gulp.dest('dist')); var webcomponentsjs = gulp.src([ 'app/bower_components/webcomponentsjs/webcomponents-lite.min.js' ]) .pipe(gulp.dest('dist/bower_components/webcomponentsjs')); var lodash = gulp.src([ 'app/bower_components/lodash/dist/lodash.min.js' ]) .pipe(gulp.dest('dist/bower_components/lodash/dist')); var elements = gulp.src('app/elements/elements.html') .pipe(vulcanize({ stripComments: true, inlineScripts: true, inlineCss: true })) .pipe(minifyInline()) .pipe(gulp.dest('dist/elements')); return merge(index, webcomponentsjs, lodash, elements); });
gulp.task('vulcanize', ['sass'], function () { return gulp.src(['./src/my-crappy-homepage-app/my-crappy-homepage-app.html']) .pipe(vulcanize({inlineCss: true, inlineScripts: true}) .on('error', console.log)) .pipe(gulp.dest('./public/dist/')); });
gulp.task('vulcanize', ['copy-vulcanize'], function() { return gulp.src(VULCANIZE_FILE) .pipe(vulcanize(VULCANIZE_CONFIG)) .pipe($.rename(pkg.name + '.min.html')) .pipe($.size()) .pipe(gulp.dest('.')); });
gulp.task('vulcanize', function () { return gulp.src(config.paths.dist + '/elements/elements.html') .pipe(vulcanize({ inlineScripts: true })) .pipe(crisper()) .pipe(gulp.dest(config.paths.dist + '/elements')); });
gulp.task('vulcanize', ['html', 'lib'], function () { return gulp.src('dist/index.html') .pipe(vulcanize({ dest: 'dist', strip: true })) .pipe(gulp.dest('dist')); });
gulp.task('vulcanize', function () { return gulp.src(config.polymer.manifest) .pipe(vulcanize({dest: config.build})) .pipe(rename({ suffix: '.min' })) .pipe(htmlmin(config.polymer.htmlmin)) .pipe(gulp.dest(config.build)) .pipe(browserSync.reload({stream:true, once: true})) })
gulp.task('build-web-html', function() { // {spare: false, empty: true}にしないとpolymerのLayout機能と折り合わない var minifyHtmlOption = {comments: false, quotes: true, spare: false, empty: true}; gulp.src(webHtmlFiles) .pipe(vulcanize({dest: webHtmlBuildDir})) .pipe(minifyInline()) .pipe(minifyHtml(minifyHtmlOption)) .pipe(gulp.dest(webHtmlBuildDir)); });
gulp.task('build',function(){ gulp.src('./imports/index.html') .pipe(vulcanize({ dest:'./bin', strip:true })) .pipe(gulp.dest('./bin')); });
gulp.task('html', function() { return gulp.src(paths.html) .pipe(vulcanize({ abspath: '', excludes: [], stripExcludes: false })) .pipe(gulp.dest('./www/build/html')); });
gulp.task('vulcanize', ['webpack', 'sass', 'copy'], function () { return gulp.src('public/index.html') .pipe(vulcanize({ dest: DEST_DIR, csp: true, inline: true })) .pipe(gulp.dest(DEST_DIR)); });
gulp.task('default', function () { return gulp.src('src/polymerimports.html') .pipe(vulcanize({ abspath: '', excludes: [], stripExcludes: false })) .pipe(gulp.dest('dist')); });
gulp.task('vulcanize-elems', function () { return gulp.src('src/polymer-elements/elements.html') .pipe(vulcanize({ abspath: '', excludes: [], stripExcludes: false })) .pipe(gulp.dest('dest/polymer-elements/')); });
gulp.task('vulcanize', function() { return gulp.src('./src/elements/elements.html') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripExcludes: false })) .pipe(gulp.dest('./dist/elements')); });
return function() { return gulp.src(target) .pipe(vulcanize({ stripComments: true, excludes: excludes })) .pipe(cleanupPipe()) .pipe(gulp.dest(workdir)); };
gulp.task('vulcanize', function () { return gulp.src('public/elements/elements.vulcanized.html') .pipe(vulcanize({ stripComments: true, inlineCss: true, inlineScripts: true })) .pipe(gulp.dest('public/elements')); });
gulp.task('vulcanize', function() { return gulp.src('app/src/elements.html') .pipe(vulcanize({ stripComments: true, inlineScripts: true, inlineCss: true })) .pipe(gulp.dest('dist/src')); });
gulp.task('vulcanize', function () { return gulp.src('components/app.html') .pipe(vulcanize({ excludes: [], inlineScripts: true, inlineCss: true, stripExcludes: true })) .pipe(gulp.dest('./webcomponents')); });
gulp.task('vulcanize', function() { return gulp.src(['BarChart/*.html', 'BubbleChart/*.html', 'DonutChart/*.html','GroupedBar/*.html', 'LiquidGauge/*.html','PieChart/*.html','ScatterPlot/*.html','StackedAreaChart/*.html','TimeSeries/*.html']) .pipe(vulcanize({ stripComments: true, inlineScripts: true, inlineCss: true })) .pipe(gulp.dest('dist')); });
gulp.task('vulcanize', ['jade'], function () { return gulp.src('/build/compiled-jade/graduando-quest.html') .pipe(vulcanize({ abspath: '.', })) .on('error', function (err) { console.log(err); }) .pipe(gulp.dest('build')); });
gulp.task('vulcanize', function() { return gulp.src(config.src + '/elements/elements.html') .pipe(vulcanize({ stripComments: true, inlineCss: true, inlineScripts: true })) .pipe(preprocess(processVariables)) .pipe(gulp.dest(config.dist + '/elements')); });
gulp.task('vulcanize', () => { return gulp.src(sourceFiles) .pipe(vulcanize({ stripComments: true, inlineCss: true, inlineScripts: true })) .pipe(gulp.dest(config.path.destination.elements)) .pipe(size({title: 'vulcanize'})); });
gulp.task('default', function () { var DEST_DIR = 'public'; return gulp.src('src/*.html') .pipe(vulcanize({ dest: DEST_DIR, strip: true })) .pipe(gulp.dest(DEST_DIR)); });
gulp.task('vulcanize', function () { return gulp.src('../app/components/pd-dashboard/pd-dashboard.vulcanized.html') .pipe(vulcanize({ abspath: '', excludes: ['../bower_components/polymer/polymer.html', '../app/bower_components/polymer/polymer.html' ], stripExcludes: false })) .pipe(gulp.dest('../app/components/pd-dashboard')); });
gulp.task('components', ['style-modules', 'js-modules', 'scripts'], function () { return gulp.src('src/components/*') .pipe(vulcanize({ inlineScripts: true, inlineCss: true, stripComments: true, excludes: ['bower_components/', 'dist/components/'], stripExcludes: false })) .pipe(gulp.dest('dist/components')); });
gulp.task('vulcanize', function(){ return gulp.src([ clientBuildPath + '/elements/elements.html' ]) .pipe(vulcanize({ dest: '.tmp/', strip: true, inline: true })) .pipe(gulp.dest(clientBuildPath + '/elements')); });
gulp.task('build:vulcanize', ['build:codemirror:js', 'build:codemirror:css'], function () { return gulp.src(paths.src + '/index.html') .pipe(vulcanize({ abspath: '', excludes: [], inlineScripts: true, inlineCss: true, stripExcludes: false })) .pipe(gulp.dest(paths.dist.root)); });
.pipe(flatmap((stream, file) => { let basename = path.basename(file.path); console.log("vulcanizing", basename, "..."); return stream.pipe(vulcanize({ abspath: __dirname, inputUrl: "/" + importsHtml + basename, inlineScripts: true, inlineCss: true })); }))