twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
https://getbootstrap.com
MIT License
170.48k stars 78.83k forks source link

[Feature] Generate a all.min.js #828

Closed dbpolito closed 12 years ago

dbpolito commented 12 years ago

Would be great if we have a file all.min.js with all .js there.

Congratulation for your work guys.

mdo commented 12 years ago

Agreed! Let's ask @fat.

pokonski commented 12 years ago

I think @jasny started working on this here https://github.com/jasny/bootstrap/tree/2.0-uglify

fat commented 12 years ago

It's on my list to build a service which builds the files together (this is pretty necessary for the 2.0 plugins). If anyone wants to step up and build a jsonp endpoint for this, that would be... basically amazing.

pokonski commented 12 years ago

@fat, you mean something like a server side customizer as seen here http://www.initializr.com/advanced ?

jasny commented 12 years ago

I simply stick all uglified files together. Not really refined. Isn't ender suppose to be a solution for this? http://ender.no.de

P.S. Please note that I run a heavily modified fork of Bootstrap 2.0. Not all branches are intended to be merged back into the Twitter version. Each new feature is put in it's own branch before merging it into my master. So do feel free to check it out :)

fat commented 12 years ago

The mootools crew has had one for ages which is pretty great: http://mootools.net/core/

I think @markdotto and i will want to build the interface into our docs (mark will hopefull design some hottness for it) - so we just need an api endpoint which takes some arguments and returns the built file. (probably with an option to do compressed or uncompressed code). I was thinking about using ender for it :)

pokonski commented 12 years ago

I could try writing a simple API with node.js? I don't know what server side requirements do you need? I write web stuff in Ruby ;)

pokonski commented 12 years ago

I hacked a little something something as a proof of concept => http://bootstrapr.okonski.org/

Repo: https://github.com/pokonski/bootstrapr

dbpolito commented 12 years ago

Great work. Would be ever better if it have an select all button! :D

pokonski commented 12 years ago

Ah yes! Done ;) But this is just a rough example. This probably won't even be written in Ruby :P

fat commented 12 years ago

@pokonski this is awesome! i'll take a closer look in the next few days :)

cgunther commented 12 years ago

@pokonski I just opened a pull request on your bootstrapr project allowing building a package pulling the latest plugins right from GitHub instead of just using the static files included.

pokonski commented 12 years ago

Great! I actually considered that :)

fat commented 12 years ago

@pokonski i ported your code to node - and implemented a simple ui in the 2.0 docs. This will likely be improved upon - but should definitely make it into 2.0 :)

pokonski commented 12 years ago

Nice :-)

pokonski commented 12 years ago

Are you using the loadbuilder/loadrunner for this?

cgunther commented 12 years ago

Any chance of open-sourcing the builder? :)

I toyed with porting @pokonski's code to Node but didn't get far, I'm much more proficient with Ruby. I'd be curious to see how you implemented it compared to my attempts.

fat commented 12 years ago

here's a gist: https://gist.github.com/1601997 - won't likely open source it as a project because it's so simple

fat commented 12 years ago

@pokonski Didn't use loadbuilder/runner that was just for something at work :)

pokonski commented 12 years ago

I see :) Also that 'jsonpi' plugin is clever!

fat commented 12 years ago

isn't it? @benvinegar is a genius and a maverick.

cgunther commented 12 years ago

Thanks for the gist.