Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2016-02-19 19:20:56 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2016-02-19 19:20:56 +0300
commitc537b2eeb8b194fee8d141c0a941fd9ba323faf5 (patch)
treea37a397dffa297537415464784f0e0d5ff140acb
parentf17b502b4d04bd72871042e87ff676398b5e2405 (diff)
parenta8f7d79c704fb238ea5efe6089d8d1b17d507575 (diff)
Merge pull request #1007 from iammikecohen/master
Add Eyeglass support to Bootstrap
-rw-r--r--README.md16
-rw-r--r--eyeglass-exports.js7
-rw-r--r--package.json7
3 files changed, 29 insertions, 1 deletions
diff --git a/README.md b/README.md
index 24365069..2ab03853 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 00000000..49d2c840
--- /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 21c9c0ec..11b1b05b 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"
}
}