GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit b4439da7 authored by Curtis Adam's avatar Curtis Adam Committed by Tom Käsler

Update gulp to v4

parent c6863725
/* /*
* This file is part of ARSnova Cards. * This file is part of cards.
* Copyright (C) 2016 The ARSnova Team * Copyright (C) 2018 The ARSnova Team
* *
* ARSnova Click is free software: you can redistribute it and/or modify * cards is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* ARSnova Click is distributed in the hope that it will be useful, * cards is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with ARSnova Click. If not, see <http://www.gnu.org/licenses/>.*/ * along with cards. If not, see <http://www.gnu.org/licenses/>.*/
var gulp = require('gulp'), let gulp = require('gulp4'),
watch = require('gulp-watch'); watch = require('gulp-watch');
var jshint = require('gulp-jshint'); let jshint = require('gulp-jshint');
var jscs = require('gulp-jscs'); let jscs = require('gulp-jscs');
var stylish = require('jshint-stylish'); let stylish = require('jshint-stylish');
var paths = [ let paths = [
'./{client,imports,i18n,server,tests}/**/*.js' './{client,imports,i18n,server,tests}/**/*.js'
]; ];
gulp.task('default', ['codeCheck']);
gulp.task('watch', function () { gulp.task('watch', function () {
gulp.start('codeCheck'); gulp.watch(paths, gulp.series('codeCheck'));
gulp.watch(paths, ['codeCheck'])
});
gulp.task('codeCheck', function () {
gulp.start('lint');
gulp.start('jscs');
}); });
gulp.task('lint', function () { gulp.task('lint', function () {
...@@ -48,3 +40,13 @@ gulp.task('jscs', function () { ...@@ -48,3 +40,13 @@ gulp.task('jscs', function () {
.pipe(jscs()) .pipe(jscs())
.pipe(jscs.reporter()); .pipe(jscs.reporter());
}); });
gulp.task(
'codeCheck',
gulp.series('lint', 'jscs')
);
gulp.task(
'default',
gulp.series('codeCheck')
);
This diff is collapsed.
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"devDependencies": { "devDependencies": {
"gulp": "^3.9.1", "chimp": "^0.50.2",
"gulp-jscs": "^3.0.2", "gulp-jscs": "^3.0.2",
"gulp-jshint": "^2.0.0", "gulp-jshint": "^2.0.0",
"gulp-watch": "^4.3.5", "gulp-watch": "^4.3.5",
"gulp4": "^4.0.2",
"jshint": "^2.9.5", "jshint": "^2.9.5",
"jshint-stylish": "^2.1.0", "jshint-stylish": "^2.1.0"
"chimp": "^0.50.2"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
......
Markdown is supported
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