[eGroupWare-svn] r55968 - /trunk/egroupware/Gruntfile.js

[email protected] Mon, 02 May 2016 10:28:36 -0000
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: ralfbecker
Date: Mon May  2 12:28:35 2016
New Revision: 55968

URL: http://svn.stylite.de/viewvc/egroupware?rev=55968&view=rev
Log:
using grunt-hub to run default tasks of Gruntfile.js of apps

Modified:
    trunk/egroupware/Gruntfile.js

Modified: trunk/egroupware/Gruntfile.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/Gruntfile.js?rev=55968&r1=55967&r2=55968&view=diff
==============================================================================
--- trunk/egroupware/Gruntfile.js (original)
+++ trunk/egroupware/Gruntfile.js Mon May  2 12:28:35 2016
@@ -12,10 +12,12 @@
  * To install grunt to build minified javascript files you need to run:
  *
  *		sudo npm install -g grunt-cli
+ *		npm init	# create package.json and node_modules directory for local installs
  *		npm install grunt --save-dev
  *		npm install grunt-contrib-uglify --save-dev
  *		npm install grunt-newer --save-dev
  *		npm install grunt-contrib-cssmin --save-dev
+ *		npm install grunt-hub --save-dev
  *
  * Building happens by running in your EGroupware directory:
  *
@@ -380,6 +382,11 @@
 					]
 				}
 			}
+		},
+		hub: {
+			all: {
+				src: ['*/Gruntfile.js']
+			}
 		}
 	});
 	// Load the plugin that provides the "uglify" task.
@@ -391,6 +398,9 @@
 	// Load the plugin that runs tasks only on modified files
 	grunt.loadNpmTasks('grunt-newer');
 
+	// run Gruntfile.js in apps / sub-directories
+	grunt.loadNpmTasks('grunt-hub');
+
 	// Default task(s).
-	grunt.registerTask('default', ['newer:uglify', 'newer:cssmin']);
+	grunt.registerTask('default', ['newer:uglify', 'newer:cssmin', 'hub']);
 };


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z