Skip to content
phiamo edited this page May 29, 2012 · 5 revisions

Welcome to the MopaBootstrapBundle wiki!

For branching Strategy please consult: Branches & Versions

Quickstart Solutions

A known problem is howto integrate your own less files:

We propose that you do it like we did in the MopaBootstrapSandboxBundle's less file: mopabootstrapsandboxbundle.less:

// Getting the whole mopabootstrapbundle.less
// apdapt the path depending where your less file resides!!!
@import "../../../../../../../../mopa/bootstrap-bundle/Mopa/Bundle/BootstrapBundle/Resources/public/less/mopabootstrapbundle.less";

// some less file from your bundle
@import 'example.less';

// include the responsive after all of your stuff!
@import "../../../../../../../../twitter/bootstrap/less/responsive.less";

// if you have any variables.less file INCLUDE IT AFTER EVERYTHING cause responsive.less also overrides it with the one from bootstrap!!!!!

@import 'variables.less';

Now we have the problem that assetic only checks the file included in you template ... Until there is a solution in assetic there is a patched version, which also checks all imported files:

https://github.com/phiamo/assetic/tree/asset-dependency-check

make sure you include the correct branch in you composer.json:

{
    "require": {
        "kriswallsmith/assetic": "dev-asset-dependency-check as 1.1.0.0-dev"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "http://github.com/phiamo/assetic"
        }
    ]
}
Clone this wiki locally