Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A grunt alternative - to compile sass and minify JS [closed]

I'm after a linux server-side script I can run which can complete several tasks.

We currently have an in-house PHP framework - which runs on Apache with MySQL - the only server-side 'technology' we use is composer.

I am after a task runner - similar to grunt & gulp which does not run on Node and can work with an existing site set up - something that can be plugged in after the site is set up.

The thing that puts me off gulp and grunt is it suits your application if it is built on Node or you are using other node apps - otherwise you need a package.js along with a Gruntfile.

Tasks I would like it to run as a minimum is compiling Scss and minifying JS. Other tasks would be JS concatenation and image compression.

I've looked at Grunt, Gulp, Guard and Brunch.

Any suggestions?

like image 463
mikestreety Avatar asked Nov 11 '22 14:11

mikestreety


1 Answers

uglifyjs will minify javascript, and other tools like compass can compile scss.

You can use make as a task runner to manage all that.

The default choice of Make, because of extremely widespread usage and software freedom, is to use GNU Make, which has a comprehensive manual.

like image 192
alex Avatar answered Nov 14 '22 22:11

alex