mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 17:44:59 +09:00
Shared library for Anytype clients
https://anytype.io
|
||
---|---|---|
.circleci | ||
build | ||
core | ||
dist | ||
docs | ||
jsaddon | ||
lib | ||
pb | ||
.gitattributes | ||
.gitignore | ||
go.mod | ||
go.sum | ||
Makefile | ||
package.json | ||
README.md |
Anytype Middleware Library
How to build
- Install Golang 1.12.* from here
make setup
to install depsmake build-lib
to build C(.so
) library intodist
foldermake build-js
to build NodeJS Addon intojsaddon/build
npm install & npm build:ts
to compile proto files for TS/JS tobuild/ts
Rebuild proto files
This repo uses custom protoc plugin located at anytypeio/protobuf/protoc-gen-gogo/gomobile. So make sure you have installed it:
make setup-protoc
Then you can easily regenerate proto files:
make protos
Run tests
GO test:
make test
NodeJS addon test:
cd jsaddon
npm run test