-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
46 lines (43 loc) · 1.44 KB
/
Gruntfile.coffee
File metadata and controls
46 lines (43 loc) · 1.44 KB
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
module.exports = (grunt) ->
grunt.initConfig
coffee:
public:
options: bare: true
expand: true
cwd: 'client/source/scripts'
src: ['**/*.coffee']
dest: 'client/library/scripts'
ext: '.js'
requirejs:
build:
options:
baseUrl: 'client/library/scripts'
name: '../../vendor/almond'
include: ['codedrop']
out: 'public/scripts/codedrop.js'
paths:
'jquery': '../../vendor/jquery-1.9.1'
'jquery-cookie': '../../vendor/jquery.cookie'
'underscore': '../../vendor/underscore'
'backbone': '../../vendor/backbone'
'backbone-localstorage': '../../vendor/backbone.localstorage'
'quilt': '../../vendor/quilt'
'list': '../../vendor/list'
compass:
public:
options:
sassDir: 'client/source/styles'
cssDir: 'public/styles'
relativeAssets: true
force: true
watch:
public:
files: ['client/source/**/*.coffee', 'client/vendor/*.js']
tasks: ['coffee', 'requirejs']
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-requirejs')
grunt.loadNpmTasks('grunt-contrib-compass')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.registerTask('default', ['watch'])
grunt.registerTask('all', ['coffee', 'requirejs', 'compass'])
grunt.registerTask('js', ['coffee', 'requirejs'])