Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer dependency management #123

Closed
wants to merge 2 commits into from
Closed

Composer dependency management #123

wants to merge 2 commits into from

Conversation

thomaswelton
Copy link

Added a composer.json file as discussed here - closes #120
http://getcomposer.org/

@thomaswelton
Copy link
Author

Usage

Compser.json

composer.json to install my fork

{
    "minimum-stability": "dev",

    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/thomaswelton/compass-twitter-bootstrap"
        }
    ],
    "require": {
        "vwall/compass-twitter-bootstrap": "master"
    },

    "config": {
        "vendor-dir": "vendor"
    }
}

composer.json to install the project after the PR

{
    "require": {
        "vwall/compass-twitter-bootstrap": "master"
    },
   "config": {
        "vendor-dir": "vendor"
    }
}

This and all other composer dependencies for the project can be installed by running composer install from the terminal.

Then in my config.rb

extentions_dir = 'vendor'
add_import_path extentions_dir + '/jlong/sass-twitter-bootstrap/lib'

From then I can import bootstrap elements into my scss files to create a custom build of twitter bootstrap

 @import "compass";

// Core variables and mixins
@import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
@import "compass_twitter_bootstrap/mixins";

.clearfix {
  @include ctb-clearfix();
}

.hide-text {
  @include ctb-hide-text();
}

.input-block-level {
  @include ctb-input-block-level();
}

// CSS Reset
@import "compass_twitter_bootstrap/reset";

// Grid system and page structure
@import "compass_twitter_bootstrap/scaffolding";
@import "compass_twitter_bootstrap/grid";
@import "compass_twitter_bootstrap/layouts";

@thomaswelton thomaswelton mentioned this pull request Jun 1, 2013
@thomaswelton
Copy link
Author

:/ Yeah i should have install this using bundle instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add bower support
1 participant