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
16
votes
2 answers

Polymer Starter Kit vs Polymer App Toolbox

What's the difference between Polymer Starter Kit and Polymer App Toolbox? Both are collections of web components, build & testing tools, and Material Design templates for building Progressive Web Apps with Polymer. Which one should I base my new…
8
votes
2 answers

Polymer component template minification

I'm looking for a way to minify the white space in template literals. Since regular js minification wouldn't remove white space on a template literal I was expecting that maybe polymer-cli had a way to minify those. An example of the result of…
fernandopasik
  • 9,565
  • 7
  • 48
  • 55
7
votes
3 answers

How to configure proxy server in polymer cli

Is there any way to configure proxy server in polymer-cli ? similar to webpack-dev-server proxy. I've check any possible documentation with no success
Adi Setiawan
  • 73
  • 1
  • 4
6
votes
1 answer

my-app.html missing from bundled build folder

I have a situation where I am using polymer starter-kit template for my app. My polymer.json files looks like this: { "entrypoint": "index.html", "shell": "src/my-app.html", "fragments": [ ], "sourceGlobs": [ …
sandav
  • 323
  • 1
  • 4
  • 11
5
votes
7 answers

polymer-cli installation failure on Ubuntu

No matter what I try, every time I try to install polymer-cli, it always comes up with a PERMISSION_DENIED error. bradley@gurulaptop:~$ sudo npm -g install polymer-cli npm WARN deprecated bower@1.8.0: ..psst! While Bower is maintained, we recommend…
En Coder
  • 51
  • 3
5
votes
2 answers

Watch and reaload for polymer serve / polyserve?

I'm trying to figure out a way to make polyserve / polymer-cli to reload my browser each time a "watched" file changes but I haven't found anything apart of adding Livereload to the HTMLs files that I think is going to be a mess due that when…
AlbertoFdzM
  • 1,023
  • 11
  • 24
5
votes
1 answer

Service Worker: How to build "Fresh" version of website for each new deployment?

The Problem I'm having an issue with a website (built w/ the Polymer Shop template) in production that's serving up old versions of code despite my new and improved deployments. I'm using the Polymer CLI $ polymer build command along w/ the Firebase…
Oneezy
  • 4,881
  • 7
  • 44
  • 73
5
votes
1 answer

Polymer serve and service worker

I am trying to get started on debugging my Polymer application. I have hand crafted it by copying what I think the PolymerCLI Polymer init does. I am not sure what is loading service worker. The default one for development just does a…
akc42
  • 4,893
  • 5
  • 41
  • 60
4
votes
2 answers

How to view the Polymerfire demo using Polymer’s `polymer serve` polyserve server?

I want to view this demo of Polymerfire in my browser. I expect to see the demo run in my browser. Instead, I see a blank page and the following console error. console.log.error.message GET http://localhost:8080/ 404 (Not Found) Navigated to…
3
votes
2 answers

Polymer build with custom babel plugins?

We'd like to be able to add custom functionality to polymer build and polymer serve by configuring custom babel plugins. For example, since polymer-cli uses babel internally, we would add a babel.config.js file to our workspace/project-root,…
Scott Smith
  • 3,900
  • 2
  • 31
  • 63
3
votes
1 answer

Polymer CLI and require

I am trying to build a Polymer 3 component that has a dependency on a library that uses Node's require to function. Can I use the Polymer CLI serve and build components that have node style required file?
Gajit
  • 135
  • 1
  • 6
3
votes
2 answers

How to work around updating polymer-cli on Ubuntu on Windows which fails due to .git: Permission denied

I need a workaround for updating polymer-cli on Ubuntu shell on Windows 10 which fails due to "...git: Permission denied". I am following this running an Administrator Ubuntu shell on Windows 10. All is well until $ sudo npm install -g polymer-cli…
3
votes
1 answer

Polymer serve refuses external connections

I can connect to my server on port 8081 no problem: if I do nc -l 8081 on my server, and nc my.host.name 8081 on my local machine, I can send and receive everything perfectly. But if I do polymer serve on my server, doing nc my.host.name 8081 on my…
phsyron
  • 520
  • 3
  • 17
3
votes
1 answer

How to identify what polymer-cli version installed on my computer?

How can i identify what polymer-cli version installed on my computer ? I mean to say when we want to know the version of npm-cli and bower-cli etc we do npm -v bower -v gulp -v is there is any command or something to get polymer-cli version
rashfmnb
  • 9,959
  • 4
  • 33
  • 44
3
votes
3 answers

'polymer' is not recognized as an internal or external command

I recently installed nodejs, bower. Then, I installed polymer using this command: npm install -g polymer Then, I added the polymer install path: C:\Users\\AppData\Roaming\npm Then, I am trying to do polymer init. I am seeing this…
user1700184
  • 1,611
  • 2
  • 16
  • 23
1
2 3 4 5 6