See Polymer Analyzer.
The Polymer CLI is designed to work with apps that use an app shell architecture. See Instant Loading Web Apps with an Application Shell Architecture for more information.
bower.json is a manifest used by Bower for configuring packages for use as dependencies. See the
bower.json specification for more information.
dependency may refer to:
- A package dependency, such as a Bower or npm package that your project uses.
- A data dependency in the context of the Polymer data system: a piece of data that an observer, computed property or computed binding depends on.
Dependency variants are useful for testing elements against different versions of Polymer and other
bower.json would normally only let you install and test against
If you run
polymer install --variants, the
polymer install tool creates separate builds for
your element using the versions of Polymer you specify. You can use the Polymer development
server to test these variants.
A dynamic dependency is a dependency that is imported at runtime, using a mechanism such as
importHref. Compare static dependency.
Eager loading refers to the process of loading dependencies statically, rather than on demand. Compare lazy loading.
The HTML actually loaded by the browser to start the application. Usually
index.html. In an
application built with an app shell architecture, the entrypoint is loaded for many
Fragments are used to define bundles and are often associated with routes or non-critical resources. A fragment is a lazily-loaded HTML file.
A distributed version control system. Bower depends on git to install components from their GitHub repositories.
This tool has been replaced by Polymer Analyzer. It is a static analysis framework for Web Components.
Lazy loading takes advantage of routing to load elements only when they are required for render. Used correctly, lazy loading can improve performance.
For an example implementation of lazily-loaded elements, see the Shop app. In the Shop app, views are elements which are instantiated only when they are routed to.
A linter is a piece of software that analyzes code for suspicious-looking constructions that can
potentially cause errors; for example, for example, registering an element without specifying its
tag name, or using invalid data-binding syntax. The Polymer tools include
Polymer Linter, which does this for Polymer apps and elements.
A monolithic app is one that loads all of its code statically and does not use an app shell architecture or dynamic code loading.
Package management system for Node.js.
A metadata file used by npm to manage project dependencies.
A command line tool for Polymer projects. The Polymer CLI has a number of tools for working with Polymer and Web Components. For more information, see the Polymer CLI documentation.
This command builds your project with a preconfigured build pipeline. It calls
options configured for a build suitable for an app shell app.
To customize your build pipeline, you can use
polymer-build itself in conjunction with other
Initializes a Polymer project. Contains a set of starter templates for elements and apps.
Install command for Polymer apps. Installs Bower dependencies, equivalent to running
bower install. With the option
--variants, also installs any dependency
variants specified in the
variants property of
This command starts
polyserve, a simple development server for Web Components.
Runs tests for your Polymer app with
polymer-build is a library for building Polymer projects.
polymer-build allows you to
completely customize your build and combine additional streams and build tasks in any order.
polymer build command, which calls
polymer-build with preconfigured options.
Polymer build tool that follows HTML Imports and
<script> tags to concatenate resources into a
single page for production. Can improve performance by reducing network trips.
Linter invoked by
polymer lint command. Lints a Polymer project.
A static analysis framework for web applications.
polymer.json is the Polymer build configuration file. It lets you configure your app’s entrypoint
and app shell files, instead of passing these as parameters to polymer build.
polymer.json also lets you specify the locations of source files, HTML fragments and additional
dependencies, and configure the Polymer linter.
polyserve is a locally-installable web server for developing Bower components.
Routing is the process an app uses to determine how to respond to a client request for a particular endpoint. A default route is the endpoint the app directs the user to when no route is specified. In a PWA, the app shell performs routing.
A service worker is a script that your browser runs in the background, separate from a web page, opening the door to features that don't need a web page or user interaction. Today, they already include features like push notifications and background sync.
For progressive web applications, a service worker can help to make an application usable offline in a meaningful way. For example, on first accessing a particular site, a service worker could fetch a defined set of resources and cache them. Then, the service worker could act as a client-side proxy, intercepting network requests for resources. Where possible, the service worker could supply those resources from the browser cache.
A dependency that is required by a given file, and whose import is hard-coded using
<link rel="import"> or
<script src="...">. This dependency will always be loaded
when the given file is loaded.
A transitive dependency is an indirect dependency - that is, a resource that is depended on by another dependency.
For example, if file A depends on file B, and file B depends on file C, then file C is a transitive dependency of file A.
The transitive dependencies of a resource are all the dependencies, direct and indirect, that a resource depends on.
See dependency variant.
This tool has been replaced by Polymer Bundler.
A browser-based testing environment for web components. Runs your tests in local browsers or remotely via Sauce.