https://github.com/netgusto/symfony-distributionbundle
https://github.com/netgusto/symfony-distributionbundle
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/netgusto/symfony-distributionbundle
- Owner: netgusto
- Created: 2014-06-06T14:50:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-06T21:37:04.000Z (over 11 years ago)
- Last Synced: 2025-01-29T02:44:36.912Z (12 months ago)
- Language: PHP
- Size: 145 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Symfony-DistributionBundle
==========================
## Forwarding assets packages to web dir
In app/config.yaml
```yaml
netgusto_distribution:
assets_forwarding:
dest_dir: ~
packages:
- some/package
- some/otherpackage
```
In composer.json
```json
{
'...',
"scripts": {
"post-install-cmd": [
'...',
"Netgusto\\DistributionBundle\\Composer\\ScriptHandler::forwardAssetsToWebDir"
],
"post-update-cmd": [
'...',
"Netgusto\\DistributionBundle\\Composer\\ScriptHandler::forwardAssetsToWebDir"
]
},
'...',
}
```
In app/AppKernel.php
```php
$bundles = array(
// ...
new Netgusto\DistributionBundle\NetgustoDistributionBundle(),
// ...
);
```
Packages will be forwarded to `web/vendor` at `composer install`, and at every `composer update`.