This is a starter with Grunt and hot reload. On file saves, it will auto update on Screeps.
A config.json is required in the root of the project:
{
"branch": "dev",
"email": "[email protected]",
"password": "screeps_password",
"ptr": false,
"private_directory": true,
"host": "localhost",
"port": 21025,
"http": true
}
npm install
to install required packagednpm i -g grunt
to install Grunt globally.- This utilizes Screeps Mod Auth. Setup an email and password through your screeps server.
- Create a config file
Grunt Watch
or run the run.bat (run.sh) to start
- Start writing in loop.js in the src directory.
- Don't modify main.js or version.js!
- To create more than a single javascript file, use import