From 2d483c1a970cd353a275035032cc9211a9571810 Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 26 Dec 2021 21:41:33 +0000 Subject: [PATCH 1/5] added ci workflow action --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ab96992 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x, 16.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run lint + - run: npm run benchmark + - run: npm run test + - run: npm run build + - run: npm run build-demo From e553779dbce3d6577ed05bb87447c062f50d71cf Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 26 Dec 2021 21:57:37 +0000 Subject: [PATCH 2/5] remove travis config --- .travis.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fdb6065..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: node_js -sudo: false -node_js: - - "node" -install: - - npm ci -script: - - npm run lint - - npm run benchmark - - npm run test - - npm run build - - npm run build-demo \ No newline at end of file From 014ef77d1e30b44cb65098c0efc9c9d623a40496 Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 26 Dec 2021 21:57:51 +0000 Subject: [PATCH 3/5] increase test timeout --- test/Examples.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Examples.spec.js b/test/Examples.spec.js index fd30ca9..b1fb870 100644 --- a/test/Examples.spec.js +++ b/test/Examples.spec.js @@ -1,7 +1,7 @@ /* eslint-env es6 */ "use strict"; -jest.setTimeout(30 * 1000); +jest.setTimeout(2 * 60 * 1000); const fs = require('fs'); From 035481ce46623f20beeffa1c36defd4c1f05d7f6 Mon Sep 17 00:00:00 2001 From: liabru Date: Wed, 27 Jul 2022 15:36:41 +0100 Subject: [PATCH 4/5] added readme note about vue watchers --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 732f8f4..16840c9 100644 --- a/README.md +++ b/README.md @@ -124,9 +124,13 @@ Alternatively you can download a [stable release](https://github.com/liabru/matt -### Webpack +### Performance with other tools (e.g. Webpack, Vue etc.) -Some [webpack](https://webpack.js.org/) configs including the default may impact your project's performance during development, for a solution see [issue](https://github.com/liabru/matter-js/issues/1001). +Bundlers and frameworks may reduce real-time performance when using their default configs, especially in development modes. + +When using [Webpack](https://webpack.js.org/), the default sourcemap config can have a large impact, for a solution see [issue](https://github.com/liabru/matter-js/issues/1001). + +When using [Vue.js](https://vuejs.org/), watchers can have a large impact, for a solution see [issue](https://github.com/liabru/matter-js/issues/1001#issuecomment-998911435). ### Usage From 8ca9cb4fa4902b0c12f4ee350f18ec106775823c Mon Sep 17 00:00:00 2001 From: liabru Date: Sat, 6 Aug 2022 09:49:30 +0100 Subject: [PATCH 5/5] increase overlap test updates --- test/Examples.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Examples.spec.js b/test/Examples.spec.js index b1fb870..72899a1 100644 --- a/test/Examples.spec.js +++ b/test/Examples.spec.js @@ -41,7 +41,7 @@ const captureExamples = async useDev => { const overlapRuns = await Promise.all(examples.map(name => multiThreadWorker.runExample({ name, useDev, - updates: 1, + updates: 2, stableSort: true, jitter: excludeJitter.includes(name) ? 0 : 1e-10 })));