Rev | Line | |
---|
[426] | 1 | var fs = require('fs'); |
---|
| 2 | var path = require('path'); |
---|
| 3 | |
---|
| 4 | module.exports = function(grunt) { |
---|
| 5 | |
---|
| 6 | grunt.initConfig({ |
---|
| 7 | pkg: grunt.file.readJSON('package.json'), |
---|
| 8 | less: { |
---|
| 9 | options: { |
---|
[433] | 10 | strictImports: false, |
---|
| 11 | dumpLineNumbers: "all" |
---|
[426] | 12 | }, |
---|
| 13 | all: { |
---|
| 14 | files: { |
---|
[432] | 15 | 'css/qed.css': 'css/qed.less' |
---|
[426] | 16 | } |
---|
| 17 | } |
---|
| 18 | }, |
---|
| 19 | jshint: { |
---|
| 20 | options: { |
---|
[431] | 21 | jshintrc: ".jshintrc" |
---|
[426] | 22 | }, |
---|
| 23 | all: { |
---|
| 24 | files: { |
---|
| 25 | src: ['**/*.js', '!node_modules/**'] |
---|
| 26 | } |
---|
| 27 | } |
---|
[431] | 28 | }, |
---|
| 29 | htmlhint: { |
---|
| 30 | options: { |
---|
| 31 | htmlhintrc: ".htmlhintrc" |
---|
| 32 | }, |
---|
| 33 | all: { |
---|
| 34 | files: { |
---|
| 35 | src: ['**/*.html', '!node_modules/**'] |
---|
| 36 | } |
---|
| 37 | } |
---|
[426] | 38 | } |
---|
| 39 | }); |
---|
| 40 | |
---|
| 41 | grunt.loadNpmTasks('grunt-contrib-less'); |
---|
| 42 | grunt.loadNpmTasks('grunt-contrib-jshint'); |
---|
[431] | 43 | grunt.loadNpmTasks('grunt-htmlhint'); |
---|
[426] | 44 | |
---|
[431] | 45 | grunt.registerTask('default', ['less', 'jshint', 'htmlhint']); |
---|
[426] | 46 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.