mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Add CSS Lint task.
This commit is contained in:
parent
d1c3ebe22c
commit
6fcc90e076
3 changed files with 17 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -6,3 +6,6 @@ npm-debug.log
|
|||
|
||||
# Symlink to ca.crt file
|
||||
ca.crt
|
||||
|
||||
# Debug CSS file
|
||||
src/css/style.css
|
|
@ -4,6 +4,7 @@ var gulp = require('gulp');
|
|||
// Include required Gulp packages
|
||||
var concat = require('gulp-concat'),
|
||||
uglify = require('gulp-uglify'),
|
||||
csslint = require('gulp-csslint'),
|
||||
jshint = require('gulp-jshint'),
|
||||
less = require('gulp-less'),
|
||||
autoprefixer = require('gulp-autoprefixer'),
|
||||
|
@ -68,6 +69,17 @@ gulp.task('css', function () {
|
|||
});
|
||||
|
||||
|
||||
// CSS/Less lint task
|
||||
gulp.task('css-lint', function() {
|
||||
return gulp.src('css/style.less')
|
||||
.pipe(less())
|
||||
.pipe(autoprefixer())
|
||||
.pipe(csslint())
|
||||
.pipe(csslint.reporter('compact'))
|
||||
.pipe(gulp.dest('./css/'))
|
||||
});
|
||||
|
||||
|
||||
// Images task
|
||||
gulp.task('img', function () {
|
||||
return gulp.src('img/*')
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"gulp": "^3.9.0",
|
||||
"gulp-autoprefixer": "^2.3.1",
|
||||
"gulp-concat": "^2.6.0",
|
||||
"gulp-csslint": "^0.2.0",
|
||||
"gulp-cssmin": "^0.1.7",
|
||||
"gulp-imagemin": "^2.3.0",
|
||||
"gulp-jshint": "^1.11.2",
|
||||
|
|
Loading…
Reference in a new issue