1

Remove linting

This commit is contained in:
Alex Yatskov 2014-11-09 12:38:59 +09:00
parent eaa3d0ea90
commit 7dd7c8df3b
2 changed files with 2 additions and 8 deletions

View File

@ -52,11 +52,6 @@ function getBowerFiles(extension) {
return resultPaths;
}
gulp.task('lint', function() {
var scripts = ['*.js', 'client/scripts/*.js', 'server/*.js'];
gulp.src(scripts).pipe(jshint());
});
gulp.task('images', function() {
return gulp.src('client/images/*').pipe(gulp.dest('client/dist/images'));
});
@ -75,14 +70,14 @@ gulp.task('styles', function() {
return gulp.src(styles).pipe(replace('../fonts/', './fonts/')).pipe(concat('styles.css')).pipe(minifyCss()).pipe(gulp.dest('client/dist'));
});
gulp.task('html_dev', ['lint'], function() {
gulp.task('html_dev', function() {
var sources = gulp.src(getBowerFiles('.css').concat(getBowerFiles('.js')).concat(['client/scripts/*.js', 'client/styles/*.css']), {read: false});
var target = 'client/html/index.html';
var options = {addRootSlash: false, ignorePath: 'client'};
return gulp.src(target).pipe(inject(sources, options)).pipe(gulp.dest('client'));
});
gulp.task('html_dist', ['lint', 'fonts', 'images', 'scripts', 'styles'], function() {
gulp.task('html_dist', ['fonts', 'images', 'scripts', 'styles'], function() {
var sources = gulp.src(['client/dist/*.js', 'client/dist/*.css'], {read: false});
var options = {addRootSlash: false, ignorePath: 'client/dist'};
var target = 'client/html/index.html';

View File

@ -17,7 +17,6 @@
"gulp-concat": "^2.4.1",
"gulp-inject": "^1.0.2",
"gulp-install": "^0.2.0",
"gulp-jshint": "^1.8.5",
"gulp-minify-css": "^0.3.10",
"gulp-minify-html": "^0.1.5",
"gulp-nodemon": "^1.0.4",