Updated Web Distrib management

This commit is contained in:
hydrabolt
2015-09-06 20:16:16 +01:00
parent 012c706ab9
commit a6e62b22a6
5 changed files with 513 additions and 251 deletions

View File

@@ -3,7 +3,7 @@ module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
// define source files and their destinations
babel: {
dist: {
@@ -19,7 +19,7 @@ module.exports = function (grunt) {
browserify: {
dist: {
files: {
'web-dist/discord.js': ["lib/index.js"],
'web-dist/discord.<%= pkg.version %>.js': ["lib/index.js"],
},
options: {
browserifyOptions: {
@@ -31,7 +31,7 @@ module.exports = function (grunt) {
uglify: {
min: {
files: {
"./web-dist/discord.min.js": "./web-dist/discord.js"
"./web-dist/discord.min.<%= pkg.version %>.js": "./web-dist/discord.js"
}
}
}