Skip to content

Installation and Building

Amish Shah edited this page Oct 29, 2015 · 1 revision

Installing

To install the API, you'll need Python 2.7 and if you're on Windows, Visual Studio (Express is ok) or if you're on Mac, you might need XCode. Linux users however should already have the build tools needed.

If you're installing on Windows use npm install --save --msvs_version=2015 discord.js

If you're installing on OS X or Linux use npm install --save discord.js

Building

Before you build, make sure your branch or clone of the repo has successfully gone through at least one npm install so you have the necessary build tools. You will also need grunt-cli.

After you have these, you can run:

grunt default to compile the src directory to ES5
grunt dist to compile all the code and then create a browserified web distribution file.
Clone this wiki locally