diff --git a/.jshintrc b/.jshintrc index dd429f7..d8cbb07 100644 --- a/.jshintrc +++ b/.jshintrc @@ -32,7 +32,7 @@ "indent": 4, // Prohibit use of a variable before it is defined. - "latedef": true, + "latedef": false, // Enforce line length to 100 characters "maxlen": 100, diff --git a/gulpfile.js b/gulpfile.js index 209ccfd..654b94b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,7 +17,7 @@ var paths = { }; gulp.task('templates', function() { - pump( + return pump( [ gulp.src(paths.srcViews), replace('views/', ''), @@ -31,8 +31,8 @@ gulp.task('templates', function() { ); }); -gulp.task('uglify', function() { - pump( +gulp.task('uglify', ['templates'], function() { + return pump( [ gulp.src([ paths.srcJS, @@ -48,7 +48,7 @@ gulp.task('uglify', function() { }); gulp.task('pre-commit', function() { - pump( + return pump( [ gulp.src(paths.srcJS), jshint('.jshintrc'), @@ -58,7 +58,6 @@ gulp.task('pre-commit', function() { ); gulp.start('uglify'); - gulp.start('templates'); }); gulp.task('webserver', function() { diff --git a/package.json b/package.json index bf0445a..fc65e94 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "gulp-pre-commit": "gulp pre-commit", - "compile": "gulp templates && gulp uglify", + "compile": "gulp uglify", "postinstall": "npm run compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js", "install-dev": "npm install -D angular bootstrap font-awesome gulp gulp-angular-templatecache gulp-concat gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify jasmine-core jquery jshint pre-commit pump ui-bootstrap4 && npm i -D git+https://192.168.0.11/modulos-npm/foca-directivas" },