WebUI : Remove uglify of js files

This commit is contained in:
Floran Brutel 2016-09-18 19:52:11 +02:00
parent ac1a24dbc3
commit 5191b7327b
6 changed files with 50863 additions and 15 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
glances/outputs/static/public/js/*.js -diff

View File

@ -1,5 +1,5 @@
{
"name": "Glances",
"name": "glances",
"private": true,
"dependencies": {
"angular": "^1.5.8",

View File

@ -1,5 +1,4 @@
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var mainBowerFiles = require('main-bower-files');
var ngAnnotate = require('gulp-ng-annotate');
@ -27,7 +26,6 @@ gulp.task('copy', function() {
gulp.task('bower', function() {
return gulp.src(mainBowerFiles())
.pipe(concat('vendor.js'))
.pipe(uglify())
.pipe(gulp.dest('./public/js'))
});
@ -35,7 +33,6 @@ gulp.task('build-js', function() {
return gulp.src('./js/**/*.js')
.pipe(ngAnnotate())
.pipe(concat('main.js'))
.pipe(uglify())
.pipe(gulp.dest('./public/js'))
});
@ -53,4 +50,4 @@ gulp.task('watch', function () {
});
gulp.task('build', ['clean', 'bower', 'build-js', 'template', 'copy']);
gulp.task('default', ['build']);
gulp.task('default', ['build']);

View File

@ -8,7 +8,6 @@
"gulp-angular-templatecache": "^2.0.0",
"gulp-concat": "^2.6.0",
"gulp-ng-annotate": "^2.0.0",
"gulp-uglify": "^1.5.4",
"main-bower-files": "^2.13.1"
},
"scripts": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long