mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
43 lines
1.5 KiB
YAML
Executable File
43 lines
1.5 KiB
YAML
Executable File
---
|
|
Name: a2nt-cms-niceties-templates-requirements
|
|
---
|
|
A2nt\CMSNiceties\Templates\DeferredRequirements:
|
|
nofontawesome: false
|
|
version: false
|
|
static_domain: false
|
|
deferred: true
|
|
noreact: false
|
|
nojquery: true
|
|
jquery_version: '3.4.1'
|
|
fontawesome_svg: true
|
|
|
|
SilverStripe\FontAwesome\FontAwesomeField:
|
|
version: '5.12.0'
|
|
|
|
SilverStripe\View\Requirements:
|
|
disable_flush_combined: true
|
|
SilverStripe\View\Requirements_Backend:
|
|
combine_in_dev: true
|
|
combine_hash_querystring: true
|
|
default_combined_files_folder: 'combined'
|
|
SilverStripe\Core\Injector\Injector:
|
|
# Create adapter that points to the custom directory root
|
|
SilverStripe\Assets\Flysystem\PublicAdapter.custom-adapter:
|
|
class: SilverStripe\Assets\Flysystem\PublicAssetAdapter
|
|
constructor:
|
|
Root: ./app/javascript
|
|
# Set flysystem filesystem that uses this adapter
|
|
League\Flysystem\Filesystem.custom-filesystem:
|
|
class: 'League\Flysystem\Filesystem'
|
|
constructor:
|
|
Adapter: '%$SilverStripe\Assets\Flysystem\PublicAdapter.custom-adapter'
|
|
# Create handler to generate assets using this filesystem
|
|
SilverStripe\Assets\Storage\GeneratedAssetHandler.custom-generated-assets:
|
|
class: SilverStripe\Assets\Flysystem\GeneratedAssets
|
|
properties:
|
|
Filesystem: '%$League\Flysystem\Filesystem.custom-filesystem'
|
|
# Assign this generator to the requirements builder
|
|
SilverStripe\View\Requirements_Backend:
|
|
properties:
|
|
AssetHandler: '%$SilverStripe\Assets\Storage\GeneratedAssetHandler.custom-generated-assets'
|