-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.coffee
54 lines (47 loc) · 1.6 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
module.exports = (grunt) ->
grunt.initConfig
clean:
dist: [
'src/AdminLTE/assets/full-*'
]
concat:
admin_css:
dest: 'src/AdminLTE/assets/full-admin.css'
src: [
'node_modules/bootstrap/dist/css/bootstrap.css'
'node_modules/admin-lte/dist/css/adminlte.min.css'
'node_modules/admin-lte/dist/css/skins/_all-skins.min.css'
]
admin_js:
dest: 'src/AdminLTE/assets/full-admin.js'
src: [
'node_modules/jquery/dist/jquery.min.js'
'node_modules/nette.ajax.js/nette.ajax.js'
'node_modules/nette-forms/src/assets/netteForms.js'
'node_modules/select2/dist/js/select2.full.min.js'
'node_modules/popper.js/dist/umd/popper.js'
'node_modules/admin-lte/dist/js/adminlte.min.js'
'node_modules/bootstrap/dist/js/bootstrap.bundle.min.js'
'src/AdminLTE/assets/custom/nette.init.js'
'src/AdminLTE/assets/custom/modal.js'
'src/AdminLTE/assets/custom/toggle-menu.js'
]
uglify:
admin_js:
files:
'src/AdminLTE/assets/full-admin.min.js': ['src/AdminLTE/assets/full-admin.js']
cssmin:
admin_css:
files:
'src/AdminLTE/assets/full-admin.min.css': ['src/AdminLTE/assets/full-admin.css']
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-cssmin'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.registerTask 'default', [
'clean'
'concat'
'cssmin'
'uglify'
]