Skip to content

Commit

Permalink
Add eyeglass support.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein authored and Tyson Gach committed Sep 17, 2015
1 parent bac4fea commit 492cf56
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ For command line help, visit our wiki page on Bourbon’s [command line interfac

[Help! I’m getting an undefined mixin error.](https://github.com/thoughtbot/bourbon/wiki/Rails-Help-%5C-Undefined-mixin)

## Installing with npm and using a Node-based asset pipeline

1. Add Bourbon as a dependency:

```bash
npm install --save bourbon
```

2. If you’re using [Eyeglass](http://eyeglass.rocks), skip to Step 3. Otherwise, you’ll need to add Bourbon to your node-sass `includePaths` option. `require("bourbon").includePaths` is an array of directories that you should pass to node-sass. How you do this depends on how node-sass is integrated into your project.

3. Import Bourbon into your Sass files:

```scss
@import "bourbon";
```

## Installing older versions of Bourbon

1. Uninstall any Bourbon gem versions you already have:
Expand Down
7 changes: 7 additions & 0 deletions eyeglass-exports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var bourbon = require(".");

module.exports = function(eyeglass, sass) {
return {
sassDir: bourbon.includePaths[0]
};
};
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A simple and lightweight mixin library for Sass.",
"keywords": [
"css",
"eyeglass-module",
"mixins",
"sass",
"scss"
Expand All @@ -12,6 +13,10 @@
"bugs": {
"url": "https://github.com/thoughtbot/bourbon/issues"
},
"eyeglass": {
"needs": "*",
"exports": "eyeglass-exports.js"
},
"license": "MIT",
"author": {
"name": "thoughtbot",
Expand Down

0 comments on commit 492cf56

Please sign in to comment.