Skip to content

LaravelLegends/assets-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Generate Javascript and CSS files via Laravel 4 Command line

Build Status

Instalation

Run composer require laravellegends/assets-generator

Add in app/config.php:

   'providers' => [
       // another providers
       'LaravelLegends\AssetsGenerator\Provider'
   ]

Usage

Now, the command is avaliable in php artisan. Run php artisan generate:assets {path} for create css and Javascript files.

By default, the files are created in 'public/css' and 'public/js' folders.

For example:

php artisan generate:assets users/index

The files public/css/users/index.css and public/js/users/index.js will be created.

Stub

For costumization, use assets-generator::config.stubs with keys js or css and add a file for create default template for your assets files.

About

Command to generate assets via command line

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages