screeps-remote
Write your screeps in ES6 and any editor with automatic uploading.
Features
- Remote CLI console with console input history, GCL, CPU and Memory status
- Automatic babel transform and upload
- Organize your code with folders
Example
An example of an "out of the box" script repository using screeps-remote
is available here:
https://github.com/troygoode/screeps-remote-example
Manual Setup
Install the package as a devDependency:
~/my-screep-scripts $ npm install -D screeps-remote
Add a file (example: remote.js
) to your project that will be responsible for launching the screeps-remote
dashboard:
const path = const remote =
Now add that file to your package.json
as a script:
Finally, launch the dashboard from your shell:
~/my-screep-scripts $ npm run remote
Organize with folders
Example directory structure
src/
main.js
roles/
harvester.js
...
controllers/
room.js
...
Use require('roles.harvester')
instead of require('roles/harvester')