Build: remove sugar dependency

This commit is contained in:
Ivo Julca 2016-03-05 22:27:57 -05:00
parent 1e1b6952ae
commit a62e85b822
2 changed files with 3 additions and 6 deletions

View File

@ -16,8 +16,6 @@ const fs = require('fs');
const crypto = require('crypto');
const exec = require('child_process').exec;
require('sugar');
const thisFile = __filename;
const thisDir = __dirname;
const rootDir = path.resolve(thisDir, '..');
@ -160,14 +158,14 @@ function updateLearnsets(callback) {
}
const buf = [];
const pokemonList = Object.values(Pokedex).sort(function (a, b) {
const pokemonList = Object.keys(Pokedex).map(speciesId => Pokedex[speciesId]).sort(function (a, b) {
// Missingno. goes first (zeroth); afterwards, CAP in descending dex order (increasingly negative)
// Finally, standard Pokémon in ascending dex order
if (a.num <= 0 && b.num > 0) return -1;
if (b.num <= 0 && a.num > 0) return 1;
if (a.num <= 0 && b.num <= 0) return b.num - a.num;
return a.num - b.num;
}).map('species').map(toId);
}).map(template => toId(template.species));
for (let i = 0, len = pokemonList.length; i < len; i++) {
const entry = newLearnsetsG6[pokemonList[i]];

View File

@ -14,8 +14,7 @@
},
"dependencies": {},
"devDependencies": {
"eslint": "~1.10.3",
"sugar": "1.4.1"
"eslint": "~1.10.3"
},
"private": true
}