Skip to content

Commit 1b8d5fd

Browse files
committed
Install @vercel/ncc
Preparing for turning GitGitGadget into a bunch of GitHub Actions, we install `@vercel/ncc`, a 'simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.'. This will allow us to bundle a minimal set of Javascript files and publish the result via a tag, ready to be consumed in GitHub workflows. The idea is to run `ncc build -s -m lib/ci-helper.ts -o dist/` to obtain a minimized `dist/index.js` that has no additional dependencies, and then have subdirectories (e.g. `update-prs/`) defining a GitHub Action via an `action.yml` file and a `index.js` file that starts with the following line const { CIHelper } = require('../dist/index.js') This will allow us to publish a single tag that backs the various functionalities via different GitHub Actions, e.g: - uses: gitgitgadget/gitgitgadget/update-prs@v1 with: config: ${{ vars.GITGITGADGET_CONFIG }} Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 912f1dc commit 1b8d5fd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"@types/node": "^24.3.0",
5757
"@types/nodemailer": "^7.0.0",
5858
"@types/rfc2047": "^2.0.3",
59+
"@vercel/ncc": "^0.38.3",
5960
"eslint": "^9.33.0",
6061
"eslint-config-prettier": "^10.1.8",
6162
"eslint-plugin-jest": "^29.0.1",

0 commit comments

Comments
 (0)