Author: ralfbecker
New Revision: 55204
URL: http://svn.stylite.de/viewvc/egroupware?rev=55204&view=rev
Log:
allow multiple uglify targets now: grunt [uglify:(api,et2,mail,calendar,…)]
Modified:
trunk/egroupware/Gruntfile.js
trunk/egroupware/updateGruntfile.php
— trunk/egroupware/Gruntfile.js (original)
+++ trunk/egroupware/Gruntfile.js Tue Mar 1 10:57:39 2016
@@ -18,6 +18,8 @@
*
- Building happens by running in your EGroupware directory:
-
grunt
-
-
-
grunt uglify:<target> # targets: api, et2, mail, calendar, ...
-
- app.js files can be added under apps target, api and et2 bundels are already there.
- To update files in Gruntfile after adding new js files you need to run:
@@ -34,7 +36,7 @@
sourceMap: true,
screwIE8: true
},
@@ -84,7 +86,11 @@
“phpgwapi/js/jquery/chosen/chosen.jquery.js”,
“phpgwapi/js/ckeditor/ckeditor.js”,
“phpgwapi/js/ckeditor/config.js”
@@ -177,8 +183,16 @@
“etemplate/js/et2_widget_script.js”,
“etemplate/js/et2_core_legacyJSFunctions.js”,
“etemplate/js/etemplate2.js”
— trunk/egroupware/updateGruntfile.php (original)
+++ trunk/egroupware/updateGruntfile.php Tue Mar 1 10:57:39 2016
@@ -33,12 +33,7 @@
}
//print_r($config); exit;
-$bundle2min = array(
- ‘api’ => ‘phpgwapi/js/jsapi.min.js’,
- ‘et2’ => ‘etemplate/js/etemplate2.min.js’,
-);
-
-$build_files =& $config[‘uglify’][‘build’][‘files’];
+$uglify =& $config[‘uglify’];
foreach(egw_framework::get_bundles() as $name => $files)
{
@@ -51,13 +46,14 @@
});
//var_dump($name, $files);
- if (isset($bundle2min[$name]))
- if (isset($uglify[$name]))
{
- elseif (isset($bundle2min[$append = substr($name, 0, -1)]))
- elseif (isset($uglify[$append = substr($name, 0, -1)]))
{
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs