forked from kgjacobsen89/chr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
106 lines (94 loc) · 4.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
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
module.exports = (grunt) ->
# Project configuration
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
compileBare:
options:
bare: true
files:
'build/chr.js': [
# core
'app/assets/javascripts/chr/core/utils.coffee'
'app/assets/javascripts/chr/core/chr_router.coffee'
'app/assets/javascripts/chr/core/chr.coffee'
'app/assets/javascripts/chr/core/module.coffee'
'app/assets/javascripts/chr/core/list_config.coffee'
'app/assets/javascripts/chr/core/list_pagination.coffee'
'app/assets/javascripts/chr/core/list_reorder.coffee'
'app/assets/javascripts/chr/core/list_search.coffee'
'app/assets/javascripts/chr/core/list.coffee'
'app/assets/javascripts/chr/core/item.coffee'
'app/assets/javascripts/chr/core/view_local-storage.coffee'
'app/assets/javascripts/chr/core/view.coffee'
# stores
'app/assets/javascripts/chr/store/array-store.coffee'
'app/assets/javascripts/chr/store/object-store.coffee'
'app/assets/javascripts/chr/store/rest-array-store.coffee'
'app/assets/javascripts/chr/store/rest-object-store.coffee'
'app/assets/javascripts/chr/store/rails-form-object-parser.coffee'
'app/assets/javascripts/chr/store/rails-array-store.coffee'
'app/assets/javascripts/chr/store/rails-object-store.coffee'
# form
'app/assets/javascripts/form/form.coffee'
'app/assets/javascripts/form/input-form_reorder.coffee'
'app/assets/javascripts/form/input-form.coffee'
'app/assets/javascripts/form/input-string.coffee'
'app/assets/javascripts/form/input-hidden.coffee'
'app/assets/javascripts/form/input-checkbox.coffee'
'app/assets/javascripts/form/input-color.coffee'
'app/assets/javascripts/form/input-date.coffee'
'app/assets/javascripts/form/input-file.coffee'
'app/assets/javascripts/form/input-list_typeahead.coffee'
'app/assets/javascripts/form/input-list_reorder.coffee'
'app/assets/javascripts/form/input-list.coffee'
'app/assets/javascripts/form/input-password.coffee'
'app/assets/javascripts/form/input-select.coffee'
'app/assets/javascripts/form/input-text.coffee'
'app/assets/javascripts/form/input-select2.coffee'
'app/assets/javascripts/form/extendable-group.coffee'
'app/assets/javascripts/form/input-date.coffee'
'app/assets/javascripts/form/input-datetime.coffee'
]
'build/input-ace.js': [
'app/assets/javascripts/input-html.coffee'
'app/assets/javascripts/input-markdown.coffee'
]
'build/input-redactor.js': [
'app/assets/javascripts/input-redactor.coffee'
]
concat:
chr:
src: [
'app/assets/javascripts/vendor/slip.js'
'app/assets/javascripts/vendor/jquery.scrollparent.js'
'app/assets/javascripts/vendor/jquery.textarea_autosize.js'
'app/assets/javascripts/vendor/jquery.typeahead.js'
'app/assets/javascripts/vendor/moment.js'
'app/assets/javascripts/vendor/datedropper.js'
'app/assets/javascripts/vendor/select2.js'
'build/chr.js'
]
dest: 'dist/chr.js'
ace:
src: [
'app/assets/javascripts/vendor/ace.js'
'app/assets/javascripts/vendor/mode-html.js'
'app/assets/javascripts/vendor/mode-markdown.js'
'app/assets/javascripts/vendor/marked.js'
'build/input-ace.js'
]
dest: 'dist/input-ace.js'
redactor:
src: [
'app/assets/javascripts/chr/vendor/redactor.fixedtoolbar.js'
'build/input-redactor.js'
]
dest: 'dist/input-redactor.js'
clean: [
'build'
]
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-concat')
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.registerTask('default', ['coffee', 'concat', 'clean'])