Commit e600b86f authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] jshint task

parent b02b0650
......@@ -8,6 +8,7 @@ var gulp = require('gulp'),
minifyCss = require('gulp-minify-css'),
browserSync = require('browser-sync'),
imagemin = require('gulp-imagemin'),
jshint = require('gulp-jshint'),
argv = require('yargs').argv,
extension = (function() {
if (typeof argv.ext === 'undefined') {
......@@ -18,6 +19,7 @@ var gulp = require('gulp'),
extensionPath = path.join('typo3conf', 'ext', extension),
sassPath = path.join(extensionPath, 'Resources', 'Public', 'Sass'),
cssPath = path.join(extensionPath, 'Resources', 'Public', 'StyleSheets'),
jsPath = path.join(extensionPath, 'Resources', 'Public', 'Scripts'),
imagePath = path.join(extensionPath, 'Resources', 'Public', 'Images');
gulp.task('css', function() {
......@@ -35,6 +37,11 @@ gulp.task('css', function() {
.pipe(browserSync.reload({stream: true}));
});
gulp.task('jshint', function() {
return gulp.src(jsPath + '/**/*.js')
.pipe(jshint.reporter('jshint-stylish'));
});
gulp.task('images', function() {
return gulp.src(imagePath + '/**/*')
.pipe(imagemin({
......
......@@ -12,6 +12,7 @@
"gulp-cssimport": "^1.3.1",
"gulp-minify-css": "^0.3.11",
"gulp-imagemin": "^2.1.0",
"gulp-jshint": "^1.9.0",
"yargs": "^1.3.3"
}
}
......
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