Created
July 30, 2014 11:33
-
-
Save rlivsey/55b8ac00b55175dbab55 to your computer and use it in GitHub Desktop.
ember-cli sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var path = require('path'); | |
function unwatchedTree(dir) { | |
return { | |
read: function() { return dir; }, | |
cleanup: function() { } | |
}; | |
} | |
function EmberCLISharedStyles(project) { | |
this.project = project; | |
this.name = 'Shared Styles'; | |
} | |
EmberCLISharedStyles.prototype.treeFor = function(name) { | |
var treePath = path.join('node_modules', 'shared-styles', name); | |
if (fs.existsSync(treePath)) { | |
return unwatchedTree(treePath); | |
} | |
}; | |
EmberCLISharedStyles.prototype.included = function included(app) { | |
// app.import('shared-styles/main.scss'); | |
app.import('shared-styles/foo.css'); | |
}; | |
module.exports = EmberCLISharedStyles; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment