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

index.js aliases #1

Closed
wants to merge 1 commit into from
Closed

index.js aliases #1

wants to merge 1 commit into from

Conversation

josh
Copy link
Contributor

@josh josh commented Sep 11, 2012

Kinda late to the party here. I should have brought this up way earlier.

It would be nice if we had an index.js aliases so if your package managed supported the shorthand, you could just require('jquery') instead of require('jquery/jquery').

It'd be sort of nice to assume main meant the same thing as index.js, but its weird that component.json's main value can accept an array.

Maybe this is a discussion for bower-core? Also I dunno if its way to late or even a good idea to repush those tags.

/cc @paulirish @fat @maccman

@josh josh closed this Sep 14, 2012
@fat
Copy link
Member

fat commented Sep 14, 2012

the reason main can accept an array is for things like bootstrap - which have css/js…

There should still probably only ever really be one js file in main

@josh
Copy link
Contributor Author

josh commented Sep 14, 2012

@fat related sstephenson/sprockets#358. Can we make that clear in the spec? Maybe even console.warn if there are multiple files with the same extname in the main array?

This pull request was closed.
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 this pull request may close these issues.

2 participants