aboutsummaryrefslogtreecommitdiff
path: root/node_modules/discord.js/deploy
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-07-28 16:20:27 -0400
committerAlee14 <Alee14498@gmail.com>2017-07-28 16:20:27 -0400
commitd35e0862e6b60fe3c4f823371627359f3ce3e68b (patch)
treed98b788eb1abf0a8814207b993b4e22efe711deb /node_modules/discord.js/deploy
parent20993df62e7e38ed43428aafa5981afc3543bdea (diff)
downloadAleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.tar.gz
AleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.tar.bz2
AleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.zip
Removing node modules (go get them yourself :P)
Diffstat (limited to 'node_modules/discord.js/deploy')
-rw-r--r--node_modules/discord.js/deploy/deploy.sh90
-rw-r--r--node_modules/discord.js/deploy/deploy_key.encbin3248 -> 0 bytes
2 files changed, 0 insertions, 90 deletions
diff --git a/node_modules/discord.js/deploy/deploy.sh b/node_modules/discord.js/deploy/deploy.sh
deleted file mode 100644
index cbd644e..0000000
--- a/node_modules/discord.js/deploy/deploy.sh
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/bash
-# Adapted from https://gist.github.com/domenic/ec8b0fc8ab45f39403dd.
-
-set -e
-
-function build {
- # Build docs
- npm run docs
-
- # Build the webpack
- VERSIONED=false npm run web-dist
-}
-
-# Ignore Travis checking PRs
-if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
- echo "deploy.sh: Ignoring PR build"
- build
- exit 0
-fi
-
-# Ignore travis checking other branches irrelevant to users
-# Apparently Travis considers tag builds as separate branches so we need to
-# check for that separately
-if [ "$TRAVIS_BRANCH" != "master" -a "$TRAVIS_BRANCH" != "indev" -a "$TRAVIS_BRANCH" != "$TRAVIS_TAG" ]; then
- echo "deploy.sh: Ignoring push to another branch than master/indev"
- build
- exit 0
-fi
-
-SOURCE=$TRAVIS_BRANCH
-
-# Make sure tag pushes are handled
-if [ -n "$TRAVIS_TAG" ]; then
- echo "deploy.sh: This is a tag build, proceeding accordingly"
- SOURCE=$TRAVIS_TAG
-fi
-
-# Initialise some useful variables
-REPO=`git config remote.origin.url`
-SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
-SHA=`git rev-parse --verify HEAD`
-
-# Decrypt and add the ssh key
-ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
-ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
-ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR}
-ENCRYPTED_IV=${!ENCRYPTED_IV_VAR}
-openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in deploy/deploy_key.enc -out deploy_key -d
-chmod 600 deploy_key
-eval `ssh-agent -s`
-ssh-add deploy_key
-
-# Build everything
-build
-
-# Checkout the repo in the target branch so we can build docs and push to it
-TARGET_BRANCH="docs"
-git clone $REPO out -b $TARGET_BRANCH
-
-# Move the generated JSON file to the newly-checked-out repo, to be committed
-# and pushed
-mv docs/docs.json out/$SOURCE.json
-
-# Commit and push
-cd out
-git add .
-git config user.name "Travis CI"
-git config user.email "$COMMIT_AUTHOR_EMAIL"
-git commit -m "Docs build: ${SHA}" || true
-git push $SSH_REPO $TARGET_BRANCH
-
-# Clean up...
-cd ..
-rm -rf out
-
-# ...then do the same once more for the webpack
-TARGET_BRANCH="webpack"
-git clone $REPO out -b $TARGET_BRANCH
-
-# Move the generated webpack over
-mv webpack/discord.js out/discord.$SOURCE.js
-mv webpack/discord.min.js out/discord.$SOURCE.min.js
-
-# Commit and push
-cd out
-git add .
-git config user.name "Travis CI"
-git config user.email "$COMMIT_AUTHOR_EMAIL"
-git commit -m "Webpack build: ${SHA}" || true
-git push $SSH_REPO $TARGET_BRANCH
diff --git a/node_modules/discord.js/deploy/deploy_key.enc b/node_modules/discord.js/deploy/deploy_key.enc
deleted file mode 100644
index e03fc36..0000000
--- a/node_modules/discord.js/deploy/deploy_key.enc
+++ /dev/null
Binary files differ