-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
96de855
commit 0e1da41
Showing
6 changed files
with
43 additions
and
8 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
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 @@ | ||
#!/bin/bash | ||
|
||
TEMP_FILE=temp/temp.js | ||
|
||
if [ -e TEMP_FILE ]; then | ||
rm TEMP_FILE | ||
fi | ||
|
||
yarn rollup -c rollup_build.config.js | ||
java -jar compiler.jar --language_out ECMASCRIPT_2015 --js $TEMP_FILE --js_output_file dist/main.js | ||
yarn rollup -c rollup_deploy.config.js | ||
|
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
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
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,24 @@ | ||
"use strict"; | ||
|
||
import screeps from "rollup-plugin-screeps"; | ||
|
||
let cfg; | ||
const dest = process.env.DEST; | ||
if (!dest) { | ||
console.log("No destination specified - code will be compiled but not uploaded"); | ||
} else if ((cfg = require("./screeps")[dest]) == null) { | ||
throw new Error("Invalid upload destination"); | ||
} | ||
|
||
export default { | ||
input: "dist/main.js", | ||
output: { | ||
file: "dist/main.js", | ||
format: "cjs", | ||
sourcemap: false | ||
}, | ||
|
||
plugins: [ | ||
screeps({config: cfg, dryRun: cfg == null}) | ||
] | ||
} |
Submodule private
updated
from b456bf to 2ad6b3