Role Playing Game Dice Rolling
- Pull
- Import
roll
orcreateRoller
fromlibs/
like so:
import {roll, createRoller} from 'libs/';
- Enjoy.
Run npm test
.
This plugin works with babel-cli only (it's not production ready). This is due to problems with babel-plugin-resolver when running a build. To make it production ready the plugin needs to be removed and modules have to be referenced with relative paths. For this exercise however I decided to use a namespace-like convention for module loading.