tinysearch icon indicating copy to clipboard operation
tinysearch copied to clipboard

Add an option to only generate the wasm

Open lord-re opened this issue 5 years ago • 1 comments

Now, each time you invoke tinysearch it create many files :

  • package.json
  • tinysearch_engine_bg.d.ts
  • tinysearch_engine_bg.wasm
  • tinysearch_engine.d.ts
  • tinysearch_engine.js

Generating (or cleaning every files except the wasm) only the wasm could be nice to integrate this process in an automated publish workflow.

Maybe another way to see it would be to only create the wasm by default, and an option to also generate the js, demo.html…

lord-re avatar Jul 02 '20 21:07 lord-re

Good point! I like that idea. There could be a tinysearch build, which only builds the wasm and a tinysearch init, which initializes the project and generates the other files, too. 🤔

mre avatar Jul 03 '20 06:07 mre

This is mostly done now in master thanks to https://github.com/tinysearch/tinysearch/pull/168. Release soon. Apologies for the delay.

mre avatar Jul 24 '23 13:07 mre