Skip to content

Commit

Permalink
[Hardening] Refresh js deps
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Sep 12, 2019
1 parent 1cf9f32 commit 640ddae
Show file tree
Hide file tree
Showing 8 changed files with 19,597 additions and 71 deletions.
30 changes: 19 additions & 11 deletions geonode/static/gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ module.exports = function(grunt) {
},
production: {
options: {
paths: ['node_modules/bootstrap/less'],
paths: [
'geonode/less',
'node_modules/bootstrap/less'
],
yuicompress: true
},
files: [
Expand Down Expand Up @@ -81,7 +84,7 @@ module.exports = function(grunt) {
'datatables/media/css/jquery.dataTables.min.css',
'select2/dist/css/select2.min.css',
'multi-select/dist/bundles/multi-select.css',
'jquery-ui/themes/base/*.css',
'jquery-ui/themes/base/*.css', // WARNING: you need to build manually node_modules/jquery-ui
'raty-js/lib/jquery.raty.css',
'bootstrap/dist/css/bootstrap.min.css',
'leaflet-fullscreen/dist/leaflet.fullscreen.css',
Expand Down Expand Up @@ -112,7 +115,7 @@ module.exports = function(grunt) {
'select2/select2*.png',
'select2/select2*.gif',
'raty-js/lib/img/*.png',
'jquery-ui/themes/base/images/*',
'jquery-ui/themes/base/images/*', // WARNING: you need to build manually node_modules/jquery-ui
'leaflet-fullscreen/dist/*.png',
'leaflet-opacity/lib/opacity/images/*',
'leaflet-opacity/lib/jquery/images/*',
Expand Down Expand Up @@ -165,7 +168,7 @@ module.exports = function(grunt) {

'jquery/dist/jquery.js',
'jquery/dist/jquery.min.js',
'jquery-ui/dist/jquery-ui.js',
'jquery-ui/dist/jquery-ui.js', // WARNING: you need to build manually node_modules/jquery-ui
'jquery-waypoints/waypoints.js',
'jquery-waypoints/waypoints.min.js',
'jq-ajax-progress/src/jq-ajax-progress.js',
Expand Down Expand Up @@ -201,7 +204,7 @@ module.exports = function(grunt) {
},

replace: {
development: {
default: {
src: ['lib/css/*.css'],
overwrite: true,
/*
Expand Down Expand Up @@ -343,7 +346,7 @@ module.exports = function(grunt) {
'lib/js/fastselect.standalone.js',
'lib/js/handlebars.js',
'lib/js/json2.js',
'lib/js/jquery-ui.js',
'lib/js/jquery-ui.js', // WARNING: you need to build manually node_modules/jquery-ui
'lib/js/jquery.dataTables.js',
'lib/js/jquery.raty.js',
'lib/js/jquery.timeago.js',
Expand All @@ -370,24 +373,29 @@ module.exports = function(grunt) {
}
},
production: {
options: {
beautify: false,
compress: true,
mangle: false
},
files: {
'lib/js/assets.min.js': [
'lib/js/jquery.min.js',

'lib/js/moment-with-locales.min.js',
'lib/js/moment-timezone-with-data.min.js',

'lib/js/angular.js',
'lib/js/angular-cookies.js',
'lib/js/angular-leaflet-directive.min.js',

'lib/js/moment-with-locales.min.js',
'lib/js/moment-timezone-with-data.min.js',

'lib/js/bootstrap.min.js',
'lib/js/bootstrap-datetimepicker.min.js',
'lib/js/bootstrap-tokenfield.min.js',
'lib/js/bootstrap-select.min.js',
'lib/js/bootstrap-multiselect.js',
// 'lib/js/bootstrap3-wysihtml5.min.js',
'lib/js/bootstrap-table.min.js',
'lib/js/bootstrap-table.js', // do not use .min here
'lib/js/bootstrap-toggle.min.js',
'lib/js/bootstrap-typeahead.js',
'lib/js/bootstrap-treeview.min.js',
Expand All @@ -396,7 +404,7 @@ module.exports = function(grunt) {
'lib/js/fastselect.standalone.min.js',
'lib/js/handlebars.min.js',
'lib/js/json2.js',
'lib/js/jquery-ui.js',
'lib/js/jquery-ui.js', // WARNING: you need to build manually node_modules/jquery-ui
'lib/js/jquery.dataTables.js',
'lib/js/jquery.raty.js',
'lib/js/jquery.timeago.js',
Expand Down
105 changes: 58 additions & 47 deletions geonode/static/lib/js/assets.min.js

Large diffs are not rendered by default.

0 comments on commit 640ddae

Please sign in to comment.