hostnet / asset-bundle
Allows the configuration of the hostnet/asset-lib package in your Symfony application.
Installs: 54 908
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 8
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.3
- hostnet/asset-lib: ^2.0.0
- symfony/config: ^5.4
- symfony/console: ^5.4
- symfony/dependency-injection: ^5.4
- symfony/http-kernel: ^5.4
- symfony/process: ^5.4
Requires (Dev)
- hostnet/phpcs-tool: ^9.0.0
- phpspec/prophecy-phpunit: ^2.0.1
- phpunit/phpunit: ^9.5.5
- symfony/framework-bundle: ^5.4
- symfony/yaml: ^5.4
- twig/twig: ^3.0.0
README
Note: Due to the fast changing ecosystem and better javascript support in popular frameworks, this lib has been deprecated with no direct alternative.
Asset Bundle
This bundle exposes the asset-lib as a Symfony bundle.
Installation
Installation of the bundle can be done using composer
and is the recommended way of adding the bundle to your application.
To do so, in your command line enter the project directory and execute the following command to download the latest stable version of this bundle:
$ composer require hostnet/asset-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
This bundle and the component follow semantic versioning strictly.
Documentation
Create a file called hostnet_asset.yaml
in config/packages
to configure this bundle.
Node
In order for this bundle to work properly, it needs to know the location where node
is installed and where the node_modules
directory is located.
Example configuration
hostnet_asset: web_root: public source_root: assets files: - main.ts assets: - shims.js plugins: Hostnet\Component\Resolver\Plugin\CorePlugin: ~ Hostnet\Component\Resolver\Plugin\LessPlugin: ~ Hostnet\Component\Resolver\Plugin\TsPlugin: ~ Hostnet\Component\Resolver\Plugin\CssFontRewitePlugin: ~ Hostnet\Component\AssetAngularPlugin\MiscPlugin: ~ bin: node: '%kernel.project_dir%/node_modules/.bin/node' node_modules: '%kernel.project_dir%/node_modules'
License
The hostnet/asset-bundle
is licensed under the MIT License, meaning you can reuse the code within proprietary software provided that all copies of the licensed software include a copy of the MIT License terms and the copyright notice.
Get in touch
You can reach us via email: opensource@hostnet.nl.