Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This component doesn't define main assets in bower.json #218

Open
jmuheim opened this issue May 4, 2014 · 1 comment · May be fixed by #219
Open

This component doesn't define main assets in bower.json #218

jmuheim opened this issue May 4, 2014 · 1 comment · May be fixed by #219

Comments

@jmuheim
Copy link

jmuheim commented May 4, 2014

I use https://rails-assets.org/components to import BootstrapFormHelpers using Bower.

While installing, I get this message:

image

I'm not exactly sure what it means, but I googled and found other projects with issues about this as well, e.g. harvesthq/chosen#1811.

So I wanted to ask what's this all about and fix it. Thank you.

@jmuheim
Copy link
Author

jmuheim commented May 4, 2014

After some research I found out that for bower to load the correct files, a main definition is needed.

Something like this should work:

{
  "name": "bootstrap-formhelpers",
  "version": "2.3.0",
  "main": ["./dist/js/bootstrap-formhelpers.js", "./dist/css/bootstrap-formhelpers.css"],
  "homepage": "http://bootstrapformhelpers.com",
  ...

Please add this as soon as possible so I can integrate the formhelpers into my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant