Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/angularjs/Gruntfile.js')
-rw-r--r--tests/angularjs/Gruntfile.js23
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/angularjs/Gruntfile.js b/tests/angularjs/Gruntfile.js
index 2e50318f95..3527b5973a 100644
--- a/tests/angularjs/Gruntfile.js
+++ b/tests/angularjs/Gruntfile.js
@@ -2,6 +2,12 @@ module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
+ karma: {
+ unit: {
+ configFile: 'karma.conf.js',
+ autoWatch: true
+ }
+ },
pkg: grunt.file.readJSON('package.json'),
watch: {
scripts: {
@@ -13,7 +19,14 @@ module.exports = function(grunt) {
},
piwikjs: {
files: ['js/piwik.js'],
- tasks: ["shell:compilePiwikJs"],
+ tasks: ["shell:compilePiwikJs", "shell:updateTracker"],
+ options: {
+ spawn: false,
+ },
+ },
+ piwikjs2: {
+ files: ['plugins/*/tracker.js',],
+ tasks: ["shell:updateTracker"],
options: {
spawn: false,
},
@@ -27,6 +40,14 @@ module.exports = function(grunt) {
cwd: 'js'
}
}
+ },
+ updateTracker: {
+ command: "php console custom-piwik-js:update --ignore-minified",
+ options: {
+ execOptions: {
+ cwd: ''
+ }
+ }
}
},
"clean-pattern": {