Commit 94f5de66 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[BUGFIX] do not hint minified files

parent cc3a7a62
......@@ -29,6 +29,7 @@ yo gulp-sgalinski
## Changelog
* 2015-01-13   v1.0.2   bugfix for jshint paths
* 2015-01-13   v1.0.1   bugfix for minified js path
* 2015-01-13   v1.0.0   add livereload as browsersync alternative [first stable version]
* 2015-01-12   v0.1.0   release
......
......@@ -10,14 +10,14 @@ var gulp = require('gulp'),
browserSync = require('browser-sync')<% } %>;
gulp.task('jshint', function() {
return gulp.src(settings.path.javascript + '/**/*.js')
return gulp.src([settings.path.javascript + '/**/*.js', '!' + settings.path.javascript + '/**/*.min.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('javascript', function() {
<% if (browserify) { %>
gulp.src(settings.path.javascript + '/**/*.js')
gulp.src([settings.path.javascript + '/**/*.js', '!' + settings.path.javascript + '/**/*.min.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
return browserify('./' + settings.path.javascript + '/main.js')
......@@ -25,7 +25,7 @@ gulp.task('javascript', function() {
.pipe(source('main.min.js'))
.pipe(gulp.dest('./' + settings.path.javascript))
<% } else { %>
return gulp.src(settings.path.javascript + '/**/*.js')
return gulp.src([settings.path.javascript + '/**/*.js', '!' + settings.path.javascript + '/**/*.min.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'))
.pipe(concat('main.js'))
......
{
"name": "generator-gulp-sgalinski",
"version": "1.0.1",
"version": "1.0.2",
"description": "Yeoman generator",
"license": "MIT",
"main": "app/index.js",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment