Skip to content

@W-18471994 ci: web bundling #1189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2c837a6
feat: logger work in web environment
mshanemc May 13, 2025
72ed191
feat: lww and perf hooks work in web environment
mshanemc May 13, 2025
cb369aa
fix!: drop unused cnames method
mshanemc May 13, 2025
c083e13
feat: web-friendly file locks, injectable fs
mshanemc May 13, 2025
ffe8ab5
feat: bundle for browser
mshanemc May 15, 2025
07537b6
Merge remote-tracking branch 'origin/main' into sm/web-bundling
mshanemc May 15, 2025
b2ed800
chore: clean up logging
mshanemc May 15, 2025
e76dca2
chore: set debug back to normal
mshanemc May 15, 2025
80decfe
refactor: consolidate file locking behavior
mshanemc May 16, 2025
5e39af9
chore: missing return
mshanemc May 16, 2025
0d9f41d
ci: bundle script updates
mshanemc May 16, 2025
c98a0e3
chore: script fixes
mshanemc May 16, 2025
a92b4eb
ci: bundling scripts
mshanemc May 16, 2025
3ff0ff8
ci: copy web bundle first
mshanemc May 16, 2025
f4bc87f
ci: more bundling scripts
mshanemc May 16, 2025
b904042
feat: naive bundling with fewer scripts using text-replace plugin
mshanemc May 22, 2025
674954f
ci: files for bundle are only dist
mshanemc May 22, 2025
479d93d
ci: build d.ts from lib
mshanemc May 22, 2025
7043eae
refactor: import, then export to prevent duplicate d.ts generated
mshanemc May 22, 2025
cc71a6f
refactor: don't import from lib
mshanemc May 22, 2025
e73e674
refactor: pjson backup/restore are in scripts
mshanemc May 22, 2025
189e433
ci: web and node might run in parallel and collide on pjson moves
mshanemc May 22, 2025
9ce3eb6
chore: simplify scripts
mshanemc May 22, 2025
880d94b
Merge remote-tracking branch 'origin/main' into sm/web-bundling
mshanemc May 22, 2025
970b50e
ci: wireit output file fixes
mshanemc May 22, 2025
0af7b65
ci: try bundling again
mshanemc May 22, 2025
33502c2
chore: bump dev-scripts, handle undefined string in template literals
mshanemc May 23, 2025
cd3cbb0
ci: build then bundle
mshanemc May 23, 2025
a999c1f
ci: relative paths, compile
mshanemc May 23, 2025
660ed0d
ci: missing devDep
mshanemc May 23, 2025
565f5c9
refactor: globalThis for window check
mshanemc May 23, 2025
2f6f924
ci: also publish bundle for prereleases
mshanemc May 23, 2025
7544ea5
ci: export only referenced types
mshanemc May 23, 2025
c11791d
ci: d.ts rollup from lib
mshanemc May 23, 2025
2c70742
ci: attempt to add testetup export
mshanemc May 23, 2025
c229771
ci: ship testSetup
mshanemc May 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ jobs:
registry-url: 'https://registry.npmjs.org'
cache: yarn
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
- name: bundle for web
run: yarn bundle:web
- name: Update for Bundling
run: |
node scripts/updateForBundling.js
run: node scripts/updateForBundling.js
- name: Generate Bundle and Check if there is any dependency that needs to be externalized and is not in the whitelist.
run: |
node scripts/bundleWithCheck.js
run: node scripts/bundleWithCheck.js
- name: Post Bundling Update
run: |
node scripts/postBundlingUpdate.js
run: node scripts/postBundlingUpdate.js
8 changes: 4 additions & 4 deletions .github/workflows/esbuild-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ jobs:
registry-url: 'https://registry.npmjs.org'
cache: yarn
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
- name: bundle for web
run: yarn bundle:web
- name: Update for Bundling
run: |
node scripts/updateForBundling.js
run: node scripts/updateForBundling.js
- name: Generate Bundle
run: |
yarn build
node scripts/build.js
- name: Post Bundling Update
run: |
node scripts/postBundlingUpdate.js
run: node scripts/postBundlingUpdate.js
- name: Publish a Package
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ node_modules
/Library

.vscode/settings.json

# bundling outputs
tmp-lib
tmp-lib-web
Loading
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy