forked from bitovi/funcunit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
60 lines (55 loc) · 1.33 KB
/
Gruntfile.js
File metadata and controls
60 lines (55 loc) · 1.33 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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('bower.json'),
connect: {
server: {
options: {
port: 8000,
base: '.'
}
}
},
exec: {
pluginify: {
command: 'node build.js'
}
},
concat: {
options: {
banner: '/*\n * <%= pkg.title || pkg.name %> - <%= pkg.version %>\n * <%= pkg.homepage %>\n * Copyright (c) <%= new Date().getFullYear() %> <%= pkg.author.name %>\n * <%= new Date().toUTCString() %>\n * Licensed <%= pkg.licenses[0].type %> */\n\n'
},
dist: {
files: [{
src: ['build/funcunit.js'], //'lib/syn/dist/syn.js',
dest: 'dist/funcunit.js'
}]
}
},
testee: {
core: {
options: {
urls: ['http://localhost:8000/funcunit.html'],
browsers: ['phantom']
}
},
jasmine: {
options: {
urls: ['http://localhost:8000/browser/adapters/test/jasmine.html'],
browsers: ['phantom']
}
},
qunit: {
options: {
urls: ['http://localhost:8000/browser/adapters/test/qunit.html'],
browsers: ['phantom']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('testee');
grunt.registerTask('build', ['exec:pluginify', 'concat']);
grunt.registerTask('test', ['connect', 'testee']);
};