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:
authorThomas Steur <thomas.steur@googlemail.com>2014-04-13 12:43:27 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-04-13 12:43:27 +0400
commit454825c1e1ea90ad6188f9ecb47dd16b70a8f0f6 (patch)
tree60446bd02cd2ace0d3dc8b5d8a736465dd7281ff /tests/angularjs
parent622fb4b23a6ca0c18f05993350bd96dfed36c492 (diff)
refs #4523 whenever a css or less file changes, delete compiled css. I put this as a "workaround" in here as it solves the problem but maybe we wanna implement a solution in PHP though? If not, we could put this in another place maybe or leave it under tests. To make use of this just execute "cd tests/angularjs && grunt" after installing all the packages (see README). grunt will be notified whenever a file changes and immediately remove the compiled css
Diffstat (limited to 'tests/angularjs')
-rw-r--r--tests/angularjs/Gruntfile.js28
-rw-r--r--tests/angularjs/package.json47
2 files changed, 53 insertions, 22 deletions
diff --git a/tests/angularjs/Gruntfile.js b/tests/angularjs/Gruntfile.js
new file mode 100644
index 0000000000..fffac834a2
--- /dev/null
+++ b/tests/angularjs/Gruntfile.js
@@ -0,0 +1,28 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ watch: {
+ scripts: {
+ files: ['plugins/**/*.less', 'plugins/**/*.css'],
+ tasks: ['clean-pattern'],
+ options: {
+ spawn: false,
+ },
+ },
+ },
+ "clean-pattern": {
+ files: {path: "tmp/assets", pattern: /(.*).css/}
+ }
+ });
+
+ grunt.loadNpmTasks('clean-pattern');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+
+ grunt.file.setBase('../../')
+
+ // Default task(s).
+ grunt.registerTask('default', ['watch']);
+
+}; \ No newline at end of file
diff --git a/tests/angularjs/package.json b/tests/angularjs/package.json
index 589f6476af..c2922c1278 100644
--- a/tests/angularjs/package.json
+++ b/tests/angularjs/package.json
@@ -1,23 +1,26 @@
{
- "author": "(c) piwik.org",
- "name": "PiwikJsTestRunner",
- "description": "Piwik AngularJS test runner",
- "license": "GPLv3+",
- "homepage": "http://piwik.org",
- "dependencies": {
- "karma": ">= 0.12.1",
- "karma-mocha": ">= 0.1.3",
- "chai": ">= 1.9.1",
- "phantomjs": ">= 1.9.7-1",
- "karma-phantomjs-launcher": ">= 0.1.2",
- "karma-chrome-launcher": ">= 0.1.2",
- "karma-firefox-launcher": ">= 0.1.3",
- "karma-jshint-preprocessor": ">= 0.0.2",
- "karma-mocha-reporter": ">= 0.2.2",
- "karma-spec-reporter": ">= 0.0.12"
- },
- "engines": {
- "node": ">= 0.10.0"
- },
- "version": "0.1.0"
-} \ No newline at end of file
+ "author": "(c) piwik.org",
+ "name": "PiwikJsTestRunner",
+ "description": "Piwik AngularJS test runner",
+ "license": "GPLv3+",
+ "homepage": "http://piwik.org",
+ "dependencies": {
+ "chai": ">= 1.9.1",
+ "clean-pattern": "^0.1.2",
+ "grunt": ">= 0.4.2",
+ "grunt-contrib-watch": "^0.6.1",
+ "karma": ">= 0.12.1",
+ "karma-chrome-launcher": ">= 0.1.2",
+ "karma-firefox-launcher": ">= 0.1.3",
+ "karma-jshint-preprocessor": ">= 0.0.2",
+ "karma-mocha": ">= 0.1.3",
+ "karma-mocha-reporter": ">= 0.2.2",
+ "karma-phantomjs-launcher": ">= 0.1.2",
+ "karma-spec-reporter": ">= 0.0.12",
+ "phantomjs": ">= 1.9.7-1"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "version": "0.1.0"
+}