Skip to content

Commit

Permalink
Replace twbs with grunt-contrib-less
Browse files Browse the repository at this point in the history
  • Loading branch information
scroix committed Apr 1, 2024
1 parent 58e4fe3 commit 60657c9
Showing 1 changed file with 15 additions and 11 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']);
};

0 comments on commit 60657c9

Please sign in to comment.