forked from Comcast/Xooie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
59 lines (54 loc) · 1.79 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
requirejs: {
compile: {
options: {
baseUrl: "",
paths: {
jquery: "empty:",
async: "empty:"
},
name: "xooie/xooie",
include: [
"xooie/widgets/carousel",
"xooie/widgets/dropdown",
"xooie/widgets/accordion",
"xooie/widgets/tab",
"xooie/widgets/dialog",
"xooie/addons/carousel_lentils",
"xooie/addons/carousel_pagination",
"xooie/addons/tab_animation"
],
out: "source/javascripts/xooie-<%= pkg.version %>.js",
optimize: "none"
}
}
},
jasmine: {
test: {
//src: "xooie/**/*.js",
src: ['xooie/widgets/base.js', 'xooie/widgets/dropdown.js', 'xooie/widgets/carousel.js', 'xooie/addons/base.js', 'xooie/**.js'],
options: {
//specs: "spec/**/*.spec.js",
specs: ['spec/widgets/base.spec.js', 'spec/widgets/dropdown.spec.js', 'spec/widgets/carousel.spec.js', 'spec/addons/base.spec.js', 'spec/**.js'],
template: require("grunt-template-jasmine-requirejs"),
vendor: ["lib/jquery.js","lib/require.js","lib/micro_tmpl.js","lib/jasmine-jquery.js"],
helpers: "spec/helpers.js",
templateOptions: {
requireConfigFile: 'lib/config.js'
}
}
}
},
jshint: {
files: 'xooie/**/*.js'
}
});
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', ['jshint', 'jasmine']);
grunt.registerTask('build', ['test', 'requirejs']);
};