xantios / maple
一个带有枫糖般甜蜜的TaskRunner
v1.0.3
2021-07-10 13:27 UTC
Requires
- ext-pcntl: *
- illuminate/collections: ^8.22
- react/child-process: ^0.6.1
- react/http: ^1.2.0
- symfony/console: ^5.2
Requires (Dev)
- phpunit/phpunit: ^9
- roave/security-advisories: dev-master
- sempro/phpunit-pretty-print: ^1.4
- symfony/var-dumper: ^5.2
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2024-09-10 22:01:20 UTC
README
欢迎来到Maple!
Maple提供了您一直想要的但从未敢问的任务运行器。
生产使用注意事项
Maple目前处于积极开发状态(可以说处于beta状态),如果您是勇敢者之一,可以用于生产(如果您在生产中使用,请告诉我您的想法!)
按项目安装
只需像平时一样处理依赖项即可!
composer require xantios/maple
运行composer后,将maple-config.php
添加到项目的当前工作目录,并运行:
vendor/bin/maple
全局安装
如果您经常使用Maple,可能需要全局安装。运行composer global require xantios/maple
即可!
当您运行maple命令时,请确保当前目录中有一个配置文件。
配置
配置文件是一个简单的PHP数组,它相当直观。
<?php return [ // Host to listen on (defaults to 127.0.0.1) # 'host' => '0.0.0.0', // Port for web interface to listen on (defaults to 8100) # 'port' => 8100, // Verbose logging 'verbose' => true, // Tasks available 'tasks' => [ [ 'name' => "Run webpack", 'retries' => 0, 'autostart' => true, 'cmd' => 'npm run dev' ], [ 'name' => "Some process that keeps on exiting but needs to be running", 'retries' => -1, 'autostart' => true, 'cmd' => 'ping -t 3 8.8.8.8 ; sleep 5' ], // Run multiple tasks back-to-back [ 'name' => 'Jan-1', 'after' => 'Jan-2', 'autostart' => true, 'cmd' => 'sleep 1', ], [ 'name' => 'Jan-2', 'after' => 'Jan-3', 'cmd' => 'sleep 1', ], [ 'name' => 'Jan-3', 'after' => '', 'cmd' => 'sleep 1', ] ] ];
Web界面
可以在http://localhost:8100
找到仪表板,外观类似于以下内容
代码贡献
感谢您考虑贡献,请随意提交任何您喜欢的PR或创建一个issue,如果您认为您有一个非常好的想法!
其他方式的贡献
感谢电子邮件、捐赠、软件改变您生活的照片以及咖啡豆袋都欢迎发送到git@xantios.nl
安全漏洞
如果您在Maple中发现安全漏洞,请发送电子邮件至Xantios Krugor git@xantios.nl 所有安全漏洞都将得到及时处理。
许可证
Maple是开源软件,许可协议为MIT许可证。