vtalbot / coffee
CoffeeScript compiler for Laravel 4 (Illuminate)
Installs: 3 841
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 2
Open Issues: 2
Requires
- php: >=5.3.0
- coffeescript/coffeescript: *
- laravel/framework: >=4.0
Requires (Dev)
- mockery/mockery: 0.7.2
Replaces
- ellicom/coffee: *
This package is auto-updated.
Last update: 2020-02-07 13:22:38 UTC
README
Installation
Run php artisan config:publish ellicom/coffee
Then edit config.php
in app/packages/ellicom/coffee
to your needs.
Add 'Ellicom\Coffee\CoffeeServiceProvider',
to providers
in app/config/app.php
and 'Coffee' => 'Ellicom\Coffee\Facades\Coffee',
to aliases
in app/config/app.php
Usage
<script src="js/test.js"></script>
If js/test.js
doesn't exists in the public
directory, it will search for test.coffee
in app/coffee
directory.
If found, compile it if needed and return the result.
Todo
Add tests.