Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Removed unused file.

Mike Cao48eba0242dee
diff --git a/scripts/common.js b/scripts/common.js
deleted file mode 100644
index eb070c202..000000000
--- a/scripts/common.js
+++ /dev/null
@@ -1,29 +0,0 @@
-const { spawn } = require('child_process');
-
-function getDatabase() {
- return process.env.DATABASE_URL.split(':')[0];
-}
-
-function runCommand(cmd, args = []) {
- return new Promise((resolve, reject) => {
- const child = spawn(cmd, args);
-
- child.stdout.on('data', data => process.stdout.write(data));
-
- child.stderr.on('data', data => process.stdout.write(data));
-
- child.on('error', err => reject(err));
-
- child.on('exit', (code, signal) => resolve({ code, signal }));
- });
-}
-
-function getNpmCommand() {
- return /^win/.test(process.platform) ? 'npm.cmd' : 'npm';
-}
-
-module.exports = {
- getDatabase,
- runCommand,
- getNpmCommand,
-};