From 7af5445b9341e6055a6d8118522aa31288687201 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sun, 22 Nov 2015 15:20:30 +0000 Subject: [PATCH] Added the loose plugin for better support --- .babelrc | 5 +-- package.json | 88 +++++++++++++++++++++++++++------------------------- 2 files changed, 48 insertions(+), 45 deletions(-) diff --git a/.babelrc b/.babelrc index b39fb63ff..e56b692aa 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,6 @@ { - "presets": [ - "es2015" + "presets": [ + "es2015", + "es2015-loose" ] } \ No newline at end of file diff --git a/package.json b/package.json index 1b71509d2..59dc9c508 100644 --- a/package.json +++ b/package.json @@ -1,44 +1,46 @@ { - "name": "discord.js", - "version": "5.0.1", - "description": "A way to interface with the Discord API", - "main": "./entrypoint.js", - "scripts": { - "test": "node ./test/bot.js" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/hydrabolt/discord.js.git" - }, - "keywords": [ - "discord", - "api", - "bot", - "client", - "node", - "discordapp" - ], - "author": "Amish Shah ", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/hydrabolt/discord.js/issues" - }, - "homepage": "https://github.com/hydrabolt/discord.js#readme", - "dependencies": { - "superagent": "^1.3.0", - "ws": "^0.7.2" - }, - "devDependencies": { - "grunt": "~0.4.5", - "grunt-babel": "^5.0.1", - "grunt-browserify": "^4.0.0", - "grunt-contrib-uglify": "^0.9.2", - "load-grunt-tasks": "^3.2.0" - }, - "optionalDependencies": { - "node-opus": "^0.1.11" - }, - "engines": { - "node": ">=0.12.7" - } -} \ No newline at end of file + "name": "discord.js", + "version": "5.0.1", + "description": "A way to interface with the Discord API", + "main": "./entrypoint.js", + "scripts": { + "test": "node ./test/bot.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/hydrabolt/discord.js.git" + }, + "keywords": [ + "discord", + "api", + "bot", + "client", + "node", + "discordapp" + ], + "author": "Amish Shah ", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/hydrabolt/discord.js/issues" + }, + "homepage": "https://github.com/hydrabolt/discord.js#readme", + "dependencies": { + "superagent": "^1.3.0", + "ws": "^0.7.2" + }, + "devDependencies": { + "babel-preset-es2015": "^6.1.18", + "babel-preset-es2015-loose": "^6.1.2", + "grunt": "~0.4.5", + "grunt-babel": "^5.0.1", + "grunt-browserify": "^4.0.0", + "grunt-contrib-uglify": "^0.9.2", + "load-grunt-tasks": "^3.2.0" + }, + "optionalDependencies": { + "node-opus": "^0.1.11" + }, + "engines": { + "node": ">=0.12.7" + } +}