Bitburner Scripts + Typescript + Local Server
A Typescript template project with debugging support, import rewrites and developer convenience.
How to use
- Transpile/Run Server:
npm run watch
- Set an alias once in bitburner:
alias init="wget http://localhost:8000/init.js init.js; wget http://localhost:8000/deployment/self-update.js deployment/self-update.js"
- Run in bitburner:
init
Debugging
Steam
For debugging bitburner on Steam you will need to enable a remote debugging port. This can be done by rightclicking bitburner in your Steam library and selecting properties. There you need to add --remote-debugging-port=9222
Edge
For Edge exists a launch config, you will have to import your save in that - otherwise you will have to run your regular Edge with your user profile in debugging mode, which is not recommended.
Requirements
Nodejs >= 10
Transpiling and Starting Server
Clone this project and on your terminal run:
# Install dependencies
npm ci
# Transpile the code and start server
npm start
# The server will run locally on port 8000 (default)
Updating your code
The code is being automatically generated and ingame the deployment process will check regularly if any updates are available. It will then download all generated scripts in ./dist/
onto home
and do a run processor.js
.
Contributing
Read the CONTRIBUTING.md file for more information.
Code of Conduct
Read the CODE_OF_CONDUCT.md file for more information.