https://maxwilson.github.io/dfrpgDifficulty
Difficulty calculator for Dungeon Fantasy RPG (Powered By GURPS!) encounters.
Very much in-progress. Recommended usage is to just go to https://maxwilson.github.io/dfrpgDifficulty and use it there.
- Install JS dependencies:
npm install
- Move to
src
folder:cd src
- Install F# dependencies:
dotnet restore
- Run webpack dev server:
yarn start
- In your browser, open: http://localhost:8080/
yarn webpack
(ornpm-start
) will internally start the Fable daemon and run a script in package.json concurrently.
If you are using VS Code + Ionide, you can also use the key combination: Ctrl+Shift+B (Cmd+Shift+B on macOS) instead of typing the yarn webpack
command. This also has the advantage that Fable-specific errors will be highlighted in the editor along with other F# errors.
Any modification you do to the F# code will be reflected in the web page after saving. When you want to output the JS code to disk, run yarn build
(or npm build
) and you'll get a minified JS bundle in the public
folder.