-
Notifications
You must be signed in to change notification settings - Fork 13
/
Gruntfile.js
65 lines (58 loc) · 1.36 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = function (grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// configurable paths
var siteConfig = {
app: 'app',
dist: 'dist'
};
grunt.initConfig({
site: siteConfig,
pkg: grunt.file.readJSON('package.json'),
compass: {
options: {
sassDir: '<%= site.app %>/styles',
cssDir: '<%= site.app %>/styles',
imagesDir: '<%= site.app %>/images',
javascriptsDir: '<%= site.app %>/scripts',
fontsDir: '<%= site.app %>/styles/fonts',
relativeAssets: false
},
dist: {},
server: {
options: {
debugInfo: true
}
}
},
watch: {
scripts: {
files: ['app/**/*.js','app/**/*.scss'],
tasks: ['jshint', 'compass'],
options: {
spawn: false,
},
},
},
jshint: {
all: [
'Gruntfile.js',
'test.js',
'app/scripts/*.js'
]
},
modernizr: {
dist: {
devFile: 'app/components/modernizr/modernizr.js',
outputFile: 'app/scripts/libs/modernizr.custom.min.js',
extra: {
shiv: true,
mq: true
},
// Minify
uglify: true,
}
}
}); // initConfig
grunt.registerTask('default', ['jshint', 'compass:server', 'modernizr']);
};