.idea | ||
servers/home/no-ports | ||
.gitignore | ||
build.mjs | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
bb-external-editor
This is a template for using any external editor for Bitburner. This Template supports JSX, TS and TSX out of the box.
How to use
- If you dont already have it installed, install NodeJS
- Clone this repository
- navigate to the template (
cd path/to/the/template
) inside your console - run
npm install
in your console to install all dependencies - run
npm start
in your console to start the RemoteAPI server - open Bitburner and navigate to the settings
- open the tab labeled 'Remote API' and enter the port '12525'
- press connect
Now any changes made to scripts inside the server folders will automatically be uploaded to Bitburner.
Using React
The React and ReactDOM instance from the game can simply be imported as ESModules
import React from 'react' //and
import ReactDOM from 'react-dom'
For more in-depth details have a look at the plugin powering this template!