https://github.com/twm/peanutbutter
Point buy calculator in "universal" React
https://github.com/twm/peanutbutter
Last synced: 3 months ago
JSON representation
Point buy calculator in "universal" React
- Host: GitHub
- URL: https://github.com/twm/peanutbutter
- Owner: twm
- Created: 2016-08-29T01:30:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-29T02:08:58.000Z (almost 9 years ago)
- Last Synced: 2025-01-19T16:49:26.682Z (5 months ago)
- Language: JavaScript
- Homepage: https://twm.github.io/peanutbutter/
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Point Buy Calculator
This is a massively over-engineered attribute point buy calculator for 3.5 edition D&D.
It is implemented as an “isomorphic” (or “universal”) React JS application (meaning that the React-generated HTML is rendered server-side, rather than on page load).
The goal is to see how small I can make a (very simple) application as a measurement of the overhead of this technique.## Development
Prequisite: nvm (install to `~/.nvm/nvm.sh` for the pre-commit hook)
To build:
```sh
nvm use
npm run build
```Open `dist/index.html` in a web browser.
### Install the pre-commit hook
The pre-commit hook automatically updates `npm-shrinkwrap.json` when `package.json` changes.
```sh
ln -s ../../pre-commit .git/hooks/pre-commit
```