-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
45 lines (44 loc) · 1.14 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* grunt-characters-file
* https://github.com/JA44/grunt-characters-file
*
* Copyright (c) 2015 Jean-Alain Ré
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js',
'<%= nodeunit.tests %>'
],
options: {
jshintrc: '.jshintrc'
}
},
jscs: {
src: ['*.js', '*/**.js']
},
// Configuration to be run (and then tested).
characters_file: {
default_options: {
options: {},
src: 'test/fixtures/*'
},
custom_options: {
options: {
alertIfHigher: 10
},
src: 'test/fixtures/*'
}
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// By default, lint and run all tests.
grunt.registerTask('default', ['jscs', 'characters_file']);
};