From 5b419582d06d441a190da4fc3f1533909d4f76ae Mon Sep 17 00:00:00 2001 From: Emily Stark Date: Tue, 21 May 2013 11:32:24 -0700 Subject: [PATCH] Remove shell script plugin from star-translate (It exists in dev-bundle now) --- packages/star-translate/plugin/shell.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 packages/star-translate/plugin/shell.js diff --git a/packages/star-translate/plugin/shell.js b/packages/star-translate/plugin/shell.js deleted file mode 100644 index fd4884dd24..0000000000 --- a/packages/star-translate/plugin/shell.js +++ /dev/null @@ -1,25 +0,0 @@ -var fs = Npm.require('fs'); -var path = Npm.require('path'); - -// UGLY: reads the shell script, sticks it in an object, -// stringifies the object, and writes it out in a Javascript variable. -// This will no longer be necessary when you can include server static resources -// in the bundle. -var handler = function (compileStep) { - var script = compileStep.read().toString('utf8').trim(); - var source = fs.readFileSync(script); - var source_obj = { 'source': source }; - var filename = path.basename(compileStep.inputPath); - var target = compileStep.inputPath + '.js'; - var code = 'if (! shellScripts) shellScripts = {};'; - code = code + '\nshellScripts["' + filename + '"] =' + - JSON.stringify(source_obj) + ';'; - compileStep.addJavaScript({ - path: target, - data: code, - sourcePath: compileStep.inputPath, - lineForLine: false - }); -}; - -Plugin.registerSourceHandler('shin', handler);