Skip to content

Commit

Permalink
Add build via esbuild
Browse files Browse the repository at this point in the history
This configures the existing build tasks to use esbuild by default. If
using the plain files is desired, passing `--bundle=false` will build
using plain files and still produce a runnable system.

This is only a basic build; a more efficient build is provided later
when gulp is replaced by hereby.
  • Loading branch information
jakebailey committed Oct 25, 2022
1 parent ee65f9b commit 7fc6c57
Show file tree
Hide file tree
Showing 47 changed files with 958 additions and 412 deletions.
44 changes: 43 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ jobs:
- "*"
- lts/*
- lts/-1
bundle:
- "true"
include:
- node-version: "*"
bundle: "false"

name: Test Node ${{ matrix.node-version }} with --bundle=${{ matrix.bundle }}

steps:
- uses: actions/checkout@v3
Expand All @@ -32,7 +39,7 @@ jobs:
- run: npm ci

- name: Tests
run: npm test
run: npm run test -- --bundle=${{ matrix.bundle }}

lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -68,6 +75,21 @@ jobs:
- name: Validate the browser can import TypeScript
run: gulp test-browser-integration

typecheck:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "*"
check-latest: true
- run: npm ci

- name: Build src
run: npx hereby build-src


misc:
runs-on: ubuntu-latest

Expand All @@ -84,3 +106,23 @@ jobs:

- name: ESLint tests
run: gulp run-eslint-rules-tests

self-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "*"
check-latest: true
- run: npm ci

- name: Build tsc
run: gulp tsc

- name: Clean
run: gulp clean-src

- name: Self build
run: gulp build-src --built
Loading

0 comments on commit 7fc6c57

Please sign in to comment.