Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcath committed Nov 24, 2017
0 parents commit 9eac723
Show file tree
Hide file tree
Showing 13 changed files with 1,348 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tests/fixtures/dist/
node_modules/
.rpt2_cache/
dist/
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: node_js

node_js:
- "node"

notifications:
email:
on_success: never
on_failure: change

script:
- npm test
45 changes: 45 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Rollup Screeps Plugin

## Install

```
npm install --save-dev rollup-plugin-screeps
```

## Usage

In `rollup.config.js`

```js
import screeps from "rollup-plugin-screeps";

...

export default {
...
sourcemap: true, // If set to true your source maps will be made screeps friendly and uploaded

plugins: [
...
screeps({configFile: "./screeps.json"})
]
}
```

### Config File

rollup-plugin-screeps needs your screeps username/password and the server to upload to.

```json
{
"email": "[email protected]",
"password": "pass",
"protocol": "https",
"hostname": "screeps.com",
"port": 443,
"path": "/",
"branch": "auto"
}
```

If `branch` is set to `"auto"` rollup-plugin-screeps will use your current git branch as the name of the branch on screeps, if you set it to anything else that string will be used as the name of the branch.
Loading

0 comments on commit 9eac723

Please sign in to comment.