dev-wip-entry-points
dev-wip-entry-pointsComposer plugin for installing of assets.
BSD-3-Clause
The Requires
- php >=5.4.0
- composer-plugin-api ^1.0
- czproject/path-helper ^4.0
The Development Requires
by Jan Pecha
Wallogit.com
2017 © Pedro Peláez
Composer plugin for installing of assets.
Composer plugin for installing assets., (*2)
Use Composer:, (*4)
composer require frontpack/composer-assets-plugin
Library requires PHP 8.0 or later., (*5)
composer refresh-assets - refresh files in assets directoryassets-files in section extra
true - symlinks whole package directoryExample:, (*6)
``` json { "extra": { "assets-files": [ "static/plugin.js", "static/plugin.css", "static/icons.png" ] } }, (*7)
* `static/plugin.js` - symlinks file to `assets/org/package/plugin.js` * `static/plugin.css` - symlinks file to `assets/org/package/plugin.css` * `static/icons.png` - symlinks file to `assets/org/package/icons.png` Or you can use simple: ``` json { "extra": { "assets-files": "static" } }
with same result., (*8)
assets-dir - directory for installing of assets, default assets, relative to vendor-dir
assets-directory - alias for assets-dir
assets-files - list of asset files in incompatible packages, it overrides assets-files from installed packagesassets-strategy - install strategy for assets
auto - select strategy by platform (default value)copy - copy all assets, default strategy on Windowssymlink - create relative symlinks, default strategy on non-Windows platformsassets-target - target directory for specific packages, relative to vendor-dir, must be out of assets-dir
Example:, (*9)
json
{
"extra": {
"assets-dir": "public",
"assets-files": {
"org/package": true,
"org/package2": "js/calendar.js",
"org/package3": [
"static/plugin.js",
"static/plugin.css",
"static/icons.png"
]
},
"assets-target": {
"ckeditor/ckeditor": "admin/wysiwyg"
}
}
}, (*10)
org/package - symlinks whole package directory to public/org/package
org/package2 - symlinks file js/calendar.js to public/org/package2/calendar.js
org/package3
static/plugin.js - symlinks file to public/org/package3/plugin.js
static/plugin.css - symlinks file to public/org/package3/plugin.css
static/icons.png - symlinks file to public/org/package3/icons.png
ckeditor/ckeditor - symlinks files to admin/wysiwyg
Plugin provides default mapping for selected incompatible packages. You can override this mapping in your composer.json., (*11)
List of packages with default mapping:, (*12)
bower-asset/tiny-sliderckeditor/ckeditorcomponents/jqueryenyo/dropzonenette/formso5/gridoSome libraries and packages support Composer by default. For other exists shim-repositories:, (*13)
Always you can search packages on Packagist., (*14)
License: New BSD License
Author: Jan Pecha, https://www.janpecha.cz/, (*15)
Composer plugin for installing of assets.
BSD-3-Clause