-
Notifications
You must be signed in to change notification settings - Fork 117
dependencies in the manifest as straight up aliases #240
Comments
Haha we tried this exact same thing in NPM: npm/npm#3014 I think our manifest approach is better, but I definitely wish they would allow this feature in NPM. Especially since, it's like realllly close. |
I guess, disregarding npm, was just thinking that if we have the keys in So if someone had a component on Bitbucket as Does that make sense? |
+1 |
I would love to have this, too. I've my own build system right now in https://github.com/FremyCompany/css-grid-polyfill/ where I can name individual files with aliases. If I were to move to "duo" then I would split into more repositories, about one per file, but it may be good to be able to keep the aliases. See https://github.com/FremyCompany/css-grid-polyfill/blob/master/src/css-grid/polyfill.js#L9 for an example of how it works to hot-link the shared 'https://github.com/FremyCompany/css-grid-polyfill/blob/master/src/core/css-cascade.js' file from the 'css-grid' project right now. |
I've changed my mind on this one. I think the https://gist.github.com/defunctzombie/4339901 |
That looks great, and would solve my "issue" perfectly :-) |
Just thinking out loud here, but I think it would be cool if
dependencies
in the manifest was literally just an alias dictionary instead of having the keys be important themselves in terms of resolving dependencies. By that I mean that currently we have this:But instead it we had this:
Then in a
package.json
we could also do:And then in our source we can do:
In both Duo and npm lands. Basically it gives us the power to not have to
try/catch
requires just because npm names aren't aliasable.One downside is that not all cases are covered:
Another downside is that it might not be able to be done and keep backwards compatibility for the existing components out there?
The text was updated successfully, but these errors were encountered: