A text adventure game decided by the people.
Basic Development
npm startstarts a development server
Production Build
-
npm run buildbuilds a production build into./dist -
npm run packagepackages the bundled./distinto an electron program -
npm run package-allpackages the bundled./distinto an electron program for all platforms -
npm run build-packagerunsbuildandpackage -
npm run build-allrunsbuildandpackage-all
ESLint and Code Style
npm run lintruns eslintnpm run lint-fixruns eslint with auto-fix
Unit Testing
npm run testruns the tests
There are a couple extra NPM Scripts which do useful things, but they require extra dependencies installed:
npm run clocruns Count Lines of Code, which can be installed withnpm i -g cloc(requires perl also)npm run gourceruns Gource, a visualization tool, and outputs a mp4 atgource.mp4- It requires Gource to be installed already
- If running on windows, you need to also install ffmpeg
- If running on linux, you need to install libav, details inside
make-gource-mp4.sh