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

Add support lite build (down to 20MB) #40

Merged
merged 19 commits into from
May 5, 2021

Conversation

gkjohnson
Copy link
Contributor

@gkjohnson gkjohnson commented May 5, 2021

Fix #34
Fix #39

  • Add "type" option to init to dictate the compiled version of SPICE to use
  • Dynamically load the cspice modules in "init" rather than when loading "Spice.js"
  • Update README with updated info and documentation on the "lite" version of the SPICE module
  • Move cspice.js to src/cspice/asm_full.js
  • Switch the package over to use "type: module" in the package.json
  • Added "lite" CSPICE version to src/cspice/asm_lite.js
  • Adjust generation script to include support for CSPICE lite
  • Add link to internal repo containing modified CSPICE lite code.
  • Change package.json version to "alpha4"
  • Add "prepublishOnly" script for publishing to npm

TODO

  • Add documentation on building the "lite" version of CSPICE (internal only)
  • Build "lite" CSPICE version to src/cspice/asm_lite.js
  • Adjust the generate script (or make a second one) to write out a second "lite" version of CSPICE
  • Switch the generation script over to use ".mjs" extension when building with emscripten to avoid node.js module issues (no __dirname available)

cc @camargo

@gkjohnson gkjohnson changed the title Add support lite build Add support lite build (down to 20MB) May 5, 2021
Copy link
Member

@camargo camargo left a comment

Choose a reason for hiding this comment

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

Thanks so much @gkjohnson!!

@camargo camargo merged commit 07128b5 into NASA-AMMOS:master May 5, 2021
@gkjohnson gkjohnson deleted the support-lite-build branch May 5, 2021 18:29
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.

Create "thin" memory footprint version of CSpice Add multiple CSpice build options
2 participants