-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
47 lines (44 loc) · 1.44 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
46
47
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
htmlhint: {
templates: {
options: {
'attr-lower-case': true,
'attr-value-not-empty': true,
'tag-pair': true,
'tag-self-close': true,
'tagname-lowercase': true,
'id-class-value': true,
'id-class-unique': true,
'src-not-empty': true,
'img-alt-required': true
},
src: ['www/PlsRemindMe.Web/Templates/**/*.html']
}
},
less: {
development: {
options: {
cleancss: true,
compress: false,
modifyVars: {
'color-primary-dark-blue': 'NOT_BLUE'
}
},
files: [{
expand: true,
cwd: 'www/PlsRemindMe.Web/Content/',
dest: 'www/PlsRemindMe.Web/Content/',
src: ['plsremind.me.*.less'],
ext: '.css',
extDot: 'last'
}]
}
}
});
grunt.loadNpmTasks('grunt-htmlhint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('default', ['htmlhint', 'less']);
}