Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gulp-polymer-build-utils

1.6.0 • Public • Published

gulp-polymer-build-utils Build Status Greenkeeper badge

Utils to simplify building Polymer applications

See this blog post about the background and functionality of the gulp plugins.

Usage

Install the build-utils:

npm install gulp-polymer-build-utils --save

Use the plugins and tasks in the Gulp config file gulpfile.js:

const gulp = require('gulp');
const polymerBuildUtils = require('gulp-polymer-build-utils');
const runSequence = require('run-sequence');

gulp.task('prepare-dist', function() {
  return polymerBuildUtils.polymerBuild(require('./polymer.json'))
    .pipe(polymerBuildUtils.addCspCompliance())
    .pipe(polymerBuildUtils.addCacheBusting())
    .pipe(polymerBuildUtils.optimizeAssets())
    .pipe(polymerBuildUtils.injectCustomElementsEs5Adapter())
    .pipe(gulp.dest('dist'));
});

gulp.task('default', function(cb) {
  runSequence('prepare-dist', 'inline-references', cb);
});

Keywords

none

install

npm i gulp-polymer-build-utils

Downloadsweekly downloads

85

version

1.6.0

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability