Download the PHP package leroy-merlin-br/assetwatcher without Composer
On this page you can find all versions of the php package leroy-merlin-br/assetwatcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leroy-merlin-br/assetwatcher
More information about leroy-merlin-br/assetwatcher
Files in leroy-merlin-br/assetwatcher
Package assetwatcher
Short Description AssetWatcher will watch and take actions on the files of your project when they are modified
License MIT
Informations about the package assetwatcher
AssetWatcher (Laravel Package)
Trigger specific commands when specified files are modified. I.E.: You can easly configure an asset pipeline (compilation, concatenation, minification), run tests, etc.
Quick start
Required setup
In the require
key of composer.json
file add the following
"leroy-merlin-br/assetwatcher": "dev-master"
Run the Composer update comand
$ composer update
In your config/app.php
add 'LeroyMerlin\AssetWatcher\AssetWatcherServiceProvider'
to the end of the $providers
array
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
...
'LeroyMerlin\AssetWatcher\AssetWatcherServiceProvider',
),
Publish the AssetWatcher configuration file:
php artisan config:publish leroy-merlin-br/assetwatcher
Edit the configuration file app/config/packages/leroy-merlin-br/assetwatcher/config.php
adding the behavior you want.
Examples of use
LESS compilation
First, you need the LESS compiler installed:
$ sudo npm install less
Then, in order to compile the app/assets/less/main.less
file if any LESS file within assets/less
has been modified. The config file should be like:
License
AssetWatcher is free software distributed under the terms of the MIT license
Aditional information
Any issues, please report here
All versions of assetwatcher with dependencies
illuminate/support Version ~4.0
jasonlewis/resource-watcher Version ~1.1