forked from Arcath/rollup-plugin-screeps
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9eac723
Showing
13 changed files
with
1,348 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tests/fixtures/dist/ | ||
node_modules/ | ||
.rpt2_cache/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.