Angulajs-gauge组件在bower.json中,但没有连接到index.html

时间:2017-09-19 17:40:34

标签: gulp bower wiredep main-bower-files

我已经使用凉亭安装了angularjs-gauge组件。你可以看到它出现在我的bower.json下面

 {
  "name": "triangular",
  "version": "0.0.0",
  "dependencies": {
    "jquery": "^3.2.1",
    "angular": "1.5.8",
    "angular-animate": "1.5.8",
    "angular-cookies": "1.5.8",
    "angular-material": "1.1.1",
    "angular-messages": "1.5.8",
    "angular-sanitize": "1.5.8",
    "angular-ui-router": "^0.3.1",
    "angular-translate": "~2.10.0",
    "angular-translate-loader-partial": "~2.10.0",
    "angular-translate-storage-cookie": "~2.10.0",
    "angular-translate-storage-local": "~2.10.0",
    "angular-local-storage": "~0.2.5",
    "angular-digest-hud": "~0.1.13",
    "highlightjs": "^9.2.0",
    "angular-highlightjs": "^0.6.3",
    "angular-dragula": "~1.2.2",
    "angular-chart.js": "0.10.2",
    "angular-google-chart": "~0.1.0",
    "angular-nvd3": "^1.0.8",
    "angular-google-maps": "2.3.2",
    "angular-permission": "^3.2.1",
    "angular-linkify": "~1.2.0",
    "angular-material-data-table": "0.10.9",
    "angular-ui-calendar": "~1.0.1",
    "angular-moment": "~1.0.0-beta.4",
    "animatewithsass": "~3.2.2",
    "countUp.js": "1.6.1",
    "font-awesome": "~4.5.0",
    "material-design-iconic-font": "~2.2.0",
    "weather-icons": "https://github.com/chk1/weather-icons.git#master",
    "textAngular": "~1.5.0",
    "ng-file-upload": "~12.0.1",
    "angular-fixed-table-header": "^0.2.1",
    "angularjs-gauge": "^2.1.0"
  },
  "devDependencies": {
    "angular-mocks": "1.5.8"
  },
  "overrides": {
    "angular-material": {
      "main": [
        "angular-material.js",
        "angular-material.scss"
      ]
    },
    "weather-icons": {
      "main": [
        "./css/weather-icons.css",
        "./font/*"
      ]
    },
    "angular-dragula": {
      "main": [
        "dist/angular-dragula.js",
        "dist/dragula.min.css"
      ]
    },
    "font-awesome": {
      "main": [
        "./css/font-awesome.css",
        "./fonts/*"
      ]
    },
    "ng-file-upload": {
      "main": [
        "ng-file-upload-shim.js",
        "ng-file-upload.js"
      ]
    }
  },
  "resolutions": {
    "angular": "1.5.8",
    "jquery": "~2.2.1"
  },
  "main": [
    "triangular.js",
    "triangular.css",
    "triangular.scss"
  ],
  "ignore": [
    "README.md"
  ]
}

由于某种原因它出现在这里,但标签永远不会在index.html文件中为angularjs-gauge创建。其他人似乎工作正常。如果我进入我的bower_components文件夹,然后单击angularjs-gauge组件的bower.json文件,则会显示此信息。

   {
        "name": "angularjs-gauge",
        "version": "1.2.0",
        "description": "A Gauge directive for Angular 1.x apps and dashboards",
        "keywords": [
            "angular",
            "gauge",
            "speedometer",
            "js",
            "dial",
            "semi",
            "full",
            "arc"
        ],
        "main": "src/angularjs-gauge.js",
        "authors": ["Ashish Chopra"],
        "license": "MIT",
        "homepage": "https://github.com/ashish-chopra/angular-gauge",
        "ignore": [
        "**/.*",
        "node_modules",
        "bower_components",
        "test",
        "tests"
      ],
        "dependencies": {
            "angular": "~1.5.8"
        }
    }

我尝试将主要元素放入列表中,并尝试使用本文中建议的覆盖。

Grunt wiredep not wiring some bower components

但每次我执行我的gulp任务时,它只会插入除angularjs-gauge之外的所有凉亭组件。如何让它在索引文件中添加标签而不是跳过这个?

1 个答案:

答案 0 :(得分:0)

看一下这个插件https://www.npmjs.com/package/gulp-bower,还没有测试过,但它看起来很适合你