mui icon indicating copy to clipboard operation
mui copied to clipboard

what .js file to use?

Open cekvenich opened this issue 7 years ago • 6 comments

I don't like .min files. In src there is mui.js (47 k) or mui-combined.js (57 k). Which .js should I use? Mui.js?

I download master zip manually and node install takes forever -but build works, hard to guess the output folder. Doc bugs: 1 Step npm install --save muicss fails as no react. 2 Step git clone [email protected]:muicss/mui.git - fails says I don't have rights. 3 Bower step works / but build build cdn fails 4 And minor - but email styling to me is a minus - I'd quit any job where that was there, so I'd hide that a bit under appendix. (The reasons I first passed on MUI moths back was due to this 'feature'.

Should be less effort to start. hth.

But nice lib. (I just left MDL v2 - looked at all material: like smallish .js here (still to big) and SASS focus - wish for more BME and even more mixins). Cheers.

cekvenich avatar Sep 28 '16 05:09 cekvenich

Hi @cekvenich! It's great to hear you're finding MUI useful.

If you want a small payload, you can use mui.min.js (5.8KB gzipped). If you don't want a minified file you can use mui.js (12KB gzipped).

The mui-combined.js file is a combined JS+CSS file. If you use that file then you don't need to load the CSS separately.

Here are some comments on the issues you ran into:

1 Step npm install --save muicss fails as no react.

React is listed as a peer dependency https://github.com/muicss/mui/blob/master/packages/npm/package.json#L25

2 Step git clone [email protected]:muicss/mui.git - fails says I don't have rights.

I think GitHub should let you clone the repo from the https url. You can also fork the repository and then clone from your copy.

3 Bower step works / but build build cdn fails

What command did you run and what error did you get?

amorey avatar Sep 28 '16 06:09 amorey

Hi, first I want to show you that I got it to work based on your examples: http://arch.paperplane.io/post/two Item1 and 2 are different pages(I was just lazy to change more of the text when I copied), but w/ smoothstatejs and nav and bar 'work' - as example. (minor bug in your layout is that you move the content and not the sidebar which does layout 10 times as it moves, you can view source main.js to see what I did, I changed no _sass, and tried to be as close as possible to your layout).

OK, now back to the thread here, the major bug. Like I said, I have been developing 15 years, recently been doing my own SASS, and just checked all others popular frame works. I think the only reasons your FW is not most popular (ex: https://twitter.com/MaterializeCSS followers # ) is that it's hard to adopt. I suggest you give $(85/hour) to a friend to implement MUI w/ sass on their pc. Or I recommend that your instructions should be only one (not many choices): download sass folder. That works fine, all this cdn css and bower and other is a deployment prevention. There are many n00b friendly FW, let them fight it out, to me yours is best for people that have experience or pros. But the FW that wins is that one that is easiest to implement, not the best one, and most people will give up.

I'm my case, I am going to use MUI (after ignoring instructions). But most important, thank you for donating your time and showing of your great works, IMO the beast FW!

I'll be doing more w/ this, ex: http://masons-foundation.org/en/s_home/webComp/comp1 and I'll write a blog on MUI also, maybe a user group meet up in SF bay area to show why I like MUI.

cekvenich avatar Sep 30 '16 03:09 cekvenich

Oh and I listed the bugs at top. And .js is... optional. Good. Docs did not make that clear. (Ideally there's a way to use some of the js features and comment out others like we can w/ sass)

cekvenich avatar Sep 30 '16 12:09 cekvenich

Thanks for the feedback! I think we would definitely benefit from improving the documentation and making the framework as easy to use as possible. We're definitely targeting more experienced developers so I think over time we'll see more and more users coming to MUI. We're already reaching 500K users from our CDN so we're making progress!

Let me know how the user group goes. I'd love to hear more feedback from the group.

amorey avatar Oct 01 '16 22:10 amorey

@cekvenich Did you have your group meetup yet? When you get a chance please let us know how it went.

amorey avatar Oct 21 '16 14:10 amorey

I plan to have meet up and 2 classes within next few weeks. So far I just did this: https://www.meetup.com/advanced-interaction-dev I'll be reaching out to get any support.

cekvenich avatar Oct 23 '16 23:10 cekvenich