Skip to content

Instantly share code, notes, and snippets.

@shoo7830
Created January 10, 2017 00:56
Show Gist options
  • Select an option

  • Save shoo7830/97bd588eb248a6edd34fd9fe21178653 to your computer and use it in GitHub Desktop.

Select an option

Save shoo7830/97bd588eb248a6edd34fd9fe21178653 to your computer and use it in GitHub Desktop.
하이웍스 자원 설정
'use strict';
var gulp = require('gulp'),
sass = require('gulp-sass'),
scssLint = require('gulp-scss-lint'),
stylish = require('gulp-scss-lint-stylish2'),
sourcemaps = require('gulp-sourcemaps');
gulp.task('sass', function () {
return gulp.src('static/ui/css/**/*.scss')
.pipe(sourcemaps.init())
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
.pipe(sourcemaps.write('./maps'))
.pipe(gulp.dest('static/ui/css'));
});
gulp.task('scss-lint', function() {
var reporter = stylish();
gulp.src('static/ui/css/**/*.scss')
.pipe( scssLint({ customReport: reporter.issues }) )
.pipe( reporter.printSummary );
});
gulp.task('watch', function () {
gulp.watch('static/ui/css/**/*.scss', ['sass', 'scss-lint']);
});
gulp.task('default', ['watch']);
@shoo7830
Copy link
Author

gem install 없이 하는 방법을 찾아봐야겠음.

@shoo7830
Copy link
Author

11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment