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

Bower support #368

Closed
DylanPiercey opened this issue Feb 25, 2015 · 5 comments
Closed

Bower support #368

DylanPiercey opened this issue Feb 25, 2015 · 5 comments
Labels
support: question Community support but can be turned into an improvement

Comments

@DylanPiercey
Copy link

Could this package be registered on bower?

@janeluck
Copy link

janeluck commented Mar 3, 2015

As its "README.md" said, you can install it with the command "npm install material-ui". If you prefer "bower", you can add one line to "bower.json" as following:

"dependencies": {
  "material-ui": "callemall/material-ui"
}

then bower install

@jgable
Copy link

jgable commented Mar 6, 2015

The problem is that the code is not published with a lib folder on bower, so the code is essentially useless in bower without some post install processing.

I've used browserify to do a global window build in my fork and made it available as a release. With that, you can modify the bower dependencies to be:

"dependencies": {
  "material-ui": "https://github.com/jgable/material-ui/archive/v0.7.1-global.tar.gz"
}

And you will now have a /dist/built.js file that will expose the components as window.MaterialUI. There is some hacky changes to the way react is required that I had to do, but as long as React is included before that release it will work fine.

@jonaskello
Copy link

+1 for providing a distribution that is globally usable from window.MaterialUI. That way I would be able to consume it from Dart.

@buob
Copy link

buob commented Sep 2, 2015

I'd love to see @jgable's branch merged (or a similar strategy) -- Really I would just like a built version that I can make into a cljsjs package so I can use this awesome project in clojurescript om

@shaurya947
Copy link
Contributor

Is there still interest in seeing this as a package on bower? Btw, once you clone the repo, all you gotta do is transpile the src folder:

babel src/ -d lib

(closing for now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

7 participants