gulp-screeps
A Gulp plugin for commiting code to your Screeps account. The plugin is based on the grunt equivalent.
Usage
gulpfile.js:
var gulp = ;var screeps = ; gulp;
If you don't want to commit your account information, require an other module and export an option object. Don't forget to add the file to your .gitignore.
gulpfile.js:
var gulp = ;var screeps = ;var credentials = ; gulp;
credentials.js:
Persistent (MMO) World example:
moduleexports = token: 'TOKEN' branch: 'default';
Public Test Realm example:
moduleexports = token: 'TOKEN' branch: 'default' path: '/ptr';
Season World example:
moduleexports = token: 'TOKEN' branch: 'default' path: '/season';
Private Server example:
moduleexports = email: 'EMAIL' password: 'PASSWORD' branch: 'default' host: 'someprivateserver.com' port: 21025;
Options
email
- the email of your account (Private Servers Only)password
- the password of your account (Private Servers Only)token
- the token of your account (Official Server Only) - Get from your screeps account settingsbranch
(optional) - the branch you wish to commit the code topath
(optional) - use "/season" for Season World or "/ptr" for Public Test Realmhost
(optional) - the url or IP address of the hostport
(optional) - the port of the hostsecure
(optional) - if the host is using https instead of http