Skip to content

Commit

Permalink
Update to bootstrap 5 and refactor to throw servlet exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
skavanagh committed Feb 12, 2022
1 parent b28cef3 commit 7d4ba64
Show file tree
Hide file tree
Showing 69 changed files with 13,502 additions and 14,090 deletions.
175 changes: 88 additions & 87 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,88 +1,89 @@
module.exports = function(grunt) {
grunt.initConfig({
node: './node_modules',
dest: './src/main/webapp/_res/node',
destJs: '<%= dest %>/js',
destCss: '<%= dest %>/css',
clean: {
build: {
src: ['<%= dest %>']
}
},
mkdir: {
all: {
options: {
create: ['<%= destCss %>/jquery-ui/images', '<%= destJs %>/jquery-ui/widgets']
},
},
},
copy: {
main: {
files: [
{
expand: true,
flatten: true,
src: ['<%= node %>/bootstrap/dist/css/*',
'<%= node %>/xterm/css/xterm.*'
],
dest: '<%= destCss %>/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery-ui/themes/base/*'],
dest: '<%= destCss %>/jquery-ui/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery-ui/themes/base/images/*'],
dest: '<%= destCss %>/jquery-ui/images',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery/dist/jquery.min.*',
'<%= node %>/@popperjs/core/dist/umd/popper.min.*',
'<%= node %>/bootstrap/dist/js/bootstrap.min.*',
'<%= node %>/floatthead/dist/jquery.floatThead.min.*',
'<%= node %>/xterm/lib/xterm.*',
'<%= node %>/xterm-addon-fit/lib/xterm-addon-fit.*'
],
dest: '<%= destJs %>/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery-ui/ui/*.*'],
dest: '<%= destJs %>/jquery-ui/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery-ui/ui/widgets/draggable.*',
'<%= node %>/jquery-ui/ui/widgets/droppable.*',
'<%= node %>/jquery-ui/ui/widgets/resizable.*',
'<%= node %>/jquery-ui/ui/widgets/selectable.*',
'<%= node %>/jquery-ui/ui/widgets/sortable.*',
'<%= node %>/jquery-ui/ui/widgets/mouse.*'
],
dest: '<%= destJs %>/jquery-ui/widgets',
filter: 'isFile'
}
]
}
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-mkdir');
grunt.loadNpmTasks('grunt-contrib-copy');

grunt.registerTask('default', ['clean','mkdir','copy']);
module.exports = function(grunt) {
grunt.initConfig({
node: './node_modules',
dest: './src/main/webapp/_res/node',
destJs: '<%= dest %>/js',
destCss: '<%= dest %>/css',
clean: {
build: {
src: ['<%= dest %>']
}
},
mkdir: {
all: {
options: {
create: ['<%= destCss %>/jquery-ui/images', '<%= destJs %>/jquery-ui/widgets']
},
},
},
copy: {
main: {
files: [
{
expand: true,
flatten: true,
src: ['<%= node %>/bootstrap/dist/css/bootstrap*min*',
'<%= node %>/xterm/css/xterm.*'
],
dest: '<%= destCss %>/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery-ui/themes/base/*'],
dest: '<%= destCss %>/jquery-ui/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery-ui/themes/base/images/*'],
dest: '<%= destCss %>/jquery-ui/images',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery/dist/jquery.min.*',
'<%= node %>/@popperjs/core/dist/umd/popper.min.js',
'<%= node %>/@popperjs/core/dist/umd/popper.min.js.map',
'<%= node %>/bootstrap/dist/js/bootstrap.min.*',
'<%= node %>/floatthead/dist/jquery.floatThead.min.*',
'<%= node %>/xterm/lib/xterm.*',
'<%= node %>/xterm-addon-fit/lib/xterm-addon-fit.*'
],
dest: '<%= destJs %>/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery-ui/ui/*.*'],
dest: '<%= destJs %>/jquery-ui/',
filter: 'isFile'
},
{
expand: true,
flatten: true,
src: ['<%= node %>/jquery-ui/ui/widgets/draggable.*',
'<%= node %>/jquery-ui/ui/widgets/droppable.*',
'<%= node %>/jquery-ui/ui/widgets/resizable.*',
'<%= node %>/jquery-ui/ui/widgets/selectable.*',
'<%= node %>/jquery-ui/ui/widgets/sortable.*',
'<%= node %>/jquery-ui/ui/widgets/mouse.*'
],
dest: '<%= destJs %>/jquery-ui/widgets',
filter: 'isFile'
}
]
}
}
});

grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-mkdir');
grunt.loadNpmTasks('grunt-contrib-copy');

grunt.registerTask('default', ['clean','mkdir','copy']);
};
Loading

0 comments on commit 7d4ba64

Please sign in to comment.