Skip to content

Commit

Permalink
fix: update project config
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jul 28, 2022
1 parent c9291e0 commit 3199131
Show file tree
Hide file tree
Showing 9 changed files with 148 additions and 41 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ updates:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
commit-message:
prefix: "deps"
prefix-development: "deps(dev)"
43 changes: 36 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
# protons
# protons <!-- omit in toc -->

[![test & maybe release](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml/badge.svg)](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml)
[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)
[![codecov](https://img.shields.io/codecov/c/github/ipfs/protons.svg?style=flat-square)](https://codecov.io/gh/ipfs/protons)
[![CI](https://img.shields.io/github/workflow/status/ipfs/protons/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml)

> `.proto` to `.ts` transpiler
> Protobuf to ts transpiler
## Table of contents <!-- omit in toc -->

- [Structure](#structure)
- [Packages](#packages)
- [Contribute](#contribute)
- [License](#license)
- [Contribute](#contribute-1)

## Structure

- [`/packages/protons`](./packages/protons) Protobuf to ts transpiler
- [`/packages/protons-benchmark`](./packages/protons-benchmark) Protobuf to ts transpiler
- [`/packages/protons-runtime`](./packages/protons-runtime) Shared code to make your bundle smaller when running protons in your app

Transpiles `.proto` files to `.ts` - uses `Uint8Array` for `byte` fields and `BigInt` for `int64`/`uint64` and `sint64`.

## Packages

* [`/packages/protons`](./packages/protons) The transpiler
* [`/packages/protons-benchmark`](./packages/protons-benchmark) A benchmark suite
* [`/packages/protons-runtime`](./packages/protons-runtime) Shared components that turn values to bytes and back again
- [`/packages/protons`](./packages/protons) The transpiler
- [`/packages/protons-benchmark`](./packages/protons-benchmark) A benchmark suite
- [`/packages/protons-runtime`](./packages/protons-runtime) Shared components that turn values to bytes and back again

## Contribute

Expand All @@ -22,4 +40,15 @@ This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/c

## License

[Apache-2.0](LICENSE-APACHE) or [MIT](LICENSE-MIT) © Protocol Labs
Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-unixfs-importer/issues)!

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)
31 changes: 27 additions & 4 deletions packages/protons-benchmark/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
# protons-benchmark <!-- omit in toc -->

> Benchmark protons against other protobuf modules
[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)
[![codecov](https://img.shields.io/codecov/c/github/ipfs/protons.svg?style=flat-square)](https://codecov.io/gh/ipfs/protons)
[![CI](https://img.shields.io/github/workflow/status/ipfs/protons/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml)

> Protobuf to ts transpiler
## Table of contents <!-- omit in toc -->

- [Install](#install)
- [Usage](#usage)
- [License](#license)
- [Contribute](#contribute)

## Install

- Clone the parent repo
- Install the deps
- Switch to the benchmark directory
```console
$ npm i protons-benchmark
```

```console
$ git clone git@github.com:ipfs/protons.git
Expand Down Expand Up @@ -43,3 +51,18 @@ Finished 3 cases!
Fastest: protobufjs
Slowest: protons
```

## License

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-unixfs-importer/issues)!

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)
8 changes: 4 additions & 4 deletions packages/protons-benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
],
"exports": {
".": {
"import": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
},
"./status": {
"import": "./dist/src/status.js",
"types": "./dist/src/status.d.ts"
"types": "./dist/src/status.d.ts",
"import": "./dist/src/status.js"
}
},
"eslintConfig": {
Expand Down
3 changes: 3 additions & 0 deletions packages/protons-benchmark/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"references": [
{
"path": "../protons"
},
{
"path": "../protons-runtime"
}
]
}
35 changes: 29 additions & 6 deletions packages/protons-runtime/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
# protons-runtime <!-- omit in toc -->

[![test & maybe release](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml/badge.svg)](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml)
[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)
[![codecov](https://img.shields.io/codecov/c/github/ipfs/protons.svg?style=flat-square)](https://codecov.io/gh/ipfs/protons)
[![CI](https://img.shields.io/github/workflow/status/ipfs/protons/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml)

> Shared components that turn values to bytes and back again
> Shared code to make your bundle smaller when running protons in your app
Contains shared code to reduce code duplication between modules transpiled by protons.

## Table of contents <!-- omit in toc -->
## Table of contents <!-- omit in toc -->

- [Install](#install)
- [Contribute](#contribute)
- [License](#license)
- [Contribute](#contribute-1)

## Install

```console
$ npm i protons-runtime
```

Contains shared code to reduce code duplication between modules transpiled by protons.

## Contribute

Expand All @@ -21,4 +33,15 @@ This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/c

## License

[Apache-2.0](LICENSE-APACHE) or [MIT](LICENSE-MIT) © Protocol Labs
Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-unixfs-importer/issues)!

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)
20 changes: 12 additions & 8 deletions packages/protons-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
],
"exports": {
".": {
"import": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
},
"./status": {
"import": "./dist/src/status.js",
"types": "./dist/src/status.d.ts"
"types": "./dist/src/status.d.ts",
"import": "./dist/src/status.js"
}
},
"eslintConfig": {
Expand Down Expand Up @@ -82,15 +82,15 @@
"release": "patch"
},
{
"type": "chore",
"type": "docs",
"release": "patch"
},
{
"type": "docs",
"type": "test",
"release": "patch"
},
{
"type": "test",
"type": "deps",
"release": "patch"
},
{
Expand Down Expand Up @@ -120,7 +120,11 @@
},
{
"type": "docs",
"section": "Trivial Changes"
"section": "Documentation"
},
{
"type": "deps",
"section": "Dependencies"
},
{
"type": "test",
Expand Down
26 changes: 22 additions & 4 deletions packages/protons/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# protons <!-- omit in toc -->

[![test & maybe release](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml/badge.svg)](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml)
[![ipfs.io](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io)
[![IRC](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Discord](https://img.shields.io/discord/806902334369824788?style=flat-square)](https://discord.gg/ipfs)
[![codecov](https://img.shields.io/codecov/c/github/ipfs/protons.svg?style=flat-square)](https://codecov.io/gh/ipfs/protons)
[![CI](https://img.shields.io/github/workflow/status/ipfs/protons/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/ipfs/protons/actions/workflows/js-test-and-release.yml)

> Generate typescript from .proto files
> Protobuf to ts transpiler
## Table of contents <!-- omit in toc -->

- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)
- [Contribute](#contribute-1)

## Install

To use this project, add `protons` as a development dependency and `protons-runtime` as a runtime dependency.
```console
$ npm i protons
```

`protons` contains the code to compile `.proto` files to `.ts` files and `protons-runtime` contains the code to do serialization/deserialization to `Uint8Array`s during application execution.

Expand Down Expand Up @@ -62,4 +69,15 @@ This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/c

## License

[Apache-2.0](LICENSE-APACHE) or [MIT](LICENSE-MIT) © Protocol Labs
Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

## Contribute

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs/js-ipfs-unixfs-importer/issues)!

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md)
20 changes: 12 additions & 8 deletions packages/protons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
],
"exports": {
".": {
"import": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
},
"./status": {
"import": "./dist/src/status.js",
"types": "./dist/src/status.d.ts"
"types": "./dist/src/status.d.ts",
"import": "./dist/src/status.js"
}
},
"eslintConfig": {
Expand Down Expand Up @@ -85,15 +85,15 @@
"release": "patch"
},
{
"type": "chore",
"type": "docs",
"release": "patch"
},
{
"type": "docs",
"type": "test",
"release": "patch"
},
{
"type": "test",
"type": "deps",
"release": "patch"
},
{
Expand Down Expand Up @@ -123,7 +123,11 @@
},
{
"type": "docs",
"section": "Trivial Changes"
"section": "Documentation"
},
{
"type": "deps",
"section": "Dependencies"
},
{
"type": "test",
Expand Down

0 comments on commit 3199131

Please sign in to comment.