-
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.
Fix selectedCustomColours subscription
- Loading branch information
Showing
10 changed files
with
5,001 additions
and
834 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,60 +1,59 @@ | ||
import replace from "@rollup/plugin-replace"; | ||
import typescript from "@rollup/plugin-typescript"; | ||
import { terser } from "rollup-plugin-terser"; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import resolve from "@rollup/plugin-node-resolve"; | ||
import pkg from "./package.json"; | ||
|
||
|
||
// Environment variables | ||
const build = process.env.BUILD || "development"; | ||
const isDev = (build === "development"); | ||
|
||
const output = (isDev) | ||
? `/Users/andrewpenman/Library/Application Support/OpenRCT2/plugin/RidePainter.js` | ||
: "./dist/RidePainter.js"; | ||
const isDev = build === "development"; | ||
|
||
const output = isDev | ||
? `/Users/spenman/Library/Application Support/OpenRCT2/plugin/RidePainter.js` | ||
: "./dist/RidePainter.js"; | ||
|
||
/** | ||
* @type {import("rollup").RollupOptions} | ||
*/ | ||
const config = { | ||
input: "./src/registerPlugin.ts", | ||
output: { | ||
file: output, | ||
format: "iife", | ||
}, | ||
plugins: [ | ||
replace({ | ||
include: "./src/helpers/environment.ts", | ||
preventAssignment: true, | ||
values: { | ||
__PLUGIN_VERSION__: pkg.version, | ||
__BUILD_CONFIGURATION__: build | ||
} | ||
}), | ||
typescript(), | ||
terser({ | ||
compress: { | ||
passes: 5 | ||
}, | ||
format: { | ||
comments: false, | ||
quote_style: 1, | ||
wrap_iife: true, | ||
input: "./src/registerPlugin.ts", | ||
output: { | ||
file: output, | ||
format: "iife", | ||
}, | ||
plugins: [ | ||
replace({ | ||
include: "./src/helpers/environment.ts", | ||
preventAssignment: true, | ||
values: { | ||
__PLUGIN_VERSION__: pkg.version, | ||
__BUILD_CONFIGURATION__: build, | ||
}, | ||
}), | ||
typescript(), | ||
terser({ | ||
compress: { | ||
passes: 5, | ||
}, | ||
format: { | ||
comments: false, | ||
quote_style: 1, | ||
wrap_iife: true, | ||
// TODO change url to final. | ||
preamble: "// Get the latest version: https://github.com/thesm17/OpenRCT-Ride-Painter", | ||
beautify: isDev, | ||
}, | ||
mangle: { | ||
properties: { | ||
regex: /^_/ | ||
} | ||
}, | ||
preamble: | ||
"// Get the latest version: https://github.com/thesm17/OpenRCT-Ride-Painter", | ||
beautify: isDev, | ||
}, | ||
mangle: { | ||
properties: { | ||
regex: /^_/, | ||
}, | ||
}, | ||
|
||
// Useful only for stacktraces: | ||
keep_fnames: isDev, | ||
}), | ||
// Useful only for stacktraces: | ||
keep_fnames: isDev, | ||
}), | ||
resolve(), | ||
], | ||
], | ||
}; | ||
export default config; |
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,17 @@ | ||
Changes in v 0.1.2 | ||
|
||
Completed: | ||
Features | ||
_ Add a column to show the first 15 selected rides. | ||
_ Add button to scroll main viewport to selected ride | ||
_ Add repaint button to selected ride | ||
_ Prebuilt tracks are now painted on placement. | ||
|
||
Under the hood: \* Refactor code to use ArrayStores | ||
|
||
Fixes: \* Rides that start in the park aren't repainted accidentally | ||
|
||
In progress | ||
Feat: add undo button for most recent 3-5 paints | ||
Feat: Theme creation & management. Ability for any user to create/delete/share/import their own custom themes. | ||
Feat: Paginate through selected rides in right column |
Oops, something went wrong.