mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Move from Make to Grunt
This commit is contained in:
29
Gruntfile.js
Normal file
29
Gruntfile.js
Normal file
@@ -0,0 +1,29 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
|
||||
jshint: {
|
||||
all: ['**/*.js', '!node_modules/**/*.js', '!public/js/vendor/**/*.js'],
|
||||
options: {
|
||||
es3: false,
|
||||
indent: 4,
|
||||
latedef: false,
|
||||
maxcomplexity: 4,
|
||||
maxdepth: 2,
|
||||
maxlen: 100,
|
||||
maxparams: 4,
|
||||
maxstatements: false,
|
||||
node: true,
|
||||
quotmark: 'single'
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
|
||||
grunt.registerTask('lint', ['jshint']);
|
||||
grunt.registerTask('default', ['lint']);
|
||||
grunt.registerTask('ci', ['lint']);
|
||||
|
||||
};
|
Reference in New Issue
Block a user