fiuhonors / myhonors-old

A fast, modern infrastructure and social base for students, faculty, and staff. Developed for The Honors College at Florida International University.
http://myhonors.fiu.edu
2 stars 1 forks source link

Use Grunt to concatenate, minify, and compress Javascript files #29

Open sergiopantoja opened 10 years ago

sergiopantoja commented 10 years ago

This is lower priority, but it should be done at some point. Grunt and Javascript is similar to Make and C, or to Gradle and Java. It's a "task runner" that's used to test, build, and deploy Javascript applications.

For this, I highly recommend running Linux or a VM with Linux because Grunt uses Node.js and npm: http://gruntjs.com/

If I have the time, I'll try setting up the package.json and Gruntfile.js files for us because sometimes it's easier to learn by seeing how its done first.

sergiopantoja commented 10 years ago

Here is also a good introduction:

"Grunt for People Who Think Things Like Grunt are Weird and Hard" http://24ways.org/2013/grunt-is-not-weird-and-hard/

albertomizrahi commented 9 years ago

See Issue #28 before doing this.

sergiopantoja commented 9 years ago

:+1:

Also nowadays two common alternatives are Gulp and just using npm (<-- very opinionated article). Everyone has their own preference.

No need to feel locked in to any choice. It's pretty easy to switch from grunt to gulp or from gulp to just npm, and vice versa.

alastairparagas commented 9 years ago

@sergiopantoja Sergio! I personally recommended to @albertomizrahi that Gulp seems a lot cleaner than Grunt when creating a task runner, but to each his own. The only apparent benefit with Grunt right now is that a lot of predefined task runners/plugins have been already made by the community, not to mention that Grunt is tightly integrated into the whole Yeoman workflow (I hope Gulp gains some traction on this).

sergiopantoja commented 9 years ago

Hello :smiley: Yeah all very true!