Commit 97f3c393 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[BUGFIX] path corrections

parent 2901e6b3
......@@ -29,6 +29,7 @@ yo gulp-sgalinski
## Changelog
* 2015-01-14   v1.0.4   bugfix for paths in image and js task
* 2015-01-13   v1.0.3   bugfix for paths in html boilerplate
* 2015-01-13   v1.0.2   bugfix for jshint paths
* 2015-01-13   v1.0.1   bugfix for minified js path
......
......@@ -13,7 +13,7 @@ gulp.task('watch', function() {<% if (livereloadMethod === 'livereload') { %>
gulp.watch(settings.path.sass + '/**/*.scss', ['css'])<% if (livereloadMethod === 'livereload') { %>.on('change', function(file) {
livereload.changed(file.path);
})<% } %>;
gulp.watch(settings.path.javascript + '/**/*.js', ['javascript'])<% if (livereloadMethod === 'livereload') { %>.on('change', function(file) {
gulp.watch([settings.path.javascript + '/**/*.js', '!' + settings.path.javascript + '/**/*.min.js'], ['javascript'])<% if (livereloadMethod === 'livereload') { %>.on('change', function(file) {
livereload.changed(file.path);
})<% } %>;
});
......
......@@ -5,7 +5,7 @@ var gulp = require('gulp'),
imagemin = require('gulp-imagemin');
gulp.task('images', function() {
return gulp.src(settings.path.imagePath + '/**/*')
return gulp.src(settings.path.images + '/**/*')
.pipe(imagemin({
progressive: true,
svgoPlugins: [{removeViewBox: false}]
......
......@@ -28,8 +28,8 @@ gulp.task('javascript', function() {
return gulp.src([settings.path.javascript + '/**/*.js', '!' + settings.path.javascript + '/**/*.min.js'])
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'))
.pipe(concat('main.js'))
.pipe(concat('main.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./' + settings.path.javascript + '/main.min.js'))<% } %><% if (livereloadMethod === 'browserSync') { %>
.pipe(gulp.dest('./' + settings.path.javascript + '/'))<% } %><% if (livereloadMethod === 'browserSync') { %>
.pipe(browserSync.reload({stream: true}))<% } %>;
});
{
"name": "generator-gulp-sgalinski",
"version": "1.0.3",
"version": "1.0.4",
"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