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

Improve packaging strategy, native ES Modules, and browser-first builds #129

Merged
merged 143 commits into from
Dec 27, 2023

Conversation

justjake
Copy link
Owner

@justjake justjake commented Dec 24, 2023

This pull request re-organizes the project into a collection of seperate NPM packages in a monorepo structure:

  • packages/quickjs-emscripten - mostly backwards compatible all-in-one package.
  • packages/quickjs-emscrpten-core - just the Typescript code, should be 100% browser compatible.
  • packages/quickjs-browser-* - browser-compatible WebAssembly variants
  • packages/quickjs-node-* - node-compatible WebAssembly variants

Many tool changes / improvements:

  • Emscripten 3.1.50
  • Yarn 4
  • Mocha -> Vitest
  • Vastly simplified the Makefile situation, although now there's a "meta build system" that produces variant-specific makefiles from a template. The new setup is more maintainable, and should allow us to add new variants like quickjs-ng much more easily than the old system.

Fixes #121, #117, #96, #33

@justjake justjake merged commit 6f060af into main Dec 27, 2023
1 check passed
@justjake justjake deleted the jake--complicated-build-system branch December 27, 2023 11:12
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.

Module "fs", "path", and "crypto" have been externalized for browser compatibility
1 participant