forked from kenshin54/popline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
43 lines (39 loc) · 1.61 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> v<%= pkg.version %> | author: <%= pkg.author %> */\n'
},
target: {
files: {
'build/jquery.<%= pkg.name %>.min.js': ['scripts/jquery.<%= pkg.name %>.js', 'scripts/plugins/jquery.popline.link.js', 'scripts/plugins/jquery.popline.blockquote.js', 'scripts/plugins/jquery.popline.decoration.js', 'scripts/plugins/jquery.popline.list.js', 'scripts/plugins/jquery.popline.justify.js', 'scripts/plugins/jquery.popline.blockformat.js', 'scripts/plugins/jquery.popline.social.js', 'scripts/plugins/jquery.popline.email.js', "scripts/plugins/jquery.popline.backcolor.js"]
}
}
},
jasmine: {
suite: {
options: {
specs: 'spec/*_spec.js',
helpers: ['scripts/jquery.min.js', 'spec/helpers/*.js'],
styles: 'themes/default.css',
junit: {
path: "reports/jasmine/",
consolidate: true
},
keepRunner: true,
template: require('grunt-template-jasmine-istanbul'),
templateOptions: {
coverage: 'reports/jasmine/coverage.json',
report: 'coverage'
}
},
src: ['scripts/jquery.popline.js', 'scripts/plugins/*.js']
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('default', ['uglify']);
grunt.registerTask('test', ['jasmine']);
};