I am trying to run the installation of SASS on Laravel 4.
I start the composer and create my .json composer as follows:
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": { "laravel/framework": "4.0.*", "cartalyst/sentry": "2.0.*", }, "autoload": { "classmap": [ "app/commands", "app/controllers", "app/models", "app/database/migrations", "app/database/seeds", "app/tests/TestCase.php" ] }, "scripts": { "post-install-cmd": [ "php artisan optimize" ], "post-update-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "post-create-project-cmd": [ "php artisan key:generate" ] }, "config": { "preferred-install": "dist" }, "minimum-stability": "dev" }
I wondered if there was a really easy way to do this in the composer, to add it as a project dependency.
The reason I want to do this is because it is easier to manage and helps in the construction in the long run.
If there is another way to do this and install grunt to minimize css / js, that would be even better.
Thanks.
source share