-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
81 changed files
with
1,925 additions
and
905 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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Packages | ||
node_modules/ | ||
yarn.lock | ||
|
||
# Log files | ||
logs/ | ||
*.log | ||
|
||
# Authentication | ||
test/auth.json | ||
test/auth.js | ||
docs/deploy/deploy_key | ||
docs/deploy/deploy_key.pub | ||
deploy/deploy_key | ||
deploy/deploy_key.pub | ||
|
||
# Miscellaneous | ||
.tmp/ | ||
.vscode/ | ||
docs/docs.json | ||
webpack/ | ||
# Packages | ||
node_modules/ | ||
yarn.lock | ||
|
||
# Log files | ||
logs/ | ||
*.log | ||
|
||
# Authentication | ||
test/auth.json | ||
test/auth.js | ||
docs/deploy/deploy_key | ||
docs/deploy/deploy_key.pub | ||
deploy/deploy_key | ||
deploy/deploy_key.pub | ||
|
||
# Miscellaneous | ||
.tmp/ | ||
.vscode/ | ||
docs/docs.json | ||
webpack/ |
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 @@ | ||
package-json=false |
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,11 +1,21 @@ | ||
{ | ||
"ecmaVersion": 6, | ||
"ecmaVersion": 7, | ||
"libs": [], | ||
"loadEagerly": [ | ||
"./src/*.js" | ||
], | ||
"dontLoad": [ | ||
"node_modules/**" | ||
], | ||
"plugins": { | ||
"node": { | ||
"dontLoad": "node_modules/**", | ||
"load": "", | ||
"modules": "" | ||
"es_modules": {}, | ||
"node": {}, | ||
"doc_comment": { | ||
"fullDocs": true, | ||
"strong": true | ||
}, | ||
"webpack": { | ||
"configPath": "./webpack.config.js", | ||
} | ||
} | ||
} |
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,16 +1,20 @@ | ||
language: node_js | ||
node_js: | ||
- "6" | ||
- "7" | ||
cache: | ||
directories: | ||
- node_modules | ||
install: npm install | ||
script: | ||
- bash ./deploy/deploy.sh | ||
env: | ||
global: | ||
- ENCRYPTION_LABEL: "af862fa96d3e" | ||
- COMMIT_AUTHOR_EMAIL: "amishshah.2k@gmail.com" | ||
dist: trusty | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- "6" | ||
- "7" | ||
cache: | ||
directories: | ||
- node_modules | ||
install: npm install | ||
script: bash ./deploy/test.sh | ||
jobs: | ||
include: | ||
- stage: build | ||
node_js: "6" | ||
script: bash ./deploy/deploy.sh | ||
env: | ||
global: | ||
- ENCRYPTION_LABEL: "af862fa96d3e" | ||
- COMMIT_AUTHOR_EMAIL: "amishshah.2k@gmail.com" | ||
dist: trusty | ||
sudo: false |
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,9 @@ | ||
const browser = typeof window !== 'undefined'; | ||
const webpack = !!process.env.__DISCORD_WEBPACK__; | ||
|
||
const Discord = require('./'); | ||
|
||
module.exports = Discord; | ||
if (browser && webpack) window.Discord = Discord; // eslint-disable-line no-undef | ||
// eslint-disable-next-line no-console | ||
else if (!browser) console.warn('Warning: Attempting to use browser version of Discord.js in a non-browser environment!'); |
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,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
function tests { | ||
npm run lint | ||
npm run docs:test | ||
exit 0 | ||
} | ||
|
||
# For revert branches, do nothing | ||
if [[ "$TRAVIS_BRANCH" == revert-* ]]; then | ||
echo -e "\e[36m\e[1mTest triggered for reversion branch \"${TRAVIS_BRANCH}\" - doing nothing." | ||
exit 0 | ||
fi | ||
|
||
# For PRs | ||
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
echo -e "\e[36m\e[1mTest triggered for PR #${TRAVIS_PULL_REQUEST} to branch \"${TRAVIS_BRANCH}\" - only running tests." | ||
tests | ||
fi | ||
|
||
# Figure out the source of the test | ||
if [ -n "$TRAVIS_TAG" ]; then | ||
echo -e "\e[36m\e[1mTest triggered for tag \"${TRAVIS_TAG}\"." | ||
else | ||
echo -e "\e[36m\e[1mTest triggered for branch \"${TRAVIS_BRANCH}\"." | ||
fi | ||
|
||
# For Node != 6 | ||
if [ "$TRAVIS_NODE_VERSION" != "6" ]; then | ||
echo -e "\e[36m\e[1mTest triggered with Node v${TRAVIS_NODE_VERSION} - only running tests." | ||
tests | ||
fi |
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 +1 @@ | ||
## [View the documentation here.](https://discord.js.org/#/docs) | ||
## [View the documentation here.](https://discord.js.org/#/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 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
Oops, something went wrong.