Skip to content

Commit

Permalink
Reduced dependabot alerts by updating javascript libraries
Browse files Browse the repository at this point in the history
Co-authored-by: automatic.com.au
  • Loading branch information
justparking authored and scroix committed Apr 1, 2024
1 parent e2fca9f commit 4d0b95e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
12 changes: 2 additions & 10 deletions nodel-webui-js/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,6 @@ module.exports = function(grunt) {
dest: './build/grunt/v1/css/components.default.css'
}
},
run: {
lodash: {
exec: 'lodash -d -o "./temp/lodash.build.js" --silent'
}
},
concat: {
options: {
separator: ';'
Expand Down Expand Up @@ -240,7 +235,7 @@ module.exports = function(grunt) {
'./node_modules/identicon.js/identicon.js',
'./node_modules/xxhashjs/build/xxhash.js',
'./node_modules/google-charts/dist/googleCharts.js',
'./temp/lodash.build.js',
'./node_modules/lodash/lodash.js',
'./src/polyfill.js'
],
dest: './build/grunt/v1/js/components.js'
Expand All @@ -261,15 +256,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-concat-css');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-sftp-deploy');
grunt.loadNpmTasks('grunt-twbs');
grunt.loadNpmTasks('grunt-run');
grunt.loadNpmTasks('grunt-text-replace');
grunt.loadNpmTasks('grunt-google-fonts');
// Task definition
grunt.registerTask('default', ['googlefonts', 'run:lodash', 'copy:updatetheme','replace','twbs:dark','concat_css:dark','twbs:light','concat_css:light','copy:main','concat','uglify']);
grunt.registerTask('default', ['googlefonts', 'copy:updatetheme','replace','twbs:dark','concat_css:dark','twbs:light','concat_css:light','copy:main','concat','uglify']);
grunt.registerTask('build', ['copy:updatetheme','replace','twbs:dark','concat_css:dark','twbs:light','concat_css:light','copy:main','concat','uglify']);
grunt.registerTask('lodash', ['run:lodash']);
grunt.registerTask('gfonts', ['googlefonts']);
grunt.registerTask('deploy', ['copy:main','copy:deploy']);
};
27 changes: 12 additions & 15 deletions nodel-webui-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"array.findindex": "^1.0.4",
"bootstrap": "^3.4.1",
"cm-resize": "^1.0.1",
"codemirror": "^5.47.0",
"codemirror": "^5.58.3",
"fuzzyset.js": "0.0.8",
"google-charts": "^2.0.0",
"gsap": "^2.1.3",
"gsap": "^3.8.0",
"identicon.js": "^2.3.3",
"jquery": "^3.5.0",
"jquery.scrollbar": "^0.2.11",
Expand All @@ -21,25 +21,22 @@
"xxhashjs": "^0.2.2"
},
"devDependencies": {
"grunt": "^1.0.4",
"grunt-concat-css": "^0.3.1",
"grunt-contrib-concat": "^1.0.1",
"grunt": "^1.4.1",
"grunt-concat-css": "^0.3.2",
"grunt-contrib-concat": "^2.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-less": "^2.0.0",
"grunt-contrib-uglify": "^4.0.1",
"grunt-contrib-less": "^3.0.0",
"grunt-contrib-uglify": "^5.0.1",
"grunt-contrib-watch": "^1.1.0",
"grunt-google-fonts": "^0.5.0",
"grunt-npm-command": "^0.1.2",
"grunt-run": "^0.8.1",
"grunt-sftp-deploy": "^0.2.5",
"grunt-text-replace": "^0.4.0",
"grunt-twbs": "0.0.5",
"mkdirp": "^0.5.1",
"tslib": "^1.10.0",
"uglify-js": "^3.6.0",
"mkdirp": "^1.0.4",
"tslib": "^2.3.1",
"uglify-js": "^3.14.2",
"uglifycss": "0.0.29",
"grunt-cli": "^1.3.2",
"lodash-cli": "^4.17.5"
"grunt-cli": "^1.4.3",
"lodash": "^4.17.21"
},
"scripts": {
"run-grunt": "node_modules/.bin/grunt"
Expand Down

0 comments on commit 4d0b95e

Please sign in to comment.