forked from sourishkrout/jquery-github-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrunt.js
More file actions
63 lines (60 loc) · 1.19 KB
/
Copy pathgrunt.js
File metadata and controls
63 lines (60 loc) · 1.19 KB
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
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: 'package.json',
meta: {
banner: '/*! jQuery Github Widget - v1.1 *\n' +
'* https://github.com/JoePettersson/jquery-github-widget *\n' +
'* Copyright (c) 2012 Joe Pettersson *\n' +
'* Licensed under the MIT License */'
},
min: {
dist: {
src: ['<banner:meta.banner>', 'src/jquery.github.js'],
dest: 'dist/jquery.github.min.js'
}
},
cssmin: {
dist: {
src: ['<banner:meta.banner>', 'src/github.css'],
dest: 'dist/github.min.css'
}
},
jasmine: {
all: {
src:['specs/*.html'],
errorReporting: true,
timeout: 20000
}
},
lint: {
files: ['src/**/*.js']
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true
},
globals: {
jQuery: true
}
},
uglify: {
mangle: {toplevel: true}
}
});
// Default task.
grunt.registerTask('default', 'lint jasmine min cssmin');
grunt.loadNpmTasks('grunt-jasmine-task');
grunt.loadNpmTasks('grunt-css');
};