-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "DDF-4049 Fixes DefaultErrorHandler so that it generates corre…
- Loading branch information
Showing
16 changed files
with
1,077 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
platform/error/platform-error-impl/src/main/resources/codeMessages.properties
This file was deleted.
Oops, something went wrong.
125 changes: 0 additions & 125 deletions
125
platform/error/platform-error-impl/src/main/resources/error.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/** | ||
* Copyright (c) Codice Foundation | ||
* | ||
* This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either | ||
* version 3 of the License, or any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at | ||
* <http://www.gnu.org/licenses/lgpl.html>. | ||
* | ||
**/ | ||
/*global module,require*/ | ||
|
||
module.exports = function (grunt) { | ||
|
||
require('load-grunt-tasks')(grunt, {requireResolution: true}); | ||
|
||
grunt.initConfig({ | ||
|
||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
clean: { | ||
build: ['target/webapp'] | ||
}, | ||
cssmin: { | ||
compress: { | ||
files: { | ||
"target/webapp/css/index.css": ["src/main/webapp/css/*.css"] | ||
} | ||
} | ||
}, | ||
jshint: { | ||
files: ['Gruntfile.js', 'src/main/webapp/js/**/*.js', 'src/main/webapp/main.js', 'src/main/webapp/properties.js'], | ||
options: { | ||
bitwise: true, // Prohibits the use of bitwise operators such as ^ (XOR), | (OR) and others. | ||
forin: true, // Requires all for in loops to filter object's items. | ||
latedef: true, // Prohibits the use of a variable before it was defined. | ||
newcap: true, // Requires you to capitalize names of constructor functions. | ||
noarg: true, // Prohibits the use of arguments.caller and arguments.callee. Both .caller and .callee make quite a few optimizations impossible so they were deprecated in future versions of JavaScript. | ||
noempty: true, // Warns when you have an empty block in your code. | ||
regexp: true, // Prohibits the use of unsafe . in regular expressions. | ||
undef: true, // Prohibits the use of explicitly undeclared variables. | ||
unused: true, // Warns when you define and never use your variables. | ||
maxlen: 250, // Set the maximum length of a line to 250 characters. If triggered, the line should be wrapped. | ||
eqeqeq: true, // Prohibits the use of == and != in favor of === and !== | ||
|
||
// Relaxing Options | ||
scripturl: true, // This option suppresses warnings about the use of script-targeted URLs—such as | ||
es5: true, // Tells JSHint that your code uses ECMAScript 5 specific features such as getters and setters. | ||
|
||
// options here to override JSHint defaults | ||
globals: { | ||
console: true, | ||
module: true | ||
} | ||
} | ||
}, | ||
watch: { | ||
jsFiles: { | ||
files: ['<%= jshint.files %>'], | ||
tasks: ['jshint'] | ||
}, | ||
livereload : { | ||
options : {livereload :true}, | ||
files : ['target/webapp/css/index.css' | ||
// this one is more dangerous, tends to reload the page if one file changes | ||
// probably too annoying to be useful, uncomment if you want to try it out | ||
// '<%= jshint.files %>' | ||
] | ||
}, | ||
cssFiles : { | ||
files :['src/main/webapp/css/*.css'], | ||
tasks : ['cssmin'] | ||
}, | ||
}, | ||
express: { | ||
options: { | ||
port: 8282, | ||
hostname: '*' | ||
}, | ||
server: { | ||
options: { | ||
script: './server.js' | ||
} | ||
} | ||
} | ||
}); | ||
|
||
grunt.registerTask('build', ['clean', 'cssmin', 'jshint']); | ||
grunt.registerTask('default', ['build','express:server','watch']); | ||
}; |
Oops, something went wrong.