Skip to content

Commit ff716c1

Browse files
authored
Merge pull request #12 from eshaz/update-deps
Update Dependencies
2 parents 593c38d + 9610bd6 commit ff716c1

14 files changed

+1440
-1052
lines changed

README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* [Options](#options)
1616
* [Methods](#methods)
1717
* [Types](#types)
18+
* [Developing](#developing)
1819

1920
## Installing
2021

@@ -304,4 +305,22 @@ declare interface MultipleClipMatch {
304305
* Correlation coefficient between the previous clip and this cli
305306
* Ranging from -1 (worst) to 1 (best)
306307
* `sampleOffset`
307-
* Number of samples relative to the root clip (first clip in the match)
308+
* Number of samples relative to the root clip (first clip in the match)
309+
310+
311+
## Developing
312+
313+
### Prerequisites
314+
1. Install Emscripten by following these [instructions](https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html#installation-instructions).
315+
* This repository has been tested with Emscripten 3.1.46.
316+
317+
### Building
318+
1. Make sure to `source` the Emscripten path in the terminal you want build in.
319+
* i.e. `$ source path/to/emsdk/emsdk_env.sh`
320+
1. Run `npm i` to install the dependencies.
321+
1. Run `make clean` and `make` to build the libraries.
322+
* You can run `make -j8` where `8` is the number of CPU cores on your system to speed up the build.
323+
1. The builds will be located in the `dist` folder.
324+
325+
### Testing
326+
1. Run `npm run test` to run the test suite.

build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const build = async (simdPath, scalarPath) => {
5050
scalarWasm,
5151
scalarContent.groups.end,
5252
synAudio.substring(scalarEnd),
53-
].map(Buffer.from)
53+
].map(Buffer.from),
5454
);
5555

5656
await fs.writeFile(synAudioPath, finalString, { encoding: "binary" });
@@ -76,7 +76,7 @@ const build = async (simdPath, scalarPath) => {
7676
// terser
7777
const minified = await minify(
7878
{ [bundleOutput.fileName]: bundleOutput.code },
79-
terserConfig
79+
terserConfig,
8080
);
8181

8282
// write output files

0 commit comments

Comments
 (0)