-
-
Notifications
You must be signed in to change notification settings - Fork 255
Materialize css #224
Comments
@chrisronline have a look at Bootstrap as an example - https://github.com/jspm/registry/blob/master/package-overrides/github/twbs/bootstrap%403.1.0.json. Note that the shim only defines the modular dependency. It is like writing |
Thanks @guybedford. I think I'm understanding more about this. If I install the library with this command:
It generates this in the .jspm.json:
However, when I open
I know the modified
The configs looks identical to me - what am I missing? A side note - if I install with no global option, it defaults to Thanks |
You need to remove the Yes jspm is scanning the sources to guess the module format when none is set. |
Perfect. Works now. What is the recommendation for handling this installation configs across machines/developers? Can I commit the custom installation into source control somehow? Like, in my example, I don't see where my setting the format to global exists anywhere outside of the |
The recommendation is to send a PR to the jspm registry at https://github.com/jspm/registry/ so that all users can share this configuration. We're going to have workflows to make this better in future, but for now it has to be a manual PR. |
Sounds good. Thanks for the help @guybedford |
Hi, I need to install materialize framework in my project and I am using jspm. When I issue the command: also is the command correct if I need to install the materialize framework through jspm |
@zeeshanjan82 you can also include your override in the package.json via: override.json {
"main": "js/bin/materialize.js",
"shim": {
"js/bin/materialize.js": [
"jquery"
]
},
"format": "global",
"dependencies": {
"jquery": "*"
}
} jspm install github:dogfalo/materialize -o override.json |
Thanks @guybedford but I am still getting the same error as yesterday. I have attached the screeshot |
@zeeshanjan82 yes the package.json file at https://github.com/Dogfalo/materialize/blob/v0.97.0/package.json#L14 is badly formatted. I think throwing here is the right thing to do actually. Perhaps post an issue on the project page for this repo. |
Package.json has been fixed and they recreated the 0.97 tag so you can now jspm install it properly. |
Thanks @tlvenn and @guybedford I have tried and it works well now. I appreciate your help. |
Facing this issue. jspm/demo-es6#15 |
Have fixed the issue, just had to import jquery. |
Hi, I'm new to this and would like to know if materializecss can be used when also using Aurelia. So far what I've done that's running is jspm init on my root, install Aurelia and create the app.js but already importing aurelia-bootstrapper. From here everything works fine. However, when I try using materializecss after installing it with jspm install github:dogfalo/materialize or with the options from the first comment, materializecss does not seem to work. To test this, what I did was to copy the sample from the materializecss collapsible sample markup enclosed in template tags in my app.html file like this:
and also pasted this line inside the head section of the index.html file so that I can use the icons: link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" When I browse the index.html file it renders the collapsible javascript component but nothings happens when I click on any of the component's headers It's supposed to show the collapsible body. Please let me know how to fix this. I have been trying almost every night for several days but I can't seem to make it work. |
@imvecino I used this command, You probably want to make sure there's not artefacts from previous attempts laying around.
|
I got some problems with 0.17.0-beta.38 intalling [email protected]
|
From jspm/jspm-cli#536 -
Hi there,
I'm having a hard time getting something fairly basic to work and hoping for a nudge in the direction. The issue is similar to another issue but the information listed on the ticket don't seem to help me.
I pushed a test repo up as a discussion point and will outline my issues referencing the lines of code in there. I want to load the main JS file from materializecss and with my current code, I get an error:
Uncaught ReferenceError: jQuery is not defined
jspm install github:dogfalo/materialize -o "{ main: 'js/bin/materialize.js', shim: { 'js/bin/materialize.js': ['jquery'] } }"
However, running this command (or justjspm install github:dogfalo/materialize
) doesn't seem to describe any hard dependency onjquery
in eitherpackage.json
orconfig.js
package.json
, anyjspm install
command removes the changes for whatever reason (tried what is described here)I'd absolutely love any pointers or tips on how to solve this seemingly simple problem.
Thanks
The text was updated successfully, but these errors were encountered: