@vocdoni/proto 1.14.0 → 1.14.3
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/.github/workflows/post-merge.yml +3 -4
- package/Makefile +3 -2
- package/README.md +12 -0
- package/dist/client-store/index.js +307 -122
- package/dist/client-store/index.mjs +307 -122
- package/dist/{index-85137ec5.d.ts → index-8a98085c.d.ts} +187 -87
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1896 -754
- package/dist/index.mjs +1896 -754
- package/dist/metadata/index.js +605 -233
- package/dist/metadata/index.mjs +605 -233
- package/dist/vochain/index.d.ts +1 -1
- package/dist/vochain/index.js +1122 -434
- package/dist/vochain/index.mjs +1122 -434
- package/package.json +2 -2
- package/src/vocdoni-node/statedb.proto +2 -0
- package/src/vochain/vochain.proto +5 -3
|
@@ -11,16 +11,15 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
13
|
- name: Checkout code
|
|
14
|
-
uses: actions/checkout@
|
|
14
|
+
uses: actions/checkout@v3
|
|
15
15
|
- uses: dart-lang/setup-dart@v1
|
|
16
|
-
- uses: actions/setup-node@
|
|
16
|
+
- uses: actions/setup-node@v3
|
|
17
17
|
with:
|
|
18
18
|
node-version: "14"
|
|
19
|
-
- uses: actions/setup-go@
|
|
19
|
+
- uses: actions/setup-go@v3
|
|
20
20
|
- name: Build
|
|
21
21
|
run: |
|
|
22
22
|
make init
|
|
23
|
-
make dart
|
|
24
23
|
make golang
|
|
25
24
|
make ts
|
|
26
25
|
- name: Commit changes
|
package/Makefile
CHANGED
|
@@ -57,7 +57,8 @@ help:
|
|
|
57
57
|
## :
|
|
58
58
|
|
|
59
59
|
## init: Install external dependencies
|
|
60
|
-
init: protoc
|
|
60
|
+
init: protoc $(PROTOC_TS_PLUGIN) protoc-go-plugin
|
|
61
|
+
rm -Rf build
|
|
61
62
|
|
|
62
63
|
## clean: Remove the build artifacts
|
|
63
64
|
clean:
|
|
@@ -71,7 +72,7 @@ clean:
|
|
|
71
72
|
|
|
72
73
|
|
|
73
74
|
## all: Generate the source code for all supported languages
|
|
74
|
-
all: protoc build/
|
|
75
|
+
all: protoc build/ts build/go/models
|
|
75
76
|
|
|
76
77
|
## golang: Generate the Golang protobuf artifacts
|
|
77
78
|
golang: protoc protoc-go-plugin build/go/models
|
package/README.md
CHANGED
|
@@ -55,6 +55,18 @@ Then, run `make all` to build all the targets
|
|
|
55
55
|
+ Build JS/TS models: `make ts`
|
|
56
56
|
+ Build GoLang models: `make golang`
|
|
57
57
|
|
|
58
|
+
### Publishing a new npmjs version (ts/js)
|
|
59
|
+
|
|
60
|
+
For publishing a new release into npmjs, a github action has been created in
|
|
61
|
+
order to minimize the work. Just follow these steps:
|
|
62
|
+
|
|
63
|
+
- Do whatever changes you need to do in the `proto` files
|
|
64
|
+
- Update the version in the `package.json` file
|
|
65
|
+
- Commit the changes
|
|
66
|
+
- Create a new release & tag with the version number you used in `package.json`
|
|
67
|
+
|
|
68
|
+
The github action will take care of the rest.
|
|
69
|
+
|
|
58
70
|
## Artifacts
|
|
59
71
|
|
|
60
72
|
Import the files from:
|