googlearchive / polylint

Lint polymer!
BSD 3-Clause "New" or "Revised" License
116 stars 19 forks source link

Ability to customize serving paths #65

Open rictic opened 8 years ago

rictic commented 8 years ago

Polymer starter kit is laid out like

The default server is configured with bower_components served over HTTP as though it were inside of the app directory. As a result, the HTML imports in my-element only go up by one ../ but polylint can't find any files at e.g. app/bower_components/polymer/polymer.html.

It would be useful if we could specify how the directories in the filesystem will be served out over HTTP. Simple strawman:

.polylintrc

{
  "servingPaths": {
    "/bower_components/": "./bower_components/",
    "/": "./app/"
  }
}
marcushellberg commented 8 years ago

+1

MeTaNoV commented 8 years ago

+2

marvinrichter commented 8 years ago

I would rather configure Bower where /bower_components/ should be located:

.bowerrc

{
  "directory": "app/bower_components"
}

resulting in

├── app
│   ├── bower_components
│   ├── elements
│   │   ├── my-element.html
Artanis commented 8 years ago

Discussed here earlier this year: PolymerElements/polymer-starter-kit#635 Still need to upgrade my project to check, but this was probably fixed late last year when bower_components was moved into app to make vulcanizing easier: PolymerElements/polymer-starter-kit#568.