/** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http:polymer.github.io/LICENSE.txt * The complete set of authors may be found at http:polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at http:polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at http:polymer.github.io/PATENTS.txt */ // jshint node: true 'use strict'; var gulp = require('gulp'); var audit = require('gulp-audit'); var replace = require('gulp-replace'); var rename = require('gulp-rename'); var vulcanize = require('gulp-vulcanize'); var runseq = require('run-sequence'); var lazypipe = require('lazypipe'); var polyclean = require('polyclean'); var del = require('del'); var path = require('path'); var micro = "polymer-micro.html"; var mini = "polymer-mini.html"; var max = "polymer.html"; var workdir = 'dist'; var distMicro = path.join(workdir, micro); var distMini = path.join(workdir, mini); var distMax = path.join(workdir, max); var pkg = require('./package.json'); var cleanupPipe = lazypipe() // Reduce script tags .pipe(replace, /<\/script>\s*