Avoid duplicating web addon in enterprise by extracting a common basis. Enterprise features stay in enterprise, but use that common basis. Mainly: - JS refactoring and linting - Conversion of .sass into .less split into multiple files - Templates cleaning and DOM simplification - Re-generation of web.pot, and update of .po files
20 lines
468 B
JavaScript
20 lines
468 B
JavaScript
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
|
jshint: {
|
|
src: ['static/src/**/*.js', 'static/test/**/*.js'],
|
|
options: {
|
|
sub: true, //[] instead of .
|
|
evil: true, //eval
|
|
laxbreak: true, //unsafe line breaks
|
|
},
|
|
},
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
grunt.registerTask('test', []);
|
|
|
|
grunt.registerTask('default', ['jshint']);
|
|
|
|
}; |