This repository has been archived by the owner on Mar 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 32fabc7.
- Loading branch information
Showing
19 changed files
with
418 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,5 +58,3 @@ jspm_packages/ | |
package-lock.json | ||
example/config.json | ||
|
||
dist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,4 @@ testing | |
.travis.yml | ||
docs.js | ||
tslint.json | ||
example | ||
azure-pipelines.yml | ||
example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- "11" | ||
install: npm install | ||
jobs: | ||
include: | ||
- stage: test | ||
script: npm test | ||
- stage: deploy | ||
script: bash ./scripts/travis-deploy.sh | ||
cache: | ||
directories: | ||
- node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,32 @@ | ||
# Node.js | ||
# Build a general Node.js project with npm. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | ||
|
||
trigger: | ||
- master | ||
|
||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
strategy: | ||
matrix: | ||
node_11_x: | ||
node_version: 11.x | ||
node_10_x: | ||
node_version: 10.x | ||
node_11_x: | ||
node_version: 11.x | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(node_version) | ||
displayName: 'Install Node.js' | ||
- script: yarn | ||
displayName: 'Install Dependencies' | ||
- script: yarn run test:lint | ||
displayName: 'Run test lint' | ||
condition: succeededOrFailed() | ||
- bash: | | ||
set -e | ||
if [ "$TRAVIS_BRANCH" != "master" -o -n "$TRAVIS_TAG" -o "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
echo -e "Not building for a non master branch push - building without deploying." | ||
npm run docs | ||
exit 0 | ||
fi | ||
echo -e "Building for a master branch push - building and deploying." | ||
REPO=$(git config remote.origin.url) | ||
SHA=$(git rev-parse --verify HEAD) | ||
TARGET_BRANCH="gh-pages" | ||
git clone $REPO out -b $TARGET_BRANCH | ||
yarn run docs | ||
rsync -vau docs/ out/ | ||
cd out | ||
git add --all . | ||
git config user.name "Azure Pipelines" | ||
git config user.email "${COMMIT_EMAIL}" | ||
git commit -m "Docs build: ${SHA}" || true | ||
git push "https://${GH_TOKEN}@github.com/MrJacz/discord.js-lavalink.git" $TARGET_BRANCH | ||
env: | ||
COMMIT_EMAIL: $(commitEmail) | ||
GH_TOKEN: $(githubToken) | ||
displayName: 'Build docs' | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(node_version) | ||
displayName: 'Install Node.js' | ||
|
||
- script: | | ||
npm install | ||
displayName: 'npm install' | ||
|
||
- script: | | ||
npm run test | ||
displayName: 'run tests' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
# Based on https://github.com/hydrabolt/discord.js-site/blob/master/deploy/deploy.sh | ||
|
||
set -e | ||
|
||
if [ "$TRAVIS_BRANCH" != "master" -o -n "$TRAVIS_TAG" -o "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
echo -e "Not building for a non master branch push - building without deploying." | ||
npm run docs | ||
exit 0 | ||
fi | ||
|
||
echo -e "Building for a master branch push - building and deploying." | ||
|
||
REPO=$(git config remote.origin.url) | ||
SHA=$(git rev-parse --verify HEAD) | ||
|
||
TARGET_BRANCH="gh-pages" | ||
git clone $REPO dist -b $TARGET_BRANCH | ||
|
||
npm run docs | ||
|
||
rsync -vau docs/ dist/ | ||
|
||
cd dist | ||
git add --all . | ||
git config user.name "Travis CI" | ||
git config user.email "${COMMIT_EMAIL}" | ||
git commit -m "Docs build: ${SHA}" || true | ||
git push "https://${GH_TOKEN}@github.com/MrJacz/discord.js-lavalink.git" $TARGET_BRANCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
Node: require("./lib/LavalinkNode"), | ||
Player: require("./lib/Player"), | ||
PlayerManager: require("./lib/PlayerManager"), | ||
version: require("../package.json").version | ||
}; | ||
|
||
/** | ||
* @external Client | ||
* @see {@link https://discord.js.org/#/docs/main/master/class/Client} | ||
*/ | ||
|
||
/** | ||
* @external Collection | ||
* @see {@link https://discord.js.org/#/docs/main/master/class/Collection} | ||
*/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.