johnpapa / generator-hottowel

Yo generator that creates an Angular app via HotTowel
835 stars 230 forks source link

Index.html missing bootstrap.js #119

Closed patelmaulik closed 8 years ago

patelmaulik commented 9 years ago

gulp wiredep is failing to wire-up bootstrap.js

Index.html misses:

script src="/bower_components/bootstrap/dist/js/bootstrap.js"

olso commented 9 years ago
{
  "name": "spui",
  "version": "0.0.1",
  "ignore": [
    "build",
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "devDependencies": {
    "angular-mocks": "~1.3.17",
    "sinon": "http://sinonjs.org/releases/sinon-1.12.1.js",
    "bardjs": "~0.1.4"
  },
  "dependencies": {
    "jquery": "~2.1.4",
    "angular": "~1.3.17",
    "angular-sanitize": "~1.3.17",
    "extras.angular.plus": "~0.9.2",
    "moment": "~2.10.3",
    "angular-ui-router": "~0.2.15",
    "angular-animate": "~1.3.17",
    "bootstrap": "~3.3.5",
    "font-awesome": "~4.4.0",
    "toastr": "~2.1.2",
    "lodash": "~3.10.1",
    "angular-bootstrap": "~0.13.3"
  },
  "resolutions": {
    "angular": "~1.3.17"
  },
  "overrides": {
    "bootstrap": {
      "main": [
        "dist/css/bootstrap.css",
        "dist/js/bootstrap.js"
      ]
    },
    "font-awesome": {
      "main": [
        "css/font-awesome.css",
        "fonts/fontawesome-webfont.eot",
        "fonts/fontawesome-webfont.svg",
        "fonts/fontawesome-webfont.ttf",
        "fonts/fontawesome-webfont.woff",
        "fonts/fontawesome-webfont.woff2"
      ]
    }
  }
}

add overrides to your bower.json

ssbrewster commented 9 years ago

@patelmaulik is this still an issue? I couldn't replicate it.

patelmaulik commented 9 years ago

Hi Simon,

Thanks for your reply.

Since adding the override in bower.json, it's no longer an issue.

Kind regards,

Maulik

On 10 Nov 2015, at 10:49, Simon Brewster notifications@github.com wrote:

@patelmaulik is this still an issue? I couldn't replicate it.

— Reply to this email directly or view it on GitHub.

johnpapa commented 8 years ago

good to hear/

webattitude commented 8 years ago

@olso well, still it does not work...