From c1241311f3dc7c6f60a845615ffeae2e0d7ab66f Mon Sep 17 00:00:00 2001 From: mister-ben Date: Mon, 10 Jul 2023 22:50:31 +0200 Subject: [PATCH 1/2] size workflow test --- .github/workflows/size.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/size.yml diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml new file mode 100644 index 0000000000..a791a795ac --- /dev/null +++ b/.github/workflows/size.yml @@ -0,0 +1,24 @@ +name: Package Size Report + +on: + pull_request: + branches: [ main, main-test ] # ⬅ Add other branches you want size checks on + +jobs: + pkg-size-report: + name: Package Size Report + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' # ⬅ Specify a version of Node.js to build your app + + - name: Package size report + uses: pkg-size/action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 28c359cb9e9b3001b98d1c3b5327c06b88d28a94 Mon Sep 17 00:00:00 2001 From: mister-ben Date: Mon, 10 Jul 2023 22:54:43 +0200 Subject: [PATCH 2/2] a small change --- src/js/button.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/js/button.js b/src/js/button.js index 33eb9f5966..30d5d689d7 100644 --- a/src/js/button.js +++ b/src/js/button.js @@ -56,9 +56,18 @@ class Button extends ClickableComponent { this.createControlTextEl(el); + log(this.blah(47)); + return el; } + blah(thing) { + const a = 'asdfkjahfd;kajf;akjds;fakdsgja;'; + const y = a.length; + + return y * thing; + } + /** * Add a child `Component` inside of this `Button`. *