Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ca849e7

Browse files
authoredSep 23, 2016
Merge pull request #62 from rmariuzzo/develop
Readme update
2 parents 739f834 + 2763834 commit ca849e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

Diff for: ‎README.md

+10
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ gulp.task('langjs', shell.task('php artisan lang:js -c public/js/messages.js'));
9191
```
9292

9393
#### Using [Laravel's elixir](http://laravel.com/docs/elixir) (optional)
94+
Before Elixir 4.0:
9495

9596
```js
9697
elixir.extend('langjs', function(path) {
@@ -101,6 +102,15 @@ elixir.extend('langjs', function(path) {
101102
return this.queueTask('langjs');
102103
});
103104
```
105+
Elixir 4.0+:
106+
```js
107+
var Task = elixir.Task;
108+
elixir.extend('langjs', function(path) {
109+
new Task('langjs', function() {
110+
gulp.src('').pipe(shell('php artisan lang:js ' + (path || 'public/js/messages.js')));
111+
});
112+
});
113+
```
104114

105115
And use it like this:
106116

0 commit comments

Comments
 (0)
Please sign in to comment.