forked from wix-incubator/angular-viewport-watch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
40 lines (34 loc) · 937 Bytes
/
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
// Generated on 2014-12-12 using generator-wix-angular 0.1.84
'use strict';
module.exports = function (grunt) {
var unitTestFiles = [];
require('./karma.conf.js')({set: function (karmaConf) {
unitTestFiles = karmaConf.files.filter(function (value) {
return value.indexOf('bower_component') !== -1;
});
}});
require('wix-gruntfile')(grunt, {
port: 9000,
preloadModule: 'angularViewportWatchAppInternal',
unitTestFiles: unitTestFiles,
protractor: false,
bowerComponent: true
});
grunt.modifyTask('yeoman', {
local: 'http://localhost:<%= connect.options.port %>/'
});
grunt.modifyTask('karma', {
teamcity: {
coverageReporter: {dir: 'coverage/', type: 'lcov'}
}
});
grunt.modifyTask('copy', {
js: {
expand: true,
cwd: 'dist/scripts',
dest: '',
src: 'angular-viewport-watch.js'
}
});
grunt.hookTask('build').push('copy:js');
};