summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Treffler <mail@jonathan-treffler.de>2020-08-07 11:02:47 +0200
committerSimon Spannagel <simonspa@kth.se>2021-12-16 19:48:55 +0100
commit670b13bf5c3e24893fc77eaacde85627703cb63a (patch)
tree69514de475defc60d7f50ba4282d9986748589c0
parent2743e39ff281049006395d2a8d0a9cd1c80253c0 (diff)
removed gulp
Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de>
-rw-r--r--js/gulpfile.js79
1 files changed, 0 insertions, 79 deletions
diff --git a/js/gulpfile.js b/js/gulpfile.js
deleted file mode 100644
index eef83d114..000000000
--- a/js/gulpfile.js
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- * Nextcloud - News
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @copyright Bernhard Posselt 2012, 2014
- */
-
-/*jslint node: true */
-'use strict';
-
-const gulp = require('gulp'),
- ngAnnotate = require('gulp-ng-annotate'),
- terser = require('gulp-terser'),
- jshint = require('gulp-jshint'),
- KarmaServer = require('karma').Server,
- concat = require('gulp-concat'),
- sourcemaps = require('gulp-sourcemaps');
-
-// Configuration
-const buildTarget = 'app.min.js';
-const karmaConfig = __dirname + '/karma.conf.js';
-const destinationFolder = __dirname + '/build/';
-const sources = [
- 'node_modules/angular/angular.min.js',
- 'node_modules/angular-animate/angular-animate.min.js',
- 'node_modules/angular-route/angular-route.min.js',
- 'node_modules/angular-sanitize/angular-sanitize.min.js',
- 'node_modules/masonry-layout/dist/masonry.pkgd.min.js',
- 'app/App.js', 'app/Config.js', 'app/Run.js',
- 'controller/**/*.js',
- 'filter/**/*.js',
- 'service/**/*.js',
- 'gui/**/*.js',
- 'plugin/**/*.js',
- 'utility/**/*.js',
- 'directive/**/*.js'
-];
-const testSources = ['tests/**/*.js'];
-const watchSources = sources.concat(testSources).concat(['*.js']);
-const lintSources = watchSources;
-
-// tasks
-gulp.task('lint', () => {
- return gulp.src(lintSources)
- .pipe(jshint())
- .pipe(jshint.reporter('default'))
- .pipe(jshint.reporter('fail'));
-});
-
-gulp.task('default', gulp.series('lint', () => {
- return gulp.src(sources)
- .pipe(ngAnnotate())
- .pipe(sourcemaps.init())
- .pipe(concat(buildTarget))
- .pipe(terser())
- .pipe(sourcemaps.write())
- .pipe(gulp.dest(destinationFolder));
-}));
-
-gulp.task('watch', () => {
- gulp.watch(watchSources, ['default']);
-});
-
-gulp.task('karma', (done) => {
- new KarmaServer({
- configFile: karmaConfig,
- singleRun: true
- }, done).start();
-});
-
-gulp.task('watch-karma', (done) => {
- new KarmaServer({
- configFile: karmaConfig,
- autoWatch: true
- }, done).start();
-});