Skip to content

Instantly share code, notes, and snippets.

@cjbell
Last active January 2, 2016 19:59
Show Gist options
  • Save cjbell/365be5e1fce70344ad22 to your computer and use it in GitHub Desktop.
Save cjbell/365be5e1fce70344ad22 to your computer and use it in GitHub Desktop.
Bower + Rails
{
"directory": "vendor/assets/components"
}
// When importing your deps, use the folder too
// This is the same for the JS too
@import "normalize-css/normalize";
# ...
class Application < Rails::Application
# ...
config.assets.paths << Rails.root.join("vendor", "assets", "components")
# ...
end
# ...
{
"name": "your-app",
"dependencies": {
"normalize-css": "~2.1.3"
}
}
{
"name": "your-app",
"devDependencies" : {
"bower": "~1.2.8"
},
"dependencies": {
},
"license": "MIT",
"engines": {
"node": ">= 0.10"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment