-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
30 lines (25 loc) · 857 Bytes
/
build.gradle
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
def revealjsCanonicalPath = new File(revealjspath).getCanonicalPath()
def talkCanonicalPath = new File(talkpath).getCanonicalPath()
task setupRevealJs(type: Copy) {
from revealjsCanonicalPath
into talkCanonicalPath
outputs.upToDateWhen { true }
}
// Components are relatively static, shared by all talks
// (E.g., special CSS)
task setupTalkComponents(type: Copy) {
from 'src/main/components'
into talkCanonicalPath
}
// Resources change per talk
// (E.g., images)
task setupTalkResources(type: Copy) {
from 'src/main/resources'
into (talkCanonicalPath + '/resources')
}
task exportJade(type: Exec, dependsOn: setupTalkResources) {
inputs.dir 'src/main/components/jade'
commandLine 'jade', 'src/main/components/jade', '--out', talkCanonicalPath
}
task export(dependsOn: exportJade)
export.dependsOn(setupTalkComponents)