forked from tinkerwell/angular-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
60 lines (48 loc) · 1.69 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version = "1.0.5"
banner = "
// author: Samuel Mueller \n
// version: #{version} \n
// license: MIT \n
// homepage: http://github.com/samu/angular-table \n
"
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
version: version
coffee:
options:
join: true
compile:
files: {"dist/angular-table.js" : [
'coffee/angular_table.coffee',
'coffee/configuration/column_configuration.coffee',
'coffee/configuration/configuration_variable_names.coffee',
'coffee/configuration/scope_config_wrapper.coffee',
'coffee/configuration/table_configuration.coffee',
'coffee/directives/table/setup/setup.coffee',
'coffee/directives/table/setup/standard_setup.coffee',
'coffee/directives/table/setup/paginated_setup.coffee',
'coffee/directives/table/table.coffee',
'coffee/directives/pagination/page_sequence.coffee',
'coffee/directives/pagination/pagination_template.coffee',
'coffee/directives/at_table.coffee',
'coffee/directives/at_pagination.coffee',
'coffee/directives/at_implicit.coffee'
]}
usebanner:
options:
position: 'top'
banner: banner
linebreak: false
files:
src: ['dist/angular-table.js', 'dist/angular-table.min.js']
uglify:
js:
src: 'dist/angular-table.js'
dest: 'dist/angular-table.min.js'
options:
banner: banner
grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-banner')
grunt.registerTask('default', ['coffee', 'usebanner', 'uglify'])