diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5a2d131 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Build and Deploy +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/CHANGELOG.md b/CHANGELOG.md index eaa6d83..ecae588 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.2] - 2022-05-23 +### Added +- costModifier to conversions +- onConvert(amountGained) to conversions +### Changed +- **BREAKING** getFirstFeature has a new signature, that will lead to improved performance +- trackResetTime is now intended to be used with a reset button +- regularFormat handles small numbers better +- Slider tooltips now appear below the slider, not above +- Node's mutation observers now ignore attributes. This shouldn't have issues with links/particle effect positions, but prevents a _lot_ of unnecessary node updates +- OptionsFunc no longer takes its S type parameter, as it was unnecessary. Layer options functions now have proper `this` typing + - Several functions have been updated to take BaseLayer instead of GenericLayer, to allow them to work with `this` inside layer options functions +### Fixed +- Particle effects and links would not always appear on reload or when switching layers +- Particle effects and links no longer appear in wrong spot after nodes are added or removed +- Collapsibles having wrong widths on the button and collapsed content sections +- Additive modifiers with negative values appeared like "+-" instead of "-" +- Buyables' onPurchase was not being called +- Reset button would display "Next:" if the buyMax property is a ref + ## [0.4.1] - 2022-05-10 ### Added - findFeatures can now accept multiple feature types diff --git a/README.md b/README.md index 738d83d..ca5a378 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ A game engine that grows with you npm install ``` -### Compiles and hot-reloads for development +### Hosts dev server and hot-reloads modules as they're changed ``` -npm run serve +npm starts ``` ### Compiles and minifies for production @@ -21,6 +21,11 @@ npm run serve npm run build ``` +### Hosts the production build +``` +npm run preview +``` + ### Lints and fixes files ``` npm run lint diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index af9d407..0000000 --- a/babel.config.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = { - presets: ["@vue/cli-plugin-babel/preset"], - plugins: [ - [ - "module:@jetblack/operator-overloading", - { - enabled: true - } - ], - "@vue/babel-plugin-jsx" - ] -}; diff --git a/public/index.html b/index.html similarity index 60% rename from public/index.html rename to index.html index 364db67..f5827fd 100644 --- a/public/index.html +++ b/index.html @@ -12,18 +12,19 @@ - - - + + + -