repat/laravel-npm-run

npm run Laravel Jobs

0.2 2020-09-11 03:24 UTC

This package is auto-updated.

Last update: 2024-11-11 13:08:44 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.2

Contact

repat

Flattr this git repo