Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HyanCat/laravel-elixir-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

laravel-elixir-group

Group the elixir tasks for Laravel Elixir.

Installation

npm install laravel-elixir-group --save-dev

Usage

In your Gulpfile, firstly you should import the module.

var elixir = require('laravel-elixir');
var ElixirGroup = require('laravel-elixir-group');

Then, you can add a task group named 'taskA' like this:

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':

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] --taskB

Or run all tasks by adding nothing as usual.

gulp [task]

Bugs and Contributions

If you find a bug, please post an issue on GitHub describing the problem.

Or better yet, make a pull request with the solution.

And any questions can exchange message with Email.

License

This is open-sourced software licensed under the MIT license

About

Group the elixir tasks for Laravel Elixir.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /