forked from dciccale/comment.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
50 lines (43 loc) · 1.05 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
48
49
50
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
LIB_DIR: 'lib/',
ASSETS_DIR: '<%= LIB_DIR %>assets/',
JS_DIR: '<%= ASSETS_DIR %>js/',
STYL_DIR: '<%= ASSETS_DIR %>styl/',
DEFAULT_THEME_DIR: 'themes/default/',
CSS_DEST: '<%= DEFAULT_THEME_DIR %>css/docs.css',
jshint: {
options: {
jshintrc: '.jshintrc'
},
lib: {
src: ['<%= LIB_DIR %>**/*.js', '!<%= JS_DIR %>prettify.js']
}
},
stylus: {
compile: {
options: {
compress: false
},
files: {
'<%= CSS_DEST %>': ['<%= ASSETS_DIR %>styl/docs.styl']
}
}
},
watch: {
jshint: {
files: ['<%= jshint.lib.src %>'],
tasks: ['jshint']
},
stylus: {
files: ['<%= STYL_DIR %>*.styl'],
tasks: ['stylus']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['jshint', 'stylus']);
};