|
@ -594,19 +594,24 @@ module.exports = function(grunt) { |
|
|
replace: { |
|
|
replace: { |
|
|
npm: { |
|
|
npm: { |
|
|
options: { |
|
|
options: { |
|
|
|
|
|
preserveOrder: true, |
|
|
patterns: [ |
|
|
patterns: [ |
|
|
{ |
|
|
{ |
|
|
match: /\$\.fn\.\w+\s*=\s*function\(parameters\)\s*{/g, |
|
|
match: /\$\.fn\.\w+\s*=\s*function\(parameters\)\s*{/g, |
|
|
replacement: 'module.exports = function(parameters) {\n var _module = module;\n' |
|
|
replacement: 'module.exports = function(parameters) {\n var _module = module;\n' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
match: /\$\.fn\.\w+\.settings/g, |
|
|
|
|
|
replacement: '_module.exports.settings' |
|
|
|
|
|
|
|
|
match: /\$\.fn\.\w+\s*=\s*function\(fields, parameters\)\s*{/g, |
|
|
|
|
|
replacement: 'module.exports = function(fields, parameters) {\n var _module = module;\n' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
match: /\$\.fn\.\w+\.settings\s*=/g, |
|
|
match: /\$\.fn\.\w+\.settings\s*=/g, |
|
|
replacement: 'module.exports.settings =' |
|
|
replacement: 'module.exports.settings =' |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
match: /\$\.fn\.\w+\.settings/g, |
|
|
|
|
|
replacement: '_module.exports.settings' |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
match: /jQuery/g, |
|
|
match: /jQuery/g, |
|
|
replacement: 'require("jquery")' |
|
|
replacement: 'require("jquery")' |
|
|