简体   繁体   中英

Chrome Dev Editor Using Bower and Highcharts Shim

I am working on setting up a polymer web app in the Chrome Dev Editor . The bower.json looks like this:

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

I am having trouble getting bower to pull down the highcharts shim (or the highstock). I thought I could do this format:

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

However this just creates a directory under bower_components called highstock-release but it only contains a .git directory with no actual source code.

What am I doing wrong?

I think you want "highslide-software/highstock-release"

In your bower config, the dependencies are in "github syntax", so they are expanded to "git://github.com/highslide-software/highstock-release", etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM