dice/README.md

31 lines
613 B
Markdown
Raw Normal View History

2020-03-14 12:37:33 +01:00
# Dice
Given a set of dice, calculates the probability density graph of each value that can be rolled.
2020-05-05 21:59:03 +02:00
## Development
### Requirements
* [npm](https://www.npmjs.com/)
### Setting up
```shell script
# Install dependencies (only needed once)
$> npm ci
```
### Building
```shell script
2021-11-28 17:47:12 +01:00
# Build the tool in `dist/` for development
2020-05-05 21:59:03 +02:00
$> npm run dev
# Same as above, but automatically rerun it whenever files are changed
$> npm run dev:server
2021-11-28 17:47:12 +01:00
# Build the tool in `dist/` for deployment
2020-05-05 21:59:03 +02:00
$> npm run deploy
```
### Publishing
```shell script
# Log in to npm
$> npm login
# Push to npm
$> npm publish --access public
```