-
Notifications
You must be signed in to change notification settings - Fork 375
/
grunt-config-options.js
108 lines (106 loc) · 2.63 KB
/
grunt-config-options.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
const PORT = 4000;
module.exports = {
banner: [
'/*! <%= pkg.title || pkg.name %>',
' * A Plugin providing simple and flexible mocking of ajax requests and responses',
' * ',
' * Version: <%= pkg.version %>',
' * Home: <%= pkg.homepage %>',
' * Copyright (c) <%= grunt.template.today("yyyy") %> Jordan Kasper, formerly appendTo;',
' * NOTE: This repository was taken over by Jordan Kasper (@jakerella) October, 2014',
' * ',
' * Licensed under the MIT license: http://opensource.org/licenses/MIT',
' */\n'
].join('\n'),
// Task configuration
concat: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
dist: {
src: ['./src/jquery.mockjax.js'],
dest: './dist/jquery.mockjax.js'
}
},
uglify: {
options: {
preserveComments: 'some',
},
dist: {
src: './dist/jquery.mockjax.js',
dest: './dist/jquery.mockjax.min.js'
}
},
jshint: {
options: {
jshintrc: true
},
all: [
'src/**/*.js',
'Gruntfile.js',
'test/**/test-*.js',
'test/nodejs/*.js',
'test/browserify/main.js',
'test/browserify/test.js'
]
},
connect: {
server: {
options: {
port: PORT,
base: '.'
}
}
},
qunit: {
// NOTE: these tests are all run by the `test` task below to run against each jQuery version supported
all: []
},
test: {
all: {
jQueryVersions: [
'1.12.4',
'2.2.4',
'3.7.1',
'4.0.0-beta.2'
]
},
edge: {
jQueryVersions: ['git']
},
dist: {
file: 'dist-min.html',
jQueryVersions: [
'1.12.4',
'2.2.4',
'3.7.1',
'4.0.0-beta.2'
]
},
browserify: {
file: 'browserify/index.html',
jQueryVersions: ['not-applicable']
}
},
mochaTest: {
nodejs: {
src: ['./test/nodejs/*.js']
}
},
browserify: {
test: {
src: 'test/browserify/main.js',
dest: 'test/browserify/bundle.js'
}
},
watch: {
gruntfile: {
files: './Gruntfile.js'
},
source: {
files: './src/*.js',
tasks: ['jshint', 'test:all']
}
}
};