-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathGruntfile.coffee
43 lines (35 loc) · 960 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
38
39
40
41
42
43
module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
connect:
server:
options:
keepalive: true
coffee:
dist:
src: './src/angular-clndr.coffee'
dest: './angular-clndr.js'
sass:
dist:
src: './src/angular-clndr.sass'
dest: './angular-clndr.css'
ngAnnotate:
dist:
src: './angular-clndr.js'
dest: './angular-clndr.js'
uglify:
options:
preserveComments: 'some'
dist:
src: './angular-clndr.js'
dest: './angular-clndr.min.js'
watch:
coffee:
files: './src/angular-clndr.coffee'
tasks: ['coffee']
sass:
files: './src/angular-clndr.sass'
tasks: ['sass']
grunt.registerTask('default', ['coffee', 'ngAnnotate', 'uglify', 'sass'])
grunt.registerTask('server', ['default', 'connect', 'watch'])