Skip to content
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

🧪 dist server code bundle publishing #749

Closed
wants to merge 12 commits into from

Conversation

drewvolz
Copy link
Member

@drewvolz drewvolz commented May 26, 2024

Todo

  • GH action step to upload an artifact from the build
  • Add esbuild to actually bundle everything together
  • Either remove (thanks to Caddy) or find out how to patch --external:turndown as aliasing couldn't resolve
  • Check that the aliases for these work
    • lodash-es=lodash
    • jsdom=jsdom/lib/api.js
    • koa-router=koa-router/lib/router.js
  • Check that the bundle created is valid and usable

const files = readdirSync(BUNDLE_PATH, {recursive: true})
const imports = files
.filter((file) => file.endsWith('.js'))
.map((file) => `import '${join('../bundle', file)}'`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.map((file) => `import '${join('../bundle', file)}'`)
.map((file) => `import '${join('..', 'bundle', file)}'`)

@drewvolz
Copy link
Member Author

Closing in favor of discussion on approach in #750

@drewvolz drewvolz closed this May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants