A game engine that grows with you https://moddingtree.com
Find a file Use this template
thepaperpilot 1657dffcfe
Some checks failed
Run Tests / test (pull_request) Failing after 1m16s
Feature rewrite
- Removed `jsx()` and `JSXFunction`. You can now use `JSX.Element` like any other `Computable` value
- `joinJSX` now always requires a joiner. Just pass the array of elements or wrap them in `<>` and `</>` if there's no joiner
- Removed `coerceComponent`, `computeComponent`, and `computeOptionalComponent`; just use the `render` function now
- It's recommended to now do `<MyComponent />` instead of `<component :is="myComponent" />`
- All features no longer take the options as a type parameter, and all generic forms have been removed as a result
- Fixed `forceHideGoBack` not being respected
- Removed `deepUnref` as now things don't get unreffed before being passed into vue components by default
- Moved MarkNode to new wrapper, and removed existing `mark` properties
- Moved Tooltip to new wrapper, and made it take an options function instead of raw object
- VueFeature component now wraps all vue features, and applies styling, classes, and visibility in the wrapping div. It also adds the Node component so features don't need to
- `mergeAdjacent` now works with grids (perhaps should've used scss to reduce the amount of css this took)
- `CoercableComponent` renamed to `Renderable` since it should be used with `render`
- Replaced `isCoercableComponent` with `isJSXElement`
- Replaced `Computable` and `ProcessedComputable` with the vue built-ins `MaybeRefOrGetter` and `MaybeRef`
- `convertComputable` renamed to `processGetter`
- Also removed `GetComputableTypeWithDefault` and `GetComputableType`, which can similarly be replaced
- `dontMerge` is now a property on rows and columns rather than an undocumented css class you'd have to include on every feature within the row or column
- Fixed saves manager not being imported in addiction warning component
- Created `vueFeatureMixin` for simplifying the vue specific parts of a feature. Passes the component's properties in explicitly and directly from the feature itself
- All features should now return an object that includes props typed to omit the options object and satisfies the feature. This will ensure type correctness and pass-through custom properties. (see existing features for more thorough examples of changes)
- Replaced decorators with mixins, which won't require casting. Bonus amount decorators converted into generic bonus amount mixin. Removed effect decorator
- All `render` functions now return `JSX.Element`. The `JSX` variants (e.g. `renderJSX`) (except `joinJSX`) have been removed
- Moved all features that use the clickable component into the clickable folder
- Removed `small` property from clickable, since its a single css rule (`min-height: unset`) (you could add a small css class and pass small to any vue feature's classes property, though)
- Upgrades now use the clickable component
- Added ConversionType symbol
- Removed setDefault, just use `??=`
- Added isType function that uses a type symbol to check
- General cleanup
2024-11-19 08:32:45 -06:00
.forgejo/workflows Update node 2024-10-19 06:13:24 -05:00
.github/workflows Update node 2024-10-19 06:13:24 -05:00
.vscode Add eslint workflow action and CONTRIBUTING.md that says to lint first 2024-02-17 20:16:00 -06:00
public Implemented PWA 2022-06-26 15:22:22 -05:00
saves Delete safff.txt 2022-04-01 01:08:33 -05:00
src Feature rewrite 2024-11-19 08:32:45 -06:00
tests Feature rewrite 2024-11-19 08:32:45 -06:00
.eslintignore Update eslint and prettier 2024-10-18 07:04:33 -05:00
.eslintrc.cjs Update eslint and prettier 2024-10-18 07:04:33 -05:00
.gitignore Create vue app 2021-05-19 17:21:51 -05:00
.prettierrc.json Fixing building / cleanup 2022-01-24 22:23:30 -06:00
.replit Fix settings to make replit work 2022-08-22 08:51:32 -05:00
CHANGELOG.md Version Bump 2024-03-29 00:49:58 -05:00
CONTRIBUTING.md PR Feedback 2024-02-20 22:17:01 -06:00
index.html Update vite dependencies 2024-10-18 07:00:46 -05:00
LICENSE Initial commit 2021-05-19 17:11:27 -05:00
package-lock.json Update node 2024-10-19 06:13:24 -05:00
package.json Add rollup for linux 2024-10-19 06:05:00 -05:00
README.md Remove lint from readme 2023-05-03 15:51:27 -05:00
replit.nix Added support for replit 2022-03-01 21:03:00 -06:00
tsconfig.json Update TS 2024-10-18 07:04:29 -05:00
vite.config.ts Update vite dependencies 2024-10-18 07:00:46 -05:00
vitest.config.ts Update vitest 2023-02-15 20:31:29 -06:00

Profectus

A game engine that grows with you

Run on Repl.it

Read the docs

Project setup

npm install

Hosts dev server and hot-reloads modules as they're changed

npm start

Compiles and minifies for production

npm run build

Hosts the production build

npm run preview

Runs the tests using vite-jest

npm run test