Last active
August 29, 2015 14:05
-
-
Save michaeltroy/6fc00471ea994dd7fbc5 to your computer and use it in GitHub Desktop.
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
/** | |
* grab your components. | |
*/ | |
sass = require('gulp-ruby-sass'), | |
component = require('gulp-component'); | |
/** | |
* Set your paths. | |
*/ | |
var paths = { | |
styles: ['component.json', 'components/**/*.css', 'components/**/*.scss'] | |
}; | |
/** | |
* Build your task. | |
*/ | |
gulp.task('styles', function() { | |
return gulp.src(paths.styles) | |
.pipe(component.styles({ | |
copy: true, // Copies assets not symlink. | |
standalone: true, // For production | |
out: 'build' // Output folder | |
})) | |
.pipe(sass()) | |
.pipe(gulp.dest('build')), | |
process.stdout.write(' ==== Style tasks finished ==== \n'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment