2014-10-24 4 views
0

я установка полимерной бумаги элементы, используя Бауэр, как в:bower_components путь содержит бумажные элементы номер версии

bower install Polymer/paper-tabs 

Полученная структура папка содержит номер версии, как в:

bower_components/paper-tabs/paper-tabs-0.4.2 

могу удерживайте нос и добавьте полный путь в импорте, но последующие зависимости не устраняются. Например, бумажные вкладки не могут импортировать бумажные вкладки/селектор.

Я использую:

  • узел 0.10.26
  • Bower 1.3.12
  • полимер 0.4.2
  • бумажные элементы 0.4.2

Я проверил беседку CLI, и я не вижу очевидного способа подавить создание папки с версией.

Любые мысли?

Благодаря - CT

ответ

0

Возможно импортировать файл HTML против директории может помочь:

<link rel="import" href="bower_components/paper-tabs/paper-tabs.html"> 

Возможности для последующих зависимостей не решение, где корневая местоположение сервера есть. Если он работает с того же уровня каталогов, что и bower_components, вставка вышеприведенного импорта HTML на том же уровне должна работать.

Для справки, вот что мой водопад зависимость выглядел:

$ bower install Polymer/paper-tabs 
bower cached  git://github.com/Polymer/paper-tabs.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/paper-tabs.git#* 
bower cached  git://github.com/Polymer/core-selector.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-selector.git#^0.4.0 
bower cached  git://github.com/Polymer/core-icons.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-icons.git#^0.4.0 
bower cached  git://github.com/Polymer/core-toolbar.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-toolbar.git#^0.4.0 
bower cached  git://github.com/Polymer/font-roboto.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/font-roboto.git#^0.4.0 
bower cached  git://github.com/Polymer/paper-icon-button.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/paper-icon-button.git#^0.4.0 
bower cached  git://github.com/Polymer/paper-ripple.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/paper-ripple.git#^0.4.0 
bower cached  git://github.com/Polymer/polymer.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/polymer.git#^0.4.0 
bower cached  git://github.com/Polymer/core-selection.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-selection.git#^0.4.0 
bower cached  git://github.com/Polymer/core-icon.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-icon.git#^0.4.0 
bower cached  git://github.com/Polymer/core-iconset-svg.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-iconset-svg.git#^0.4.0 
bower cached  git://github.com/Polymer/core-icon-button.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-icon-button.git#^0.4.0 
bower cached  git://github.com/Polymer/core-media-query.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-media-query.git#^0.4.0 
bower cached  git://github.com/Polymer/paper-button.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/paper-button.git#^0.4.0 
bower cached  git://github.com/Polymer/core-iconset.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-iconset.git#^0.4.0 
bower cached  git://github.com/Polymer/paper-focusable.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/paper-focusable.git#^0.4.0 
bower cached  git://github.com/Polymer/paper-shadow.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/paper-shadow.git#^0.4.0 
bower cached  git://github.com/Polymer/core-component-page.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-component-page.git#^0.4.0 
bower cached  git://github.com/Polymer/platform.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/platform.git#^0.4.0 
bower cached  git://github.com/Polymer/core-meta.git#0.4.2 
bower validate  0.4.2 against git://github.com/Polymer/core-meta.git#^0.4.0 
bower install  paper-tabs#0.4.2 
bower install  core-selector#0.4.2 
bower install  core-icons#0.4.2 
bower install  core-toolbar#0.4.2 
bower install  paper-ripple#0.4.2 
bower install  font-roboto#0.4.2 
bower install  paper-icon-button#0.4.2 
bower install  core-selection#0.4.2 
bower install  core-iconset-svg#0.4.2 
bower install  core-icon#0.4.2 
bower install  core-media-query#0.4.2 
bower install  core-icon-button#0.4.2 
bower install  paper-button#0.4.2 
bower install  polymer#0.4.2 
bower install  core-iconset#0.4.2 
bower install  paper-focusable#0.4.2 
bower install  paper-shadow#0.4.2 
bower install  core-component-page#0.4.2 
bower install  platform#0.4.2 
bower install  core-meta#0.4.2 

paper-tabs#0.4.2 bower_components/paper-tabs 
├── core-icons#0.4.2 
├── core-selector#0.4.2 
├── core-toolbar#0.4.2 
├── font-roboto#0.4.2 
├── paper-icon-button#0.4.2 
└── paper-ripple#0.4.2 

core-selector#0.4.2 bower_components/core-selector 
├── core-selection#0.4.2 
└── polymer#0.4.2 

core-icons#0.4.2 bower_components/core-icons 
├── core-icon#0.4.2 
├── core-iconset-svg#0.4.2 
└── polymer#0.4.2 

core-toolbar#0.4.2 bower_components/core-toolbar 
├── core-icon-button#0.4.2 
└── core-media-query#0.4.2 

paper-ripple#0.4.2 bower_components/paper-ripple 
├── core-icon#0.4.2 
├── core-icons#0.4.2 
└── font-roboto#0.4.2 

font-roboto#0.4.2 bower_components/font-roboto 

paper-icon-button#0.4.2 bower_components/paper-icon-button 
├── core-selector#0.4.2 
├── paper-button#0.4.2 
└── polymer#0.4.2 

core-selection#0.4.2 bower_components/core-selection 
└── polymer#0.4.2 

core-iconset-svg#0.4.2 bower_components/core-iconset-svg 
├── core-iconset#0.4.2 
└── polymer#0.4.2 

core-icon#0.4.2 bower_components/core-icon 
├── core-icons#0.4.2 
└── core-iconset#0.4.2 

core-media-query#0.4.2 bower_components/core-media-query 
└── polymer#0.4.2 

core-icon-button#0.4.2 bower_components/core-icon-button 
└── core-icons#0.4.2 

paper-button#0.4.2 bower_components/paper-button 
├── core-icon#0.4.2 
├── paper-focusable#0.4.2 
├── paper-ripple#0.4.2 
├── paper-shadow#0.4.2 
└── polymer#0.4.2 

polymer#0.4.2 bower_components/polymer 
├── core-component-page#0.4.2 
└── platform#0.4.2 

core-iconset#0.4.2 bower_components/core-iconset 
├── core-icon#0.4.2 
├── core-meta#0.4.2 
└── polymer#0.4.2 

paper-focusable#0.4.2 bower_components/paper-focusable 
└── polymer#0.4.2 

paper-shadow#0.4.2 bower_components/paper-shadow 
└── polymer#0.4.2 

core-component-page#0.4.2 bower_components/core-component-page 
├── platform#0.4.2 
└── polymer#0.4.2 

platform#0.4.2 bower_components/platform 

core-meta#0.4.2 bower_components/core-meta 
└── polymer#0.4.2 

где каталог бумажно-вкладка дает эти файлы (не прилагаемого номер версии в каталог):

README.md demo.html metadata.html paper-tab.html paper-tabs.html 
bower.json index.html paper-tab.css paper-tabs.css