Skip to content

Commit 7895d2a

Browse files
authored
Merge pull request #1782 from polywrap/origin-0.10-dev
Origin 0.10 | /workflows/release-pr
2 parents b5d1d24 + f5fad02 commit 7895d2a

83 files changed

Lines changed: 1248 additions & 257 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/cd-containers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
github.event.pull_request.merged &&
1212
endsWith(github.event.pull_request.title, '/workflows/cd-containers') &&
1313
github.event.pull_request.user.login != 'polywrap-build-bot'
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v3
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI-Containers
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "packages/cli/src/lib/defaults/build-strategies/wasm/rust/vm/Dockerfile"
7+
- "packages/cli/src/lib/defaults/build-strategies/wasm/assemblyscript/vm/Dockerfile"
8+
9+
jobs:
10+
Build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v2
18+
19+
- name: Cache Image Directories
20+
run: |
21+
echo IMAGE_RS_VM_DIR=./packages/cli/src/lib/defaults/build-strategies/wasm/rust/vm >> $GITHUB_ENV
22+
echo IMAGE_AS_VM_DIR=./packages/cli/src/lib/defaults/build-strategies/wasm/assemblyscript/vm >> $GITHUB_ENV
23+
24+
- name: Build RS VM Image
25+
working-directory: ${{env.IMAGE_RS_VM_DIR}}
26+
run: |
27+
docker buildx build . --platform=linux/amd64,linux/arm64
28+
29+
- name: Build AS VM Image
30+
working-directory: ${{env.IMAGE_AS_VM_DIR}}
31+
run: |
32+
docker buildx build . --platform=linux/amd64,linux/arm64

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# Polywrap Origin (0.10.4)
2+
## Features
3+
**`polywrap` CLI:**
4+
* [PR-1735](https://github.com/polywrap/cli/pull/1735) **Add Docs Manifest & `polywrap docs init` Command**
5+
* The `polywrap.docs.yaml` manifest is used to add additional metadata to your wraps.
6+
* [PR-1776](https://github.com/polywrap/cli/pull/1776) **Add HTTP Headers To HTTP Deploy Module**
7+
* The `http` deploy module now supports the `headers` configuration property.
8+
9+
## Bugs
10+
**`polywrap` CLI:**
11+
* [PR-1773](https://github.com/polywrap/cli/pull/1773) **Don't Install `wasm-opt` Every `local` Rust Build**
12+
* The `local` strategy for rust wasm projects was unexpectedly installing `wasm-opt` every time it was run, leading to very long build times.
13+
14+
**`@polywrap/schema-bind`:**
15+
* [PR-1775](https://github.com/polywrap/cli/pull/1775) **Fix Python Plugin Bindings**
16+
* The wrap abi type `Bytes` can now be properly used within rust plugins.
17+
* [PR-1753](https://github.com/polywrap/cli/pull/1753) **Fix Python Plugin Bindings**
18+
119
# Polywrap Origin (0.10.3)
220
## Features
321
**`polywrap` CLI:**

CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Contributing
2+
Thank you for considering contributing to the Polywrap CLI! We welcome contributions from the community to help improve and enhance the project. Look through this repository's [issues](https://github.com/polywrap/cli/issues) to see what we're focused on solving.
3+
4+
## Pre-Requisites
5+
To be able to fully build and test all functionality within the CLI, you'll need the following programs installed:
6+
`nvm`
7+
`node`
8+
`yarn`
9+
`docker`
10+
`docker-compose`
11+
`cue`
12+
13+
## Installation
14+
15+
From the root directory, run `nvm install && nvm use` to install the correct version of Node.JS. Next, run `yarn` to install all dependencies for all packages.
16+
17+
## Build
18+
19+
Running `yarn build` from the root directory will build all packages. After this, if you'd like to rebuild an individual package you're making changes to, simply run `yarn build` within the specific `./packages/...` folder you're working in.
20+
21+
## Testing
22+
23+
Run `yarn test` from the root to test everything, and `yarn test` within a specific package folder to test just that package.
24+
25+
## Feedback and Discussions
26+
For questions, suggestions, or discussions, open an issue or create a discussion within the [Polywrap Discord](https://discord.polywrap.io).
27+
28+
Happy coding!

DEV_GUIDELINES.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,17 @@
1-
![Public Release Announcement](https://user-images.githubusercontent.com/5522128/177473887-2689cf25-7937-4620-8ca5-17620729a65d.png)
1+
![polywrap-banner](https://raw.githubusercontent.com/polywrap/branding/master/assets/banner.png)
22

3-
[**Polywrap**](https://polywrap.io/) is a developer tool that enables easy integration of Web3 protocols into any application. It makes it possible for applications on any platform, written in any language, to read and write data to Web3 protocols.
3+
**Polywrap** is a framework for developing software powered by Wraps. Wraps are software modules that are:
4+
* **Portable** - run in any environment
5+
* **Composable** - easily and safely call into one another
46

5-
# Getting Started
7+
We believe that the future of software will be driven by a multitude of highly-specialized, platform-agnostic modules rather than monoliths.
68

7-
Have questions or want to get involved? Join our community [Discord](https://discord.polywrap.io) or [open an issue](https://github.com/polywrap/monorepo/issues) on Github.
9+
## Getting Started
810

9-
For detailed information about Polywrap and the WRAP standard, visit our [developer documentation](https://docs.polywrap.io/).
11+
To get started using the Polywrap CLI, follow the [installation instructions](./packages/cli//README.md#installation).
1012

11-
# Contributing
13+
If you haven't already, checkout Polywrap's [developer documentation](https://docs.polywrap.io), where you'll find quick-starts & in-depth tutorials to help you accomplish your goals.
1214

13-
The Polywrap project is completely open-source and we welcome contributors of all levels.
14-
15-
Come visit our [Github issues](https://github.com/polywrap/monorepo/issues) to see the problems we're focused on solving. Here are some of our tags for issues and what they mean:
16-
17-
- `good first issue` - These are good first issues for newcomers to learn about how our project works
18-
19-
- `pri-0`, `pri-1` and `pri-2` - These are our priority issues, with `pri-0` being our highest priority and `pri-2` being lower.
20-
21-
- `alpha-blocker` - We're in pre-alpha right now and to get to alpha, we need to resolve all alpha blocker issues
22-
23-
- `beta-blocker` - After our alpha release, we'll start working towards releasing our beta! These are the blockers for us in reaching that milestone.
24-
25-
Below are a series of steps to get started with our monorepo after you've cloned it into your local repository.
26-
27-
Before contributing to this repository, please read the [developer guidelines](DEV_GUIDELINES.md).
28-
29-
## Pre-reqs
30-
31-
You'll need the following installed before building your wrapper:
32-
33-
`nvm`
34-
35-
`yarn`
36-
37-
`docker`
38-
39-
`docker-compose`
40-
41-
## Installation
42-
43-
To ensure all of your project's dependencies are installed, from inside your project's directory, simply run:
44-
45-
```
46-
nvm install && nvm use
47-
yarn
48-
```
49-
50-
## Build
51-
52-
Run the following to compile the monorepo:
53-
54-
`yarn build`
55-
56-
## Test
57-
58-
Run the following to test if the build worked:
59-
60-
```
61-
yarn test
62-
```
63-
64-
## Lint
65-
66-
To lint your project directory, run the following:
67-
68-
```
69-
yarn lint
70-
```
71-
72-
To auto-fix lint errors:
73-
74-
```
75-
yarn lint:fix
76-
```
77-
78-
# Resources
79-
- [Website](https://polywrap.io/)
80-
- [Documentation](https://docs.polywrap.io/)
81-
- [Forum](https://forum.polywrap.io/)
15+
## Contributing
8216

17+
If you're interested in contributing to this, or any Polywrap repository, checkout the [contributing guide](./CONTRIBUTING.md) as well as [join our Discord](https://discord.polywrap.io)!

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.10.3
1+
0.10.4

packages/cli/lang/en.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"commands_build_keypressListener_exit": "Exit: [CTRL + C], [ESC], or [Q]",
1515
"commands_build_keypressListener_watching": "Watching",
1616
"commands_build_options_h": "Show usage information",
17-
"commands_build_options_m": "Path to the Polywrap Build manifest file (default: {default})",
17+
"commands_build_options_m": "Path to the Polywrap manifest file (default: {default})",
1818
"commands_build_options_o": "Output directory for build results (default: {default})",
1919
"commands_build_options_o_path": "path",
2020
"commands_build_options_options": "options",
@@ -194,6 +194,13 @@
194194
"commands_manifest_formatError": "Unsupported manifest format. Please make sure that you have the 'format' field present in {fileName} with one of the following values: {values}",
195195
"commands_manifest_migrate_targetFormatError": "Unsupported target format. Supported formats: {formats}",
196196
"commands_manifest_projectTypeError": "Unsupported project type.",
197+
"commands_docs_description": "Documentation commands",
198+
"commands_docs_init_description": "Initialize wrap docs",
199+
"commands_docs_init_m_path": "path",
200+
"commands_docs_options_m": "Path to the Polywrap manifest file (default: {default})",
201+
"commands_docs_init_error_manifest_exists": "The {manifestFile} manifest already exists.",
202+
"commands_docs_init_warn_update_manifest": "Set the 'extensions.docs' property to {docsManifestFile} within your project's root manifest at {manifestFile}",
203+
"commands_docs_init_msg_manifest_created": "Written docs manifest to {manifestFile}",
197204
"lib_codeGenerator_genCodeError": "Failed to generate types",
198205
"lib_codeGenerator_genCodeText": "Generate types",
199206
"lib_codeGenerator_genCodeWarning": "Warnings while generating types",

packages/cli/lang/es.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"commands_build_keypressListener_exit": "Exit: [CTRL + C], [ESC], or [Q]",
1515
"commands_build_keypressListener_watching": "Watching",
1616
"commands_build_options_h": "Show usage information",
17-
"commands_build_options_m": "Path to the Polywrap Build manifest file (default: {default})",
17+
"commands_build_options_m": "Path to the Polywrap manifest file (default: {default})",
1818
"commands_build_options_o": "Output directory for build results (default: {default})",
1919
"commands_build_options_o_path": "path",
2020
"commands_build_options_options": "options",
@@ -116,11 +116,11 @@
116116
"commands_create_error_badUrl": "URL {url} uses an invalid format. Valid URL formats: {formats}",
117117
"commands_create_options_command": "command",
118118
"commands_create_options_commands": "Commands",
119-
"commands_create_options_createApp": "Create a Polywrap application",
120-
"commands_create_options_createPlugin": "Create a Polywrap plugin",
121-
"commands_create_options_createProject": "Create a Polywrap wasm wrapper",
119+
"commands_create_options_createApp": "Create a Polywrap application.",
120+
"commands_create_options_createPlugin": "Create a Polywrap plugin.",
121+
"commands_create_options_createProject": "Create a Polywrap wasm wrapper.",
122122
"commands_create_options_h": "Show usage information",
123-
"commands_create_options_t": "Download template from a .git URL",
123+
"commands_create_options_t": "Download template from a URL.",
124124
"commands_create_options_t_url": "URL",
125125
"commands_create_options_formats": "formats",
126126
"commands_create_options_lang": "lang",
@@ -194,6 +194,13 @@
194194
"commands_manifest_formatError": "Unsupported manifest format. Please make sure that you have the 'format' field present in {fileName} with one of the following values: {values}",
195195
"commands_manifest_migrate_targetFormatError": "Unsupported target format. Supported formats: {formats}",
196196
"commands_manifest_projectTypeError": "Unsupported project type.",
197+
"commands_docs_description": "Documentation commands",
198+
"commands_docs_init_description": "Initialize wrap docs",
199+
"commands_docs_init_m_path": "path",
200+
"commands_docs_options_m": "Path to the Polywrap manifest file (default: {default})",
201+
"commands_docs_init_error_manifest_exists": "The {manifestFile} manifest already exists.",
202+
"commands_docs_init_warn_update_manifest": "Set the 'extensions.docs' property to {docsManifestFile} within your project's root manifest at {manifestFile}",
203+
"commands_docs_init_msg_manifest_created": "Written docs manifest to {manifestFile}",
197204
"lib_codeGenerator_genCodeError": "Failed to generate types",
198205
"lib_codeGenerator_genCodeText": "Generate types",
199206
"lib_codeGenerator_genCodeWarning": "Warnings while generating types",

packages/cli/src/__tests__/e2e/build-rs.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { GetPathToCliTestFiles } from "@polywrap/test-cases";
44
import fs from "fs";
55
import path from "path";
66

7-
jest.setTimeout(1200000);
7+
jest.setTimeout(1500000);
88

99
describe("e2e tests for build command", () => {
1010
const testCaseRoot = path.join(GetPathToCliTestFiles(), "build-cmd/wasm/rust");

0 commit comments

Comments
 (0)