-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
65 lines (55 loc) · 1.41 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
module.exports = function(grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
var lintFiles = ['Gruntfile.js', 'kendo-pouchdb.js', 'kendo-pouchdb.amd.js',
'tests/spec/*.js', 'tests/*.js'
];
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
sourceMap: true,
banner: '/* <%= grunt.task.current.target %> v<%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> (C) 2015 Terikon Apps */\n'
},
'kendo-pouchdb': {
src: 'kendo-pouchdb.js',
dest: 'dist/kendo-pouchdb.min.js'
},
'kendo-pouchdb.amd': {
options: {
sourceMap: false,
},
src: 'kendo-pouchdb.amd.js',
dest: 'dist/kendo-pouchdb.amd.min.js'
}
},
jshint: {
all: lintFiles
},
kendo_lint: {
options: {
force: true
},
files: lintFiles
},
jasmine: {
all: {
src: ['kendo-pouchdb.js', 'tests/testHelper.js'],
options: {
specs: 'tests/spec/*Spec.js',
vendor: [
'node_modules/jquery/dist/jquery.min.js',
'node_modules/underscore/underscore-min.js',
'vendor/kendo/kendo.core.js',
'vendor/kendo/kendo.data.js',
'node_modules/pouchdb/dist/pouchdb.js',
'node_modules/pouchdb-collate/dist/pouchdb-collate.js',
'node_modules/pouchdb-find/dist/pouchdb.find.js'
]
}
}
}
});
grunt.registerTask('default', ['uglify']);
grunt.registerTask('test', ['jasmine']);
};