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.
- Loading branch information
Showing
19 changed files
with
278 additions
and
418 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,3 +58,5 @@ 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,4 +7,5 @@ testing | |
.travis.yml | ||
docs.js | ||
tslint.json | ||
example | ||
example | ||
azure-pipelines.yml |
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
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,32 +1,52 @@ | ||
# 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_10_x: | ||
node_version: 10.x | ||
node_11_x: | ||
node_version: 11.x | ||
node_10_x: | ||
node_version: 10.x | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: $(node_version) | ||
displayName: 'Install Node.js' | ||
|
||
- script: | | ||
npm install | ||
displayName: 'npm install' | ||
|
||
- script: | | ||
npm run test | ||
displayName: 'run tests' | ||
- 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' | ||
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { LavalinkNode } from "./lib/LavalinkNode"; | ||
import { Player } from "./lib/Player"; | ||
import { PlayerManager } from "./lib/PlayerManager"; | ||
|
||
export { LavalinkNode, Player, PlayerManager }; |
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.