Created
January 10, 2017 00:56
-
-
Save shoo7830/97bd588eb248a6edd34fd9fe21178653 to your computer and use it in GitHub Desktop.
하이웍스 자원 설정
This file contains hidden or 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
| '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']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gem install 없이 하는 방법을 찾아봐야겠음.