gulp-screeps
v1.1.0
Published
A Gulp plugin for commiting code to your Screeps account
Downloads
8
Readme
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 = require('gulp');
var screeps = require('gulp-screeps');
gulp.task('screeps', function() {
gulp.src('*.js')
.pipe(screeps(options));
});
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 = require('gulp');
var screeps = require('gulp-screeps');
var credentials = require('./credentials.js');
gulp.task('screeps', function() {
gulp.src('*.js')
.pipe(screeps(credentials));
});
credentials.js:
Persistent (MMO) World example:
module.exports = {
token: 'TOKEN'
branch: 'default',
};
Public Test Realm example:
module.exports = {
token: 'TOKEN'
branch: 'default',
path: '/ptr',
};
Season World example:
module.exports = {
token: 'TOKEN'
branch: 'default',
path: '/season'
};
Private Server example:
module.exports = {
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