Created
April 24, 2015 01:09
-
-
Save chrislopresto/8887fad3e4d440247270 to your computer and use it in GitHub Desktop.
Half-baked Broccoli-based Scss Linting
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 mergeTrees = require('broccoli-merge-trees'); | |
var scssLint = require('broccoli-scss-lint'); | |
var path = require('path'); | |
var appTree = app.toTree(); | |
if (app.env !== 'production') { | |
var stylesTree = funnel('app/styles', { | |
srcDir: '/', | |
destDir: '/app/styles' | |
}); | |
var scssLintTree = scssLint(stylesTree, { | |
config: '.scss-lint.yml', | |
format: ['config', 'default'] | |
}); | |
appTree = mergeTrees([appTree, scssLintTree]); | |
} | |
module.exports = appTree; |
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
{ | |
"devDependencies": { | |
"broccoli-merge-trees": "^0.2.1", | |
"broccoli-scss-lint": "chrislopresto/broccoli-scss-lint#input-tree-dest-dir", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment