forked from eucalyptus/eucaconsole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
94 lines (89 loc) · 3.06 KB
/
Gruntfile.js
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bowercopy: {
options: {
// Bower components folder will be removed afterwards
clean: true
},
angular: {
options: {
destPrefix: 'eucaconsole/static/js/thirdparty/angular'
},
files: {
'angular.min.js': 'angular/angular.min.js',
'angular-sanitize.min.js': 'angular-sanitize/angular-sanitize.min.js',
'angular-mocks.js': 'angular-mocks/angular-mocks.js'
}
},
jquery: {
options: {
destPrefix: 'eucaconsole/static/js/thirdparty/jquery'
},
files: {
'jquery.min.js': 'jquery/jquery.min.js'
}
},
jasmine: {
options: {
destPrefix: 'eucaconsole/static/js/thirdparty/jasmine'
},
files: {
'jasmine_favicon.png': 'jasmine/images/jasmine_favicon.png',
'jasmine.css': 'jasmine/lib/jasmine-core/jasmine.css',
'jasmine.js': 'jasmine/lib/jasmine-core/jasmine.js',
'jasmine-html.js': 'jasmine/lib/jasmine-core/jasmine-html.js',
'console.js': 'jasmine/lib/console/console.js',
'boot.js': 'jasmine/lib/jasmine-core/boot/boot.js'
}
},
jasmine_jquery: {
options: {
destPrefix: 'eucaconsole/static/js/thirdparty/jasmine'
},
files: {
'jasmine-jquery.js': 'jasmine-jquery/lib/jasmine-jquery.js'
}
},
font_awesome: {
files: {
'eucaconsole/static/fonts/font-awesome': 'components-font-awesome/fonts/*',
'eucaconsole/static/css/thirdparty': 'components-font-awesome/css/*.css',
'eucaconsole/static/sass/font-awesome':'components-font-awesome/scss/*.scss'
}
},
angular_magic_search: {
options: {
},
files: {
'eucaconsole/static/js/thirdparty/magic-search': 'angular-magic-search/magic_search.*'
}
}
},
jshint: {
options: {
reporter: require('jshint-stylish')
},
all: ['Gruntfile.js',
'eucaconsole/static/js/pages/*.js',
'eucaconsole/static/js/widgets/*.js',
'eucaconsole/static/js/jasmine/spec/*.js']
},
karma: {
unit: {
configFile: 'karma.conf.js'
},
ci: {
configFile: 'karma.conf.js',
singleRun: true,
}
}
});
// Load the plugins
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-bowercopy');
grunt.loadNpmTasks('grunt-karma');
// Default task(s).
grunt.registerTask('default', ['jshint']);
};