jPushMenu icon indicating copy to clipboard operation
jPushMenu copied to clipboard

Package can't be found on Bower

Open drawcard opened this issue 9 years ago • 2 comments

Hi, it looks like this project can't be found on bower:

$ bower install jPushMenu

bower jPushMenu#*               cached https://github.com/takien/jPushMenu/archive/master.zip#e-tag:1e960b77f
bower jPushMenu#*             validate e-tag:1e960b77f against https://github.com/takien/jPushMenu/archive/master.zip#*
bower                        ENOTFOUND Package jPushMenu not found

drawcard avatar Jul 31 '15 01:07 drawcard

It also seems there's some errors in bower.json that are reported, when attempting to retrieve this project in another manner:

$ bower install https://github.com/takien/jPushMenu.git                          

bower jPushMenu#*           not-cached https://github.com/takien/jPushMenu.git#*
bower jPushMenu#*              resolve https://github.com/takien/jPushMenu.git#*
bower jPushMenu#*             checkout 1.1.1
bower jPushMenu#*         invalid-meta jPushMenu is missing "main" entry in bower.json
bower jPushMenu#*         invalid-meta jPushMenu is missing "ignore" entry in bower.json
bower jPushMenu#*             resolved https://github.com/takien/jPushMenu.git#1.1.1
bower jPushMenu#~1.1.1         install jPushMenu#1.1.1

drawcard avatar Jul 31 '15 01:07 drawcard

My workaround for now is to manually pull in the jPushMenu main files like so:

bower install --save takien/jPushMenu 

then editing assets/manifest.json (for Roots Sage theme):

{
  "dependencies": {
    "main.js": {
      "files": [
        "scripts/main.js",
        "../bower_components/jPushMenu/js/jPushMenu.js"
      ],
      "main": true
    },
    "main.css": {
      "files": [
        "styles/main.scss",
        "../bower_components/jPushMenu/css/jPushMenu.css"
      ],
      "main": true
    },
    "editor-style.css": {
      "files": [
        "styles/editor-style.scss"
      ]
    },
    "jquery.js": {
      "bower": ["jquery"]
    },
    "modernizr.js": {
      "bower": ["modernizr"]
    }
  },
  "config": {
    "devUrl": "local.dev"
  }
}

Not a fantastic solution but it will do until a bugfix is made.

drawcard avatar Aug 03 '15 03:08 drawcard