repat / laravel-npm-run
npm run Laravel Jobs
0.2
2020-09-11 03:24 UTC
Requires
- symfony/process: ^4.2 | ^5.0
This package is auto-updated.
Last update: 2024-11-11 13:08:44 UTC
README
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
- MIT, see LICENSE
Version
- Version 0.2
Contact
repat
- Homepage: https://repat.de
- e-mail: repat@repat.de
- Twitter: @repat123