https://github.com/ezolenko/rollup-plugin-screeps-upload
https://github.com/ezolenko/rollup-plugin-screeps-upload
rollup rollup-plugin screeps typescript
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ezolenko/rollup-plugin-screeps-upload
- Owner: ezolenko
- License: mit
- Created: 2017-11-14T00:05:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T12:24:13.000Z (about 2 years ago)
- Last Synced: 2025-01-18T20:36:40.393Z (4 months ago)
- Topics: rollup, rollup-plugin, screeps, typescript
- Language: TypeScript
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-screeps-upload
Will upload rollup bundle output and all js files nearby to a Screeps server. Based on [node-screeps-api](https://github.com/screepers/node-screeps-api).
Assumes project is in git and has remote repo set, will create branch `[repo name]-[branch-name]` on the server.
### Usage
Add to rollup config:
``` js
import screepsUpload from "./rollup/rollup-plugin-screeps-upload";export default {
plugins:
[
screepsUpload(),
// also accepts config file name as a parameter
// screepsUpload(".screeps.config.json")
// this overrides cmd line option
],
};```
Create configuration file for a server:
```json
{
"email": "",
"password": "",
"protocol": "https",
"hostname": "screeps.com",
"port": 443,
"path": "/"
}
```Run the build
```
rollup -c rollup.config.js --screeps .screeps.config.json
```