-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
executable file
·99 lines (84 loc) · 3.89 KB
/
Gruntfile.js
File metadata and controls
executable file
·99 lines (84 loc) · 3.89 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
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
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
all: ['src/loader.js', 'src/injector'],
options: {
globals: {
_: false,
$: false,
jasmine: false,
describe: false,
it: false,
expect: false,
beforeEach: false,
afterEach: false,
sinon: false
},
browser: true,
devel: true
}
},
testem: {
unit: {
options: {
framework: 'jasmine2',
before_tests: 'grunt jshint',
serve_files: [
'node_modules/sinon/pkg/sinon.js',
'node_modules/lodash/lodash.js',
'node_modules/jquery/dist/jquery.js',
'src/apis.js',
'src/angular.js',
'src/angular_public.js',
// 'src/scope/Scope_And_Digest.js',
// 'src/scope/Scope_Inheritance.js',
// 'src/scope/Watching_Collections.js',
'src/scope/Scope_Events.js',
// 'src/ExpressionsAndFilters/LiteralExpressions.js',
// 'src/ExpressionsAndFilters/LookupAndFunctionCallExpressions.js',
// 'src/ExpressionsAndFilters/OperatorExpressions.js',
// 'src/ExpressionsAndFilters/Filters.js',
'src/ExpressionsAndFilters/ExpressionsAndWatchers.js',
'src/loader.js',
'src/injector.js',
'src/q.js',
'src/http.js',
'src/http_backend.js',
// 'src/compile/DOM_Compilation_And_Basic_Directives.js',
// 'test/compile/DOM_Compilation_And_Basic_Directives_spec.js'
// 'src/compile/Directive_Attributes.js',
// 'src/compile/Controllers.js',
// 'test/compile/Controllers_spec.js'
'src/compile/Directive_Linking_And_Scopes.js',
'test/compile/Directive_Linking_And_Scopes_spec.js'
// 'test/http_spec.js',
// 'test/angular_public_spec.js'
// 'test/scope/Scope_And_Digest_spec.js'
// 'test/scope/Scope_Inheritance_spec.js',
// 'test/scope/Watching_Collections_spec.js',
// 'test/scope/Scope_Events_spec.js',
// 'test/ExpressionsAndFilters/LookupAndFunctionCallExpressions_spec.js',
// 'test/ExpressionsAndFilters/OperatorExpressions_spec.js',
// 'test/ExpressionsAndFilters/Filters_spec.js',
// 'test/ExpressionsAndFilters/ExpressionsAndWatchers_spec.js',
// 'test/ExpressionsAndFilters/LiteralExpressions_spec.js'
// 'test/injector_spec.js',
// 'test/loader_spec.js',
// 'test/Filters_spec.js',
// 'test/q_spec.js',
// 'test/compile/Directive_Attributes_spec.js'
],
watch_files: [
'src/compile/Directive_Linking_And_Scopes.js',
'test/compile/Directive_Linking_And_Scopes_spec.js'
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-testem');
grunt.registerTask('default', ['testem:run:unit']);
//grunt testem:unit
//localhost:7357
};