UNPKG

1.12 kBJavaScriptView Raw
1module.exports = function(grunt) {
2 "use strict";
3 // Project configuration.
4 grunt.initConfig({
5 jsbeautifier: {
6 files: ['package.json', '<%= jshint.files %>']
7 },
8 nodeunit: {
9 all: ['test/**/*.js']
10 },
11 jshint: {
12 files: ['package.json', 'Gruntfile.js', 'tasks/**/*.js', 'test/**/*.js'],
13 options: {
14 curly: true,
15 eqeqeq: true,
16 immed: true,
17 latedef: true,
18 newcap: true,
19 noarg: true,
20 sub: true,
21 undef: true,
22 boss: true,
23 eqnull: true,
24 node: true,
25 es5: true
26 }
27 }
28 });
29
30 // Actually load this plugin's task(s).
31 grunt.loadTasks('tasks');
32
33 // These plugins provide necessary tasks.
34 grunt.loadNpmTasks('grunt-contrib-jshint');
35 grunt.loadNpmTasks('grunt-contrib-nodeunit');
36
37 // By default, beautifiy, lint and run all tests.
38 grunt.registerTask('default', ['jsbeautifier', 'jshint', 'nodeunit']);
39
40};
\No newline at end of file