forked from sukhdeep1/developer-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
58 lines (50 loc) · 1.72 KB
/
Gruntfile.js
File metadata and controls
58 lines (50 loc) · 1.72 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
module.exports = function (grunt) {
var client = 'client';
var js = client + '/assets/js';
var config = {
pkg: grunt.file.readJSON('package.json'),
clean: [ client + "/assets/js/bower_components", client + "/spec/runner/bower_components"],
shell: {
prepareTests: {
command: './'+client+'/spec/install-runner-dependencies ' + client + '/spec/runner',
options: {
stdout: true
}
}
},
jasmine: {
run: {
src: [
js + '/developer-toolkit.js',
js + '/controllers/**/*.js'],
options: {
keepRunner: true,
/*vendor: [
client + '/spec/runner/bower_components/angular/angular.js',
client + '/spec/runner/bower_components/angular-resource/angular-resource.js',
client + '/spec/runner/bower_components/angular-route/angular-route.js',
client + '/spec/runner/bower_components/jquery/jquery.js',
client + '/spec/runner/bower_components/underscore/underscore.js'
],*/
specs: client + '/spec/specs/**/*-spec.js',
helpers: client + '/spec/helpers/**/*-helper.js',
template: client + '/spec/runner/angular-runner.tmpl'
}
}
},
jshint: {
all: [
'Gruntfile.js',
'client/assets/js/controllers/**/*.js',
'client/assets/js/directives/**/*.js',
'server/**/*.js']
}
};
grunt.initConfig(config);
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', []);
grunt.registerTask('test', [ 'jshint', 'shell:prepareTests', 'jasmine']);
};