@tracsystems/blake3 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wasm/blake3.mjs +1 -1
- package/package.json +7 -3
- package/README.md +0 -20
package/dist/wasm/blake3.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tracsystems/blake3",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "make",
|
|
6
|
-
"test": "echo 0",
|
|
7
6
|
"clean": "make clean",
|
|
8
|
-
"build:docker": "docker build -t blake3-build . && docker run --rm -v $(pwd):/build blake3-build bash -c 'npm install && npm run build'"
|
|
7
|
+
"build:docker": "docker build -t blake3-build . && docker run --rm -v $(pwd):/build blake3-build bash -c 'npm install && npm run build'",
|
|
8
|
+
"test": "mocha \"test/**/*.test.js\""
|
|
9
9
|
},
|
|
10
10
|
"main": "dist/wasm/blake3.js",
|
|
11
11
|
"browser": "dist/wasm/blake3.js",
|
|
@@ -22,5 +22,9 @@
|
|
|
22
22
|
"printWidth": 100,
|
|
23
23
|
"singleQuote": true,
|
|
24
24
|
"trailingComma": "all"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"chai": "^5.2.1",
|
|
28
|
+
"mocha": "^11.7.1"
|
|
25
29
|
}
|
|
26
30
|
}
|
package/README.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
## Build
|
|
2
|
-
|
|
3
|
-
To build simply run `npm run build` which assumed you have `emcc` installed. The make file also assumed linux environment to execute the scripts. Alternatively, you can run via docker by executing `npm run build:docker`. The dist folder will be created with the artifacts. If that folder was built by docker, it will most likely retain permission on the docker user (the clean command, for example, may not work properly because of that).
|
|
4
|
-
|
|
5
|
-
## Pack
|
|
6
|
-
|
|
7
|
-
After building, `npm pack` will create a gziped tar with the artifact which can be, in turn, installed localy in any node project (or worker/bare) by running `npm install ${name_of_artifact}`.
|
|
8
|
-
|
|
9
|
-
## Test
|
|
10
|
-
|
|
11
|
-
After building, `npm run test` will run the unit tests.
|
|
12
|
-
|
|
13
|
-
## Release
|
|
14
|
-
|
|
15
|
-
To create a release, simply tag the current HEAD as `vx.x.x` e.g.: v0.0.2 and the push to the github remote. It is expected that the contents of [package.json](./package.json) will be aligned with the tag.
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
blake3$ git tag -a v0.0.1 -m "Release version 0.0.1"
|
|
19
|
-
blake3$ git push origin v0.0.1
|
|
20
|
-
```
|