diff --git a/README.md b/README.md index 24365069fb..2ab038539b 100644 --- a/README.md +++ b/README.md @@ -294,6 +294,22 @@ $navbar-default-color: $light-orange; @import "bootstrap"; ``` +### Eyeglass + +Boodstrap is available as an [Eyeglass](https://github.com/sass-eyeglass/eyeglass) module. After installing Bootstrap via NPM you can import the Bootstrap library via: + +```scss +@import "bootstrap-sass/bootstrap" +``` + +or import only the parts of Bootstrap you need: + +```scss +@import "bootstrap-sass/bootstrap/variables"; +@import "bootstrap-sass/bootstrap/mixins"; +@import "bootstrap-sass/bootstrap/carousel"; +``` + ## Version Bootstrap for Sass version may differ from the upstream version in the last number, known as diff --git a/eyeglass-exports.js b/eyeglass-exports.js new file mode 100644 index 0000000000..49d2c8406f --- /dev/null +++ b/eyeglass-exports.js @@ -0,0 +1,7 @@ +var path = require('path'); + +module.exports = function(eyeglass, sass) { + return { + sassDir: path.join(__dirname, 'assets/stylesheets') + } +} \ No newline at end of file diff --git a/package.json b/package.json index 21c9c0ece9..11b1b05bfd 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "keywords": [ "bootstrap", "sass", - "css" + "css", + "eyeglass-module" ], "contributors": [ "Thomas McDonald", @@ -26,5 +27,9 @@ "node-sass": "~3.4.2", "mincer": "~1.3", "ejs": "~2.3" + }, + "eyeglass": { + "exports": "eyeglass-exports.js", + "needs": "^0.7.1" } }