repat/laravel-npm-run

npm run Laravel Jobs

0.1 2019-05-05 14:30 UTC

README

Latest Version on Packagist Total Downloads

laravel-npm-run is a package that runs e.g. npm run dev or npm run production as a Laravel Queued Job, using symfony/process. For documentation see:

Installation

$ composer require repat/laravel-npm-run

Documentation

There are multiple ways to create and dispatch a Job, please see Laravel Documentation on Queues.

// Create Job
$job = new \Repat\Jobs\NpmRun(config('app.env'));
$job = new \Repat\Jobs\NpmRun(); // env = dev

// Dispatch Job
dispatch($job);
$job->dispatch();
$this->dispatch($job); // e.g. in Controller

License

Version

  • Version 0.1

Contact

repat

Flattr this git repo