Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 556a37e

Browse files
committed
chore(build): Make test-config not autoWatch, speed up grunt watch task
1 parent 194c848 commit 556a37e

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Gruntfile.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,17 @@ module.exports = function(grunt) {
2222
all: 'angular.module("ui.bootstrap", ["ui.bootstrap.tpls", <%= srcModules %>]);'
2323
},
2424
watch: {
25-
files: ['<%= jshint.files %>', 'template/**/*.html'],
26-
tasks: ['before-test', 'test-run']
25+
html: {
26+
files: ['template/**/*.html'],
27+
tasks: ['html2js']
28+
},
29+
js: {
30+
//nospawn makes the tests start faster
31+
nospawn: true,
32+
files: ['src/**/*.js'],
33+
//we don't need to jshint here, it slows down everything else
34+
tasks: ['test-run']
35+
}
2736
},
2837
concat: {
2938
dist: {

testacular.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ colors = true;
4747
logLevel = LOG_INFO;
4848

4949
// enable / disable watching file and executing tests whenever any file changes
50-
autoWatch = true;
50+
autoWatch = false;
5151

5252
// Continuous Integration mode
5353
// if true, it capture browsers, run tests and exit

0 commit comments

Comments
 (0)