Skip to content

Commit

Permalink
Merge pull request #20 from slub/providerlogo-javascript
Browse files Browse the repository at this point in the history
Add sponsor and aggregator logo and other JavaScript improvments
  • Loading branch information
Alexander Bigga authored May 7, 2021
2 parents b7288ff + bcaa1d2 commit d4aa67f
Show file tree
Hide file tree
Showing 24 changed files with 3,815 additions and 3,189 deletions.
34 changes: 23 additions & 11 deletions gruntfile.js → Build/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,25 @@ module.exports = function(grunt) {
}
}
},
uglify: {
terser: {
development: {
options: {
compress: true,
preserveComments: false,
yuicompress: true,
optimization: 2
output: {
comments: false
}
},
files: {
"Resources/Public/Javascript/DigitalcollectionsScripts.js" : ['Resources/Private/Javascript/modernizrCustom.js', 'Resources/Private/Javascript/Cookies.js', 'Resources/Private/Javascript/DigitalcollectionsScripts.js'],
"Resources/Public/Javascript/DigitalcollectionsListScripts.js" : ['Resources/Private/Javascript/modernizrCustom.js', 'Resources/Private/Javascript/colcade.js', 'Resources/Private/Javascript/DigitalcollectionsListScripts.js']
"Resources/Public/JavaScript/DigitalcollectionsScripts.js" : [
'Resources/Private/JavaScript/modernizrCustom.js',
'Resources/Private/JavaScript/Cookies.js',
'Resources/Private/JavaScript/DigitalcollectionsScripts.js',
],
"Resources/Public/JavaScript/DigitalcollectionsListScripts.js" : [
'Resources/Private/JavaScript/modernizrCustom.js',
'Resources/Public/JavaScript/Highlight/colcade.js',
'Resources/Private/JavaScript/DigitalcollectionsListScripts.js',
],
}
}
},
Expand All @@ -37,14 +45,18 @@ module.exports = function(grunt) {
files: ['Resources/Private/Less/**/*.less'],
tasks: ['less'],
options: {
nospawn: true
spawn: false
}
},
js: {
files: ['Resources/Private/Javascript/*.js'],
tasks: ['uglify']
}
files: ['Resources/Private/JavaScript/*.js'],
tasks: ['terser'],
options: {
spawn: false
}
},
}
});
grunt.registerTask('default', ['less','uglify','watch']);
grunt.file.setBase('../')
grunt.registerTask('default', ['terser','less','watch']);
};
Loading

0 comments on commit d4aa67f

Please sign in to comment.