1 | module.exports = function(grunt) {
|
2 | grunt.initConfig({
|
3 | jshint: {
|
4 | all: [
|
5 | 'Gruntfile.js',
|
6 | 'tasks/**/*.js',
|
7 | 'test/**/*.js'
|
8 | ],
|
9 | options: {
|
10 | jshintrc: true
|
11 | }
|
12 | },
|
13 |
|
14 | scsslint: {
|
15 | all: [
|
16 | 'test/fixtures/fail.scss',
|
17 | 'test/fixtures/pass.scss',
|
18 | 'test/fixtures/*.scss'
|
19 | ],
|
20 | options: {
|
21 | config: '.scss-lint.yml',
|
22 | reporterOutput: 'scss-lint-report.xml'
|
23 | }
|
24 | },
|
25 |
|
26 | nodeunit: {
|
27 | tests: ['test/*-test.js']
|
28 | }
|
29 | });
|
30 |
|
31 | grunt.loadTasks('tasks');
|
32 |
|
33 | grunt.loadNpmTasks('grunt-contrib-jshint');
|
34 | grunt.loadNpmTasks('grunt-contrib-internal');
|
35 | grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
36 |
|
37 | grunt.registerTask('test', ['jshint', 'nodeunit']);
|
38 |
|
39 | grunt.registerTask('default', ['test']);
|
40 | }; |
\ | No newline at end of file |