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
const { resolve } = require('path'); | |
const { dependencies } = require('./package.json'); | |
const nodeModules = {}; | |
Object | |
.keys(dependencies) | |
.forEach((mod) => { | |
nodeModules[mod] = `commonjs ${mod}`; | |
}); |
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
Show hidden characters
{ | |
"plugins": ["transform-async-to-generator"] | |
} |
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
import Pokedex from 'pokedex-promise-v2'; | |
const P = new Pokedex(); | |
export default function get (pokemon) { | |
return P.getPokemonByName(pokemon); | |
}; |
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
export default function stats (data) { | |
return ( | |
` | |
NAME : ${data.name} | |
HEIGHT : ${data.height} | |
WEIGHT : ${data.weight} | |
BASE XP: ${data.base_experience} | |
` | |
); | |
} |
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
import get from './pokemondb'; | |
import stats from './stats'; | |
import Koa from 'koa'; | |
import route from 'koa-route'; | |
import logger from 'koa-logger'; | |
const getPokemonFromAPI = async (ctx, name) => { | |
try { | |
const data = await get(name); | |
ctx.body = stats(data); |
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
const { resolve } = require('path'); | |
const { dependencies } = require('./package.json'); | |
const BabiliPlugin = require("babili-webpack-plugin"); | |
const nodeModules = {}; | |
Object | |
.keys(dependencies) | |
.forEach((mod) => { | |
nodeModules[mod] = `commonjs ${mod}`; |
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
{ | |
"Use Non-ASCII Font" : false, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { | |
"Red Component" : 0.2879474759101868, | |
"Color Space" : "Calibrated", | |
"Blue Component" : 0.9987730383872986, | |
"Alpha Component" : 1, |
OlderNewer