Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyancat/laravel-elixir-group
Group the elixir tasks for Laravel Elixir.
https://github.com/hyancat/laravel-elixir-group
elixir-tasks group gulp javascript laravel laravel-elixir
Last synced: 4 months ago
JSON representation
Group the elixir tasks for Laravel Elixir.
- Host: GitHub
- URL: https://github.com/hyancat/laravel-elixir-group
- Owner: HyanCat
- Created: 2015-04-06T02:28:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-31T10:04:01.000Z (over 9 years ago)
- Last Synced: 2024-03-29T20:22:25.209Z (11 months ago)
- Topics: elixir-tasks, group, gulp, javascript, laravel, laravel-elixir
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-elixir-group
Group the elixir tasks for [Laravel Elixir](https://github.com/laravel/elixir).## Installation
npm install laravel-elixir-group --save-dev
## Usage
In your Gulpfile, firstly you should import the module.
```javascript
var elixir = require('laravel-elixir');
var ElixirGroup = require('laravel-elixir-group');
```Then, you can add a task group named 'taskA' like this:
```javascript
ElixirGroup.register('taskA', function() {
elixir(function(mix) {
mix.less('app_in_a.less');
/** and something else for Task A ... **/
});
});
```and maybe you will add 'taskB':
```javascript
ElixirGroup.register('taskB', function() {
elixir(function(mix) {
mix.less('app_in_b.less');
/** and something else for task B ... **/
});
});
```At last, you start to run task:
ElixirGroup.start();
## Command
In your terminal, you just need to add the group option like this:
gulp [task] --taskA
gulp [task] --taskBOr run all tasks by adding nothing as usual.
gulp [task]
## Bugs and Contributions
If you find a bug, please [post an issue on GitHub](https://github.com/HyanCat/laravel-elixir-group/issues) describing the problem.
Or better yet, make a pull request with the solution.
And any questions can exchange message with [Email](mailto://[email protected]).
## License
This is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)