summaryrefslogtreecommitdiff
path: root/addons/web/Gruntfile.js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2013-07-25 12:07:49 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2013-07-25 12:07:49 +0200
commit42e493e73efd603002feb92703a82f34c6bc6aea (patch)
tree32a49385764688e013f12d849231996c9d8f0358 /addons/web/Gruntfile.js
parentb105770bbc0f545a4dfd0482b5b310f534fc1033 (diff)
Added Gruntfile with jshint and corrected most js errors
bzr revid: nicolas.vanhoren@openerp.com-20130725100749-0i82gf3k3nvt4r44
Diffstat (limited to 'addons/web/Gruntfile.js')
-rw-r--r--addons/web/Gruntfile.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/web/Gruntfile.js b/addons/web/Gruntfile.js
new file mode 100644
index 00000000000..6561aecd3bd
--- /dev/null
+++ b/addons/web/Gruntfile.js
@@ -0,0 +1,22 @@
+module.exports = function(grunt) {
+
+ grunt.initConfig({
+ jshint: {
+ files: ['static/src/**/*.js'],
+ options: {
+ sub: true, //[] instead of .
+ asi: true, //semicolons
+ evil: true, //eval
+ laxbreak: true, //unsafe line breaks
+ loopfunc: true, // functions in loops
+ },
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+
+ grunt.registerTask('test', ['jshint']);
+
+ grunt.registerTask('default', ['jshint']);
+
+}; \ No newline at end of file