-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.coffee
38 lines (35 loc) · 991 Bytes
/
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
36
37
module.exports = (grunt) ->
# tasks
grunt.loadNpmTasks 'grunt-rsync'
grunt.loadNpmTasks 'grunt-contrib-sass'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.loadNpmTasks 'grunt-contrib-coffee'
# project configuration
grunt.initConfig
rsync:
production:
src: "./"
dest: "~/wiredin.loopinfinito.com.br/"
host: "[email protected]"
recursive: true
syncDest: false
exclude: ['.git*', 'node_modules', '.DS_Store', 'music']
sass:
dist:
options:
style: 'compressed'
files:
'style.css': 'style.scss'
coffee:
compile:
files:
'./scripts/player.js': './scripts/player.coffee'
watch:
files: ['./style.scss', './scripts/player.coffee']
tasks: ['sass', 'coffee']
connect:
server:
options:
port: 8000
grunt.registerTask('default', ['connect', 'watch'])