Skip to content

Commit 0e2b11a

Browse files
committed
Added flow.js copy-plugin
1 parent 21cf8ee commit 0e2b11a

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Helper to install via composer ...
44

55
- [ChartJs](https://github.com/chartjs/Chart.js)
6+
- [flow.js](https://github.com/flowjs/flow.js)
67
- [jQuery](https://github.com/components/jquery)
7-
- [flatpickr](https://github.com/flatpickr/flatpickr)
88
- [TinyMCE](https://github.com/tinymce/tinymce)
99

1010
<small>Note: composer install is broken since ChartJs and flatpickr. Until its fixed we try to download from https://unpkg.com</small>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
/**
4+
* OpenMage
5+
*
6+
* This source file is subject to the Open Software License (OSL 3.0)
7+
* that is bundled with this package in the file LICENSE.txt.
8+
* It is also available at https://opensource.org/license/osl-3-0-php
9+
*
10+
* @category OpenMage
11+
* @package VendorCopy
12+
* @copyright Copyright (c) The OpenMage Contributors (https://www.openmage.org)
13+
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
14+
*/
15+
16+
declare(strict_types=1);
17+
18+
namespace OpenMage\ComposerPlugin\Copy\Plugins;
19+
20+
use OpenMage\ComposerPlugin\Copy;
21+
22+
/**
23+
* Class FlowJs
24+
*/
25+
class FlowJs extends Copy\AbstractCopyPlugin implements Copy\CopyFromComposerInterface
26+
{
27+
public function getComposerPackageName(): string
28+
{
29+
return 'flowjs/flowjs';
30+
}
31+
32+
public function getCopySource(): string
33+
{
34+
return 'dist';
35+
}
36+
37+
public function getCopyTarget(): string
38+
{
39+
return 'js/lib/uploader';
40+
}
41+
42+
public function getFilesByName(): array
43+
{
44+
return ['*.js'];
45+
}
46+
}

src/OpenMage/ComposerPlugin/Plugin.php

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public static function getSubscribedEvents(): array
6666
/**
6767
* @see \OpenMage\ComposerPlugin\Copy\Plugins\ChartJs
6868
* @see \OpenMage\ComposerPlugin\Copy\Plugins\Flatpickr
69+
* @see \OpenMage\ComposerPlugin\Copy\Plugins\FlowJs
6970
* @see \OpenMage\ComposerPlugin\Copy\Plugins\JQuery
7071
* @see \OpenMage\ComposerPlugin\Copy\Plugins\TinyMce
7172
* @see \OpenMage\ComposerPlugin\Copy\Plugins\TinyMceLanguages

0 commit comments

Comments
 (0)