Questions tagged [polymer-cli]

The Polymer CLI is a command line interface for building, managing and deploying Polymer applications.

Polymer CLI is a command-line interface for projects. It includes a build pipeline, a boilerplate generator for creating elements and apps, a linter, a development server, and a test runner.

Polymer CLI works with two types of projects:

  • Elements projects. In an element project, you expose a single element or group of related elements which you intend to use in other element or app projects, or distribute on a registry like Bower or NPM. Elements are reusable and organized to be used alongside other elements, so components are referenced outside the project.

  • Application projects. In an app project, you build an application, composed of Polymer elements, which you intend to deploy as a website. Applications are self-contained, organized with components inside the application.

For more information, see the project documentation or the GitHub project page.

76 questions
3
votes
2 answers

polymer-cli build fails for element starter template

I am trying to create a reusable component using polymer cli. I would like to use this component into another project where i can include it as a single file import. But when I am trying to build the project, it keeps failing. Below are details of…
3
votes
1 answer

Polymer CLI build runs out of memory

I am quite surprised, when I run polymer build after implementing more components, it runs out of memory. How isit possible? I won't consider my site/app very big yet ... info: Building application... info: Generating build/unbundled... info:…
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
2
votes
5 answers

Polymer 3 without Polymer CLI

I'm trying Polymer 3, and i'm asking a question. Is it possible to try it (or to build a complete app) without using Polymer CLI? After searching, I think that it's not really possible because of using package names in my imports. As the…
user3197506
  • 197
  • 1
  • 2
  • 14
2
votes
1 answer

polyserve cannot serve the app

Node v8.11 NPM v5.6 Whenever I try to call polymer serve an error occurs telling that server failed to start and no available ports, which is wrong! most of the ports are available. $ polymer serve ERROR: Server failed to start: Error: No available…
Suhayb
  • 3,163
  • 3
  • 23
  • 30
2
votes
2 answers

How to use Polymer 2 Build Process?

I know this might be a duplicate of this question but there was no clear answer ever. Polymer 2 Framework has a quite good documentation so far but when it comes to the build process there`s not enough explanation. I've successfully created my own…
GeofoxCoding
  • 285
  • 1
  • 9
2
votes
1 answer

how to use --max-old-space-size command in polymer while building large project

when I run polymer build after implementing more components, it runs out of memory. Error message <--- Last few GCs ---> 122257 ms: Mark-sweep 1364.3 (1422.6) -> 1364.3 (1438.6) MB, 2263.8 / 0.0 ms [allocation failure] [GC in old space…
ksh
  • 639
  • 1
  • 7
  • 23
2
votes
1 answer

How can I configure Polymer-cli build to exclude some file-path from being minified?

I am using polymer-cli's build to build my polymer app. Some of our dependencies are closed-source js libraries, which are already minified. My polymer build configuration looks like: "builds": [{ "name": "unbundled", "addServiceWorker": false, …
schlm3
  • 108
  • 7
2
votes
2 answers

polymer build: Warning [unknown-superclass] - Unable to resolve superclass superClass

Trying to build my polymer 2.0 project, but every time I try no matter the preset (es5-bundled, es6-bundled) or separate flags, I get the following warning for the one mixin I have: EdmMac: public vedtam$ polymer build info: Clearing build/…
Edmond Tamas
  • 3,148
  • 9
  • 44
  • 89
2
votes
1 answer

Selenium server did not start.Another Selenium process may already be running or your java version may be out of date

Just starting out with Polymer and Unit Testing. I was trying out the activity on this page https://www.polymer-project.org/2.0/docs/tools/tests but I couldn't get polymer test to run. So I tried running polymer test --verbose and end up getting…
Eleonor Somosot
  • 109
  • 3
  • 10
2
votes
1 answer

sw-precache, cache files with URL Parameters

I have a quick question. I'm building a PWA with Polymer and Lighthouse reports, that the manifest's start_url is not cached by the ServiceWorker. Since I want to track the users, which use the 'Add to homescreen' function, my manifest.json…
Nicolai Schmid
  • 1,022
  • 1
  • 14
  • 29
2
votes
1 answer

polymer-cli - getting "Can’t find variable: babelHelpers" when I set compile to true

I use Polymer 2.0 and my build setting is: "builds": [ { "name": "bundled", "bundle": true, "js": { "compile": true}, "css": { "minify": true }, "html": { "minify": true } }] I get "Can’t find variable: babelHelpers" error after…
Homa
  • 3,417
  • 2
  • 19
  • 24
2
votes
0 answers

Polymer CLI not creating bower_components folder on Windows 7

I installed node, bower and the polymer cli on a Windows 7 machine. If I choose the "polymer-2-element" option and then defaults for the rest of the questions, the CLI builds a project but there is no bower_components folder created in the project. …
2
votes
0 answers

polymer serve with components

I have been facing issues with the polymer-cli since I installed it. I am not able to serve components during development. I have to write my own Node.js server with remapping urls to work with components. But the documentation page clearly suggests…
ryanafrish7
  • 3,222
  • 5
  • 20
  • 35
2
votes
0 answers

Generating Polymer documentation

I am trying to create a Polymer element repository, where all of the elements will have proper documentation and demo pages. My main source of knowledge is the official Document your elements page. It covers all regarding writing the docs and how to…
alesc
  • 2,776
  • 3
  • 27
  • 45
2
votes
2 answers

How can I create polymer custom element with shadow dom so that I can access it's shadowRoot?

I have use Polymer-cli (version 0.16.0) to scaffold a polymer project but could not access shadow-root using the console: var element = document.getElementsByTagName("my-app")[0].shadowRoot returns undefined so It looks like shadow DOM is on closed…