From 7fff4499fd915bcea3fa93b1aa8b35f4fe7a6027 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 28 May 2017 00:38:50 +0200 Subject: add linting (and some initial fixes) --- node_modules/source-map-support/build.js | 79 ++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 node_modules/source-map-support/build.js (limited to 'node_modules/source-map-support/build.js') diff --git a/node_modules/source-map-support/build.js b/node_modules/source-map-support/build.js new file mode 100755 index 000000000..998405c1c --- /dev/null +++ b/node_modules/source-map-support/build.js @@ -0,0 +1,79 @@ +#!/usr/bin/env node + +var fs = require('fs'); +var path = require('path'); +var querystring = require('querystring'); +var child_process = require('child_process'); + +var browserify = path.resolve(path.join('node_modules', '.bin', 'browserify')); +var webpack = path.resolve(path.join('node_modules', '.bin', 'webpack')); +var coffee = path.resolve(path.join('node_modules', '.bin', 'coffee')); + +function run(command, callback) { + console.log(command); + child_process.exec(command, callback); +} + +// Use browserify to package up source-map-support.js +fs.writeFileSync('.temp.js', 'sourceMapSupport = require("./source-map-support");'); +run(browserify + ' .temp.js', function(error, stdout) { + if (error) throw error; + + // Wrap the code so it works both as a normal