-
Notifications
You must be signed in to change notification settings - Fork 3
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
materialize is not loaded by plugin #2
Comments
Was about to ask if there was any reason why there is no dependency on materialize-css :) |
Just didn't have time to do it :) |
@tlvenn if you know how to work with shims and systemjs, I could use a hand: I can't figure out how to make it work |
Bonjour Manuel, It seems someone tried already to load Materialize with jspm and Guy Bedford helped figure out how to do this properly: That being said, from what I can tell, Materialize has more dependencies than just Jquery. Reading Dogfalo/materialize#634 it seems that there are 3 dependencies in total:
Using the pointers from the first link, I hope it should now be easy to shim properly Materialize. |
Given that Materialize is in the jspm registry already, I am not sure much is needed anymore... |
Or not given it only declare Jquery as dependency... Probably need to create a PR to update this. |
It now works as a JSPM dependency. The only thing I don't really like is that the Thanks for your help, and if you wish to contribute more, PRs are welcome :) |
Will do, maybe we could create an issue with a todo list of the materialize components that need attention to leverage aurelia bindings. Might be a good starting point. Kind of a roadmap. Getting back to dependencies, i checked and velocty/hammerJs are actually inlined in materialize js which left us with Jquery alone as external dependency. If you are using either of those 2 libs, you will end up with twice the code for those... |
The roadmap is a good idea; I'll create a wiki page for this. As for materialize's dependencies, it's not ideal, but there's not much we can do about it. We can either deal with it or stop using the javascript part of materialize and implement all the widgets ourselves from scratch. I don't think that second option is worth the effort for now. Let's deal with this issue later. |
Yes, trying to see if we can get Materialize to push a minimal lib with no dependencies at all. Then with Jspm override, we can declare those dependencies and point to that file as the main file. |
Great! |
For reference: Dogfalo/materialize#1741 |
No description provided.
The text was updated successfully, but these errors were encountered: