Chrome开发者编辑器使用Bower和Highcharts Shim

时间:2014-07-01 15:27:57

标签: javascript highcharts google-chrome-app bower polymer

我正致力于在Chrome Dev Editor中设置聚合物网络应用。 bower.json看起来像这样:

{
  "name": "HighchartsTest",
  "description": "",
  "homepage": "",
  "keywords": [
  ],
  "author": "",
  "private": true,
  "dependencies": {
    "polymer": "Polymer/polymer#master",
    "core-elements": "Polymer/core-elements#master"
  }

我无法让凉亭拉下highcharts垫片(或者高脚垫)。我以为我可以做这种格式:

{
  "name": "HighchartsTest",
  "description": "",
  "homepage": "",
  "keywords": [
  ],
  "author": "",
  "private": true,
  "dependencies": {
    "polymer": "Polymer/polymer#master",
    "core-elements": "Polymer/core-elements#master",
    "highstock-release": "js/highstock-release"
  }

但是,这只会在名为bower_components的{​​{1}}下创建一个目录,但它只包含一个没有实际源代码的highstock-release目录。

我做错了什么?

1 个答案:

答案 0 :(得分:3)

我认为你想要" highslide-software / highstock-release"

在你的bower配置中,依赖关系是" github语法",因此它们被扩展为" git://github.com/highslide-software/highstock-release",等