-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathGruntfile.js
54 lines (54 loc) · 1.33 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
module.exports = function(grunt) {
require('load-grunt-config')(grunt, {
data: {
// Dev paths
dev: {
main: 'dev',
coffee: '<%= dev.main %>/coffee',
js: '<%= dev.main %>/js',
jade: '<%= dev.main %>/jade/pages',
sass: '<%= dev.main %>/sass',
images: '<%= dev.main %>/images',
fonts: '<%= dev.main %>/fonts',
helpers: '<%= dev.main %>/helpers',
ruby: '<%= dev.main %>/ruby'
},
// Publiscation paths
publ: {
main: 'publ'
},
// Build paths
build: {
main: 'build',
html: '<%= build.main %>',
css: '<%= build.main %>/static/css',
fonts: '<%= build.main %>/static/fonts',
images: '<%= build.main %>/static/images',
js: '<%= build.main %>/static/js',
plugins: '<%= build.main %>/_plugins',
data: '<%= build.main %>/_data'
},
// Generated site paths
deploy: {
main: 'deploy',
html: '<%= deploy.main %>',
css: '<%= deploy.main %>/static/css',
images: '<%= deploy.main %>/static/images',
js: '<%= deploy.main %>/static/js'
},
// By default >1%, last 2 versions, Firefox ESR, Opera 12.1;
browserlist: [
'> 1%',
'last 20 versions',
'Opera 12.1',
'Explorer > 7',
'Safari >= 5'
]
},
loadGruntTasks: {
pattern: ['grunt-*', 'main-*'],
config: require('./package.json'),
scope: 'devDependencies'
}
});
};