From 9cf703c6cd18479aa3b40bfcb7458a057ba75239 Mon Sep 17 00:00:00 2001 From: Christine Spang Date: Fri, 17 Feb 2017 10:18:15 -0800 Subject: [PATCH] [*] Clean up some cruft Summary: This stuff doesn't seem to be used for anything anymore and it's cluttering up the client-app dir. Test Plan: ran the app, also did `npm start` with no ~/.nylas-dev Reviewers: evan, juan Reviewed By: evan, juan Differential Revision: https://phab.nylas.com/D3961 --- packages/client-app/arc-N1/README.md | 5 --- packages/client-app/flip.js | 29 ------------- packages/client-app/keymap.json | 1 - packages/client-app/nylas-mail | 8 ---- packages/client-app/setup.sh | 64 ---------------------------- 5 files changed, 107 deletions(-) delete mode 100644 packages/client-app/arc-N1/README.md delete mode 100644 packages/client-app/flip.js delete mode 100644 packages/client-app/keymap.json delete mode 100755 packages/client-app/nylas-mail delete mode 100755 packages/client-app/setup.sh diff --git a/packages/client-app/arc-N1/README.md b/packages/client-app/arc-N1/README.md deleted file mode 100644 index 91b325d76..000000000 --- a/packages/client-app/arc-N1/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Arc files for N1 - -In the `setup.sh` script, these will get copied over into `N1` so Nylas -team members can use arcanist to develop on N1, but the open source -version does not need to reference them. diff --git a/packages/client-app/flip.js b/packages/client-app/flip.js deleted file mode 100644 index e5349c2ab..000000000 --- a/packages/client-app/flip.js +++ /dev/null @@ -1,29 +0,0 @@ -let i = 0; -let cur = ""; -let last = ""; -let HH = 0; -let HT = 0; -while (i < 1000000) { - cur = Math.round(Math.random()) ? "H" : "T" - - if (last + cur === "HH") { - // cur = ""; - // last = ""; - HH++; - } - last = cur; - i++; -} -i = 0; -while (i < 1000000) { - cur = Math.round(Math.random()) ? "H" : "T" - if (last + cur == "HT") { - // cur = ""; - // last = ""; - HT++; - } - last = cur; - i++; -} -console.log("HH", HH, HH / (HH + HT)) -console.log("HT", HT, HT / (HH + HT)) diff --git a/packages/client-app/keymap.json b/packages/client-app/keymap.json deleted file mode 100644 index 0967ef424..000000000 --- a/packages/client-app/keymap.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/packages/client-app/nylas-mail b/packages/client-app/nylas-mail deleted file mode 100755 index f7f3b660b..000000000 --- a/packages/client-app/nylas-mail +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -if [ -e .setup-complete ]; then - cd N1 - ./atom.sh "$@" -else - echo "ERROR: Please run ./setup.sh first" - exit 1 -fi diff --git a/packages/client-app/setup.sh b/packages/client-app/setup.sh deleted file mode 100755 index 80615280d..000000000 --- a/packages/client-app/setup.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env bash - -# Exit if any command fails -set -e - -echo "Setting up Nylas Mail"; -rm -f .setup-complete; - - -echo "---> Ensuring N1 submodule is initialized"; -git submodule init; -git submodule update; - - -echo "---> Copying arcnaist files to N1"; -cp -f arc-N1/.arc* N1/; -cp -rf arc-N1/arclib N1/; - - -echo "---> Copying private packages to N1" -mkdir -p N1/private_packages -cp -rf packages/* N1/private_packages - - -echo "---> Setting required environment variables" -SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) - -[ -z "$EDGEHILL_PATH" ] && EDGEHILL_PATH="$SCRIPT_DIR/N1" - -if env | grep -q ^EDGEHILL_PATH= -then - echo "---> Already have EDGEHILL_PATH set to '$EDGEHILL_PATH'" -else - echo "---> Setting EDGEHILL_PATH to '$EDGEHILL_PATH'" - export EDGEHILL_PATH -fi - - -echo "---> Checking for correct node version" -command -v node >/dev/null 2>&1 || { echo >&2 "ERROR: Please install node"; exit 1; } - -node_version="$(node --version)" -if [ ${node_version:0:5} != "v0.10" ]; then - if [ "$(uname)" == "Darwin" ]; then - echo "---> Warning, you don't have the correct version of node installed. You have '$(node --version)'" - command -v node >/dev/null 2>&1 || { echo >&2 "ERROR: We can't automatically install nvm for you. Setup homebrew, then 'brew install nvm' and use nvm to setup the correct node version."; exit 1; } - echo "---> We see you have homebrew installed. We're using brew to install nvm to install the correct version of node." - brew install nvm - nmv install 0.10 - nvm use 0.10 - else - echo "ERROR: Nylas Mail requires Node version 0.10.x. You are running '$(node --version)'. Please ensure node 0.10 is node in your path and try again"; - exit 1; - fi -fi - - -echo "---> Setting up N1" -cd N1 -script/bootstrap - - -echo "---> DONE!. Run './nylas-mail --dev' to launch in dev mode" -touch .setup-complete