polymer-bootlicker v0.0.13
Polymer BootLicker
Configurable build tasks for Polymer applications.
Bootlicker is a collection of gulp tasks which helps organize and build your Polymer applications. It aims to abstract many of the annoyances around tooling and provides a simplier, configurable alternative.
Table of Contents
Usage
When using the Bootlicker registry, it will add default tasks to your
gulp instance.
import gulp from 'gulp';
import Bootlicker from 'polymer-bootlicker';
// register bootlicker
gulp.registry(new Bootlicker(config));Now exposes the default tasks.
gulp --tasks
Configuration
Default path configuration
{
paths: {
app: './app',
bower: './bower_components',
components: './app/components/**/*',
dist: './dist',
fragments: './app/components/elements.html',
fonts: './app/fonts/**/*',
images: './app/**/*.{png,jpg,jpeg,gif}',
local: './dist/local',
locales: './locales',
scripts: './app/**/*.js',
styles: './app/**/*.css',
tests: './test'
}
}You may define a custom configuration which will extend the base configuration.
// custom configuration
let config = {
paths: {
dist: './build',
local: './build/local'
}
};
gulp.registry(new Bootlicker(config));Tasks
Build
Build the local version of the application.
gulp buildCopy all build resources and html assets into build directory.
gulp build:copyBuild the distributable version of the application. This includes optimization and minification of assets.
gulp build:distServe
Serve the local version of the application.
gulp serveServe the distributable version of the application.
gulp serve:distTest
Run wct locally.
gulp test:localRun wct on saucelabs.
gulp test:sauceRegistry Tasks
Additional tasks are available
Fonts
gulp font:copyHTML
Copy bower assets to distribution folder.
gulp html:bower:copyCopy components to distribution folder.
gulp html:components:copyPolybuild html assets. polybuild
gulp html:polybuildCopy views to distribution folder.
gulp html:views:copyProcess html view assets. sourcemap useref htmlmin
gulp html:views:processi18n
Translate asset files. gulp-i18n-localize
gulp i18n:translateImages
Copy and process images. imagemin.
gulp image:copyScripts
Copy and process scripts. eslint sourcemap babel uglify minify
gulp script:copyServer
Start a server instance.
gulp server:serveReload server instance.
gulp server:reloadStyles
Copy and process stylesheets. autoprefix sourcemaps minify
gulp style:copyTests
Copy test assets into temporary test folder.
gulp test:copyRun tests locally. wct
gulp test:localRun test on remote. wct
gulp test:remoteTidy
Clean temporary folders.
gulp tidyClean distribution folder.
gulp tidy:distClean temporary test folders.
gulp tidy:tests