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:
authormattab <matthieu.aubry@gmail.com>2016-03-30 10:31:18 +0300
committermattab <matthieu.aubry@gmail.com>2016-03-31 06:00:38 +0300
commitc928ff499504e319bb1b43e5abf2ae84484169e5 (patch)
treed60ccd3a3afb5a5e2079343d54d959eb774d5f0c /js/README.md
parent85e0c15448af5a9b59b8c3dfe171d2c5cc512ffa (diff)
New automated test to detect when piwik.js minified file is out of sync with original piwik.js
Diffstat (limited to 'js/README.md')
-rw-r--r--js/README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/README.md b/js/README.md
index 1d409cebff..9556dc402e 100644
--- a/js/README.md
+++ b/js/README.md
@@ -31,13 +31,13 @@ The js/ folder contains:
## Deployment
-* piwik.js is minified using YUICompressor 2.4.2.
+* piwik.js is minified using YUICompressor 2.4.7.
To install YUICompressor run:
```bash
$ cd /path/to/piwik/js/
- $ wget http://www.julienlecomte.net/yuicompressor/yuicompressor-2.4.2.zip
- $ unzip yuicompressor-2.4.2.zip
+ $ wget https://github.com/downloads/yui/yuicompressor/yuicompressor-2.4.7.zip
+ $ unzip yuicompressor-2.4.7.zip
```
To compress the code containing the evil "eval", either apply the patch from
@@ -46,7 +46,7 @@ The js/ folder contains:
```bash
$ cd /path/to/piwik/js/
- $ sed '/<DEBUG>/,/<\/DEBUG>/d' < piwik.js | sed 's/eval/replacedEvilString/' | java -jar yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar --type js --line-break 1000 | sed 's/replacedEvilString/eval/' | sed 's/^[/][*]/\/*!/' > piwik-min.js && cp piwik-min.js ../piwik.js
+ $ sed '/<DEBUG>/,/<\/DEBUG>/d' < piwik.js | sed 's/eval/replacedEvilString/' | java -jar yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar --type js --line-break 1000 | sed 's/replacedEvilString/eval/' | sed 's/^[/][*]/\/*!/' > piwik-min.js && cp piwik-min.js ../piwik.js
```
This will generate the minify /path/to/piwik/js/piwik-min.js and copy it to