diff options
Diffstat (limited to 'app-editors/atom/files/transpile-coffee-script.js')
-rw-r--r-- | app-editors/atom/files/transpile-coffee-script.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/app-editors/atom/files/transpile-coffee-script.js b/app-editors/atom/files/transpile-coffee-script.js deleted file mode 100644 index bbea175b6721..000000000000 --- a/app-editors/atom/files/transpile-coffee-script.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict' - -const CompileCache = require(process.env.ATOM_SRC_ROOT + '/src/compile-cache') -const fs = require('fs') -const glob = require('glob') -const path = require('path') - -function do_compile() { - let paths = new Set() - - for (let pattern of process.argv.slice(2)) { - for (let path of glob.sync(pattern, {nodir: true})) { - paths.add(path) - } - } - - for (let coffeePath of paths) { - let jsPath = coffeePath.replace(/coffee$/g, 'js') - fs.writeFileSync( - jsPath, CompileCache.addPathToCache(coffeePath, process.env.ATOM_HOME)) - fs.unlinkSync(coffeePath) - } -} - -do_compile() |