Skip to content

Commit

Permalink
Merge branch 'upgrade/node-20lts' into feature/introduce-frontend-tes…
Browse files Browse the repository at this point in the history
…ting

# Conflicts:
#	.gitignore
#	build.gradle
#	nodel-webui-js/Gruntfile.js
#	nodel-webui-js/build.gradle
#	nodel-webui-js/package-lock.json
#	nodel-webui-js/package.json
  • Loading branch information
scroix committed Apr 6, 2024
2 parents 5d6d89d + 0cdb687 commit 4173ead
Show file tree
Hide file tree
Showing 4 changed files with 1,371 additions and 975 deletions.
26 changes: 15 additions & 11 deletions nodel-webui-js/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,23 @@ module.exports = function(grunt) {
}]
}
},
twbs: {
less: {
dark: {
options: {
bootstrap: './node_modules/bootstrap',
less: './src/dark/'
}
paths: ['./node_modules/bootstrap/less'],
},
files: {
'./build/grunt/v1/css/bootstrap-dark.css': './src/dark/theme.less',
},
},
light: {
options: {
bootstrap: './node_modules/bootstrap',
less: './src/light/'
}
}
paths: ['./node_modules/bootstrap/less'],
},
files: {
'./build/grunt/v1/css/bootstrap-light.css': './src/light/theme.less',
},
},
},
copy: {
updatetheme: {
Expand Down Expand Up @@ -267,12 +271,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-concat-css');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-twbs');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-text-replace');
grunt.loadNpmTasks('grunt-google-fonts');
// Task definition
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('default', ['googlefonts', 'copy:updatetheme', 'replace', 'less:dark', 'concat_css:dark', 'less:light', 'concat_css:light', 'copy:main', 'concat', 'uglify']);
grunt.registerTask('build', ['copy:updatetheme', 'replace', 'less:dark', 'concat_css:dark', 'less:light', 'concat_css:light', 'copy:main', 'concat', 'uglify']);
grunt.registerTask('gfonts', ['googlefonts']);
grunt.registerTask('deploy', ['copy:main','copy:deploy']);
};
3 changes: 2 additions & 1 deletion nodel-webui-js/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
}

node {
version = '12.19.0'
version = '20.12.0'
download = true

workDir = file("${project.buildDir}/nodejs")
Expand Down Expand Up @@ -75,6 +75,7 @@ tasks.register('gruntRun', NpxTask) {
}

command = "grunt"
args = ["build"]
inputs.property('filesChanged', shouldInstall)
inputs.dir("node_modules")
outputs.dir("build/grunt")
Expand Down
Loading

0 comments on commit 4173ead

Please sign in to comment.