1.1.0 • Published 3 years ago

gulp-screeps v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

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 settings
  • branch (optional) - the branch you wish to commit the code to
  • path (optional) - use "/season" for Season World or "/ptr" for Public Test Realm
  • host (optional) - the url or IP address of the host
  • port (optional) - the port of the host
  • secure (optional) - if the host is using https instead of http
1.1.0

3 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago