Skip to content

Instantly share code, notes, and snippets.

@michaeltroy
Last active August 29, 2015 14:05
Show Gist options
  • Save michaeltroy/6fc00471ea994dd7fbc5 to your computer and use it in GitHub Desktop.
Save michaeltroy/6fc00471ea994dd7fbc5 to your computer and use it in GitHub Desktop.
/**
* 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