This repository was archived by the owner on Oct 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathKickstartResources.groovy
45 lines (39 loc) · 2.03 KB
/
KickstartResources.groovy
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
// Settings for the resources and less-css plugins to "compile" less files into css
modules = {
/* Bootstrap definitions without less (if resource processing is switched off) */
'bootstrap' {
resource url: [dir: 'bootstrap/dist/js', file: 'bootstrap.js']
resource url: [dir: 'bootstrap/dist/css', file: 'bootstrap.css']
}
log.info "| Using CSS files instead of generating from LESS files! (resource processing was switched off)"
/* Utility resources (must be loaded after bootstrap skin resources) */
'bootstrap_utils' {
dependsOn 'bootstrap'
resource url: [dir: 'datepicker/js', file: 'bootstrap-datepicker.js']
resource url: [dir: 'datepicker/css', file: 'datepicker.css']
resource url: [dir: 'kickstart/js', file: 'kickstart.js']
resource url: [dir: 'kickstart/js', file: 'checkboxes.js']
resource url: [dir: 'kickstart/css', file: 'docs.css']
resource url: [dir: 'kickstart/css', file: 'kickstart.css']
}
// if (!(grails.resources?.processing?.enabled != [:] && grails.resources.processing.enabled.booleanValue() == false) ) {
/* Bootstrap definitions with less */
'bootstrap_less' {
resource url: [dir: 'bootstrap/js/tests/vendor',file: 'jquery.js']
resource url: [dir: 'bootstrap/dist/js', file: 'bootstrap.js']
resource url: [dir: 'bootstrap/less', file: 'bootstrap.less']
resource url: [dir: 'kickstart/css', file: 'dummy.css'] // empty css: see https://github.com/paulfairless/grails-lesscss-resources/issues/25
}
log.info "| Using LESS files to generate CSS files!"
/* Utility resources (must be loaded after bootstrap skin resources) */
'bootstrap_less_utils' {
dependsOn 'bootstrap_less'
resource url: [dir: 'datepicker/js', file: 'bootstrap-datepicker.js']
resource url: [dir: 'datepicker/css', file: 'datepicker.css']
resource url: [dir: 'kickstart/js', file: 'kickstart.js']
resource url: [dir: 'kickstart/js', file: 'checkboxes.js']
resource url: [dir: 'kickstart/css', file: 'docs.css']
resource url: [dir: 'kickstart/css', file: 'kickstart.css']
}
// }
}