ref: master
plugins/social_share_privacy/public/socialshareprivacy/join-trans.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
var fs = require('fs'); var extend = require('extend'); var jQuery = { fn: {socialSharePrivacy: {settings: {services: {}}}}, extend: extend }; for (var i = 2; i < process.argv.length; ++ i) { var filename = process.argv[i]; var m = /modules\/(.*)?\.js$/.exec(filename); if (m) { jQuery.fn.socialSharePrivacy.settings.services[m[1]] = {}; } eval(fs.readFileSync(filename,'utf8')); } var script = 'jQuery.extend(true,jQuery.fn.socialSharePrivacy.settings,'+ JSON.stringify(jQuery.fn.socialSharePrivacy.settings)+');\n'; process.stdout.write(script,"utf8"); |