repat/laravel-npm-run

npm run Laravel Jobs

Installs: 358

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/repat/laravel-npm-run

0.2 2020-09-11 03:24 UTC

This package is auto-updated.

Last update: 2025-10-11 15:00:47 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