Skip to content

stavichenko/AsseticGulpBundle

 
 

Repository files navigation

AsseticGulpBundle

This bundle provides a command assetic:gulp that generates a JSON file suitable for use with gulp

Example config

[
    {
        "sources": [
            "\/home\/user\/project\/app\/..\/vendor\/twitter\/bootstrap\/dist\/js\/bootstrap.js"
        ],
        "destination": {
            "path": "\/home\/user\/project/app\/..\/web\/assetic",
            "file": "bootstrap_js.js"
        },
        "types": [
            "js"
        ]
    },
    {
        "sources": [
            "\/home\/user\/project\/app\/..\/vendor\/twitter\/bootstrap\/dist\/css\/bootstrap.css",
            "\/home\/user\/project\/app\/..\/vendor\/twitter\/bootstrap\/dist\/css\/bootstrap-theme.css"
        ],
        "destination": {
            "path": "\/home\/user\/project\/app\/..\/web\/assetic",
            "file": "bootstrap_css.css"
        },
        "types": [
            "css"
        ]
    }
]

Such file can be processed with example gulpfile.js:

About

generate json config file from Assetic assets

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 75.6%
  • JavaScript 24.4%