linemanjs / lineman

Lineman helps you build fat-client JavaScript apps. It produces happiness by building assets, mocking servers, running specs on every file change
MIT License
1.18k stars 80 forks source link

Adding bootstrap-sass through bower into project #307

Closed sturoid closed 10 years ago

sturoid commented 10 years ago

I have tried everything under the sun to add bootstrap-sass to the project. I'm using lineman-bower and installing the package. Then I am referencing the files in files.js. I can see that the files are all added through the sources tab in the browser but nothing works. I'm guessing it's because it compiles everything as sass into the app.css file so it can't interpret the sass once there, but I'm not certain if that's true or how to fix it if it is. Is there anyone out there that has gotten this working? Thank you for your time.

Bower.json:

  "devDependencies": {
    "ember": ">=1.7.0-beta.4",
    "ember-data": ">=1.0.0-beta.8",
    "bootstrap-sass-official", "latest"
  }

config/files.js:

module.exports = function(lineman) {
  //Override file patterns here
  return {
    js: {
      vendor: [
        "vendor/bower/jquery/dist/jquery.js",
        "vendor/bower/handlebars/handlebars.js",
        "vendor/bower/ember/ember.js",
        "vendor/bower/ember-data/ember-data.js",
        "vendor/bower/bootstrap-sass-official/assets/javascripts/**/*.js",
      ]
    },
    css: {
      vendor: [
        "vendor/bower/bootstrap-sass-official/assets/stylesheets/**/*.scss"
      ]
    },
    webfonts: {
      vendor: [
        "vendor/bower/bootstrap-sass-official/assets/fonts/bootstrap/*"
      ]
    }
  };
};
searls commented 10 years ago

Sorry for the frustration you're experiencing. It's very possible you're the only person pulling in bootstrap-sass with bower. 

I suspect part of the problem is ljneman only sets up app/css and vendor/css as load paths. Run lineman config sass to see what I'm talking about. That property option will need directories added for each root path containing sass

On Thu, Aug 7, 2014 at 9:05 PM, Stuart Clove notifications@github.com wrote:

Reopened #307.

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/307#event-150545061

sturoid commented 10 years ago

Hey Justin, thanks a ton for the help. That is great to know. Where is that file located?

sturoid commented 10 years ago

Sorry about that I found it. I will try that out and see how it goes. Thanks again.