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
0
votes
1 answer

Polymer init halt on "Running generator" (polymer-cli 1.8.0, Polymer 3.0)

I'm facing the an issue, the polymer init halted on Running generator polymer-init-polymer-3-element:app... same on win7 and MINGW64_NT-6.1, with polymer --version = 1.8.0, nodejs --version = v10.3.0
mindon
  • 318
  • 4
  • 13
0
votes
1 answer

Polymer bundler does not output node_modules folder with custom bundles

Using polymer-cli 1.7.7, bundling a Polymer 3 app for esm, es6 and es5 support does not output node_modules. As a consequence, dependencies such as @webcomponents/webcomponentsjs are not found when the bundles are served with prpl-server. Here is a…
Laurent
  • 14,122
  • 13
  • 57
  • 89
0
votes
1 answer

how disccover which selenium and chromedriver is used during polymer test

I get this error when running "Cannot establish new session" when I run "polymer test --skip-selenium-install" error: [cli.main] Error: {"value":{"stacktrace":"org.openqa.selenium.SessionNotCreatedException: Cannot establish new session\nBuild…
Jim C
  • 3,957
  • 25
  • 85
  • 162
0
votes
2 answers

npm install polymer-cli fails with error code error code EBADPLATFORM

npm install polymer-cli fails in my build definition with the following message Error: C:\Program Files\nodejs\npm.cmd failed with return code: 1\npm.cmd failed with return code: 1 This worked in the last build and there was no file change. From…
Priya
  • 11
  • 3
0
votes
0 answers

Polymer-starter-kit: my-app.html missing from bundled build folder

I am using the polymer-starter kit for my app and tried building it. When opening the index.html of the builded app the my-app.html is missing. I didn't change any files in the starter kit, and the problem also appears. Steps to Reproduce Create an…
0
votes
1 answer

How to get polymer version 1 starter-kit with polymer cli?

If I run polymer init it's only possible to select templates of polymer 2.0. Is it possible to select templates of polymer 1.0 too? If it's possible, how can I do this?
michael-mammut
  • 2,595
  • 5
  • 28
  • 46
0
votes
1 answer

How do you specify which browsers Sauce Labs should use when initiating tests from the Polymer CLI?

I have a Polymer v1.7 element only project. I have it set up with Travis CI and Sauce Labs which works great! However, I would like to be able to initiate tests in specific browsers through Sauce Labs without having to tinker with my wct.conf.json…
Ben
  • 5,525
  • 8
  • 42
  • 66
0
votes
1 answer

Polymer CLI and Firebase: what is the best build model?

Polymer CLI comes with several build options, including preset like es5-bundled. I want to run my app on Firebase and have it compatible with older browser like IE11. Are there specific build options that I should use?
Joce M
  • 21
  • 2
0
votes
2 answers

Does polymer build command provided by polymer-cli minifies html, css and js by default?

Does polymer build command provided by polymer-cli minifies html, css and js by default or we have to use polymer build --bundle --js-minify --css-minify --html-minify or use polymer.json for it?
Gaurav Singh
  • 176
  • 1
  • 4
0
votes
1 answer

Is there a way to not generate a service-worker?

With the polymer CLI https://github.com/Polymer/polymer-cli I can't run something like polymer build --add-service-worker false --entrypoint ./elements.html right? Is there a different way?
Marc Borni
  • 384
  • 1
  • 17
0
votes
1 answer

Bundle bower components in separate vendor html than in shell defined in polymer.json

I am trying to bundle my Polymer application through polymer cli. My application pulls up data upto 275kb for a simple page. In my polymer.json file, I have fragmented all my custom polymer elements with src/my-app.html as shell. Problem is that…
Vineet 'DEVIN' Dev
  • 1,183
  • 1
  • 10
  • 35
0
votes
1 answer

Creating custom polymer element

I am trying to create a new template such that if I do this: polymer init I get a new project created in the development system. Is there any documentation on how I can do this?
user1700184
  • 1,611
  • 2
  • 16
  • 23
0
votes
2 answers

How to workaround a polymer project build when google-chart is in use?

If in polymer project I add google-chart: and trying to polymer build, then I'm getting following error messages: error: Promise rejection: Error: no resolver found for…
Ed Ilyin
  • 221
  • 1
  • 6
0
votes
1 answer

How to use a different toolbar for each page with Polymer app elements

I am trying to create an app using Polymer app elements, based on the polymer-cli application generated using the app-drawer-template. The problem I have is that I want to use a different app-header in each child page but I can't seem to make that…
kpg
  • 7,644
  • 6
  • 34
  • 67
0
votes
1 answer

Polymer 1.6 and Polymer-cli, access app property from within a custom element

Using the polymer-cli tool, and the shopping cart boilerplate as a starting point, I made a simple mock-up to illustrate the use case. Assume your index.html file includes "test-app.html" and the matching tag …
rud
  • 59
  • 7