-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.coffee
35 lines (32 loc) · 1.17 KB
/
Gruntfile.coffee
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
gruntfile = (grunt) ->
'use strict'
# Project configuration
grunt.initConfig({
# Metadata
pkg: grunt.file.readJSON('package.json')
documents: ['document/0_abstract.md', 'document/1_intro.md',
'document/2_crowdsourcing.md',
'document/3_typology.md', 'document/4_posterior_objective.md',
'document/5_design_objective.md', 'document/5_5_ams-study.md',
'document/6_subjective.md', 'document/7_conclusions.md',
'document/appendix_contributions.md', 'document/appendix_code.md']
# Task configuration
exec:
pdf:
cmd: 'make pdf'
images:
cmd: 'rsync -av -e \'ssh -i ../../../keys/crowdy/crowdy-ec2.pem \' '+
'~/dissertation/images/* ./images'
watch:
markdown:
files: '<%= documents %>',
tasks: ['exec:pdf']
})
# These plugins provide necessary tasks
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-exec')
grunt.loadNpmTasks('grunt-newer')
# Default task
grunt.registerTask('default', ['concat'])
module.exports = gruntfile