Commit b7b50a7d authored by Timmy Willison's avatar Timmy Willison

Fix build for jenkins

parent 6318ae6a
...@@ -34,8 +34,9 @@ module.exports = function( grunt ) { ...@@ -34,8 +34,9 @@ module.exports = function( grunt ) {
* @param {String} contents The contents to be written (including their AMD wrappers) * @param {String} contents The contents to be written (including their AMD wrappers)
*/ */
function convert( name, path, contents ) { function convert( name, path, contents ) {
console.log( path );
// Convert var modules // Convert var modules
if ( /\/var\//.test( path ) ) { if ( /.\/var\//.test( path ) ) {
contents = contents contents = contents
.replace( /define\([\w\W]*?return/, "var " + (/var\/([\w-]+)/.exec(name)[1]) + " =" ) .replace( /define\([\w\W]*?return/, "var " + (/var\/([\w-]+)/.exec(name)[1]) + " =" )
.replace( rdefineEnd, "" ); .replace( rdefineEnd, "" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment