Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
dd94341
docs manifest and build output
pileks Apr 27, 2023
958bac5
Merge remote-tracking branch 'origin/origin-dev' into pileks/feat/doc…
pileks Apr 27, 2023
74616e5
fix project manifest migration
pileks Apr 27, 2023
77b61c8
change docs manifest pages to be a map
pileks May 4, 2023
87fa3ff
docs manifest - examples
pileks May 5, 2023
a8c264e
docs manifest - fix logo filename
pileks May 6, 2023
addd3ca
Merge remote-tracking branch 'origin/origin-dev' into pileks/feat/doc…
pileks May 9, 2023
2595f56
lint
pileks May 9, 2023
79c0ab1
Merge pull request #1752 from polywrap/origin-0.10-dev
dOrgJelli May 10, 2023
7faa03f
fix up test cases
pileks May 10, 2023
8e3484b
Merge remote-tracking branch 'origin/origin-dev' into pileks/feat/doc…
pileks May 10, 2023
1249e01
fix help text
pileks May 10, 2023
da220ea
retrigger checks
pileks May 11, 2023
22fa75b
fix: python bindings
Niraj-Kamdar May 12, 2023
512ae48
fix:add supported plugin langs in the help
Niraj-Kamdar May 12, 2023
9d83258
CLI - docs init command
pileks May 12, 2023
5433893
test cases, default docs dir
pileks May 15, 2023
f410b02
chore: try increasing the timeout for rust build
Niraj-Kamdar May 15, 2023
ec3a0be
fix package.json in CLI
pileks May 15, 2023
f606aad
update jest timeout for infra test
pileks May 16, 2023
b04308a
Merge remote-tracking branch 'origin/pileks/feat/docs-manifest' into …
pileks May 16, 2023
5fa0363
add docs command to cli-js
pileks May 16, 2023
ffddc61
added plugin manifest 0.4.0
krisbitney May 17, 2023
4c10a27
updated polywrap.yaml versions to 0.4.0 in test cases
krisbitney May 17, 2023
09d4b6d
updated polywrap.plugin.yaml and polywrap.app.yaml versions to 0.4.0
krisbitney May 17, 2023
a9aa0cc
using cargo version of wasm opt instead of npx
nerfZael May 29, 2023
d3427d8
(feat): added annotation if Scalar type value is Bytes
namesty May 30, 2023
2328387
(chore): bytes types now annotated with serde_bytes
namesty May 30, 2023
ce780f4
added http deployment of redirect and added headers to http deployer …
nerfZael May 30, 2023
4a3799b
CLI - Fix up docs command tests
pileks May 31, 2023
489a64e
Add basic docs init command test
pileks Jun 8, 2023
db74ef5
Update help text in tests
pileks Jun 8, 2023
490a0f9
add website and github repo links to docs manifest
pileks Jun 8, 2023
6461469
Merge remote-tracking branch 'origin/pileks/feat/docs-manifest' into …
pileks Jun 8, 2023
6b46f9c
chore: update root README
dOrgJelli Jun 8, 2023
e2cb084
Merge pull request #1778 from polywrap/updated-README
dOrgJelli Jun 8, 2023
1a46cb7
Merge pull request #1775 from polywrap/namesty/byte-bindings
dOrgJelli Jun 15, 2023
cd36ead
Merge pull request #1753 from Niraj-Kamdar/nk/fix-py-bind
dOrgJelli Jun 15, 2023
3ee78c0
chore: update all rust build scripts to use cargo-based wasm-opt
dOrgJelli Jun 15, 2023
aedd152
chore: add support for 'file' uri authority in deploy modules
dOrgJelli Jun 15, 2023
de421e1
Merge pull request #1776 from polywrap/nerfzael-add-redirect-deployme…
dOrgJelli Jun 15, 2023
38283c0
Merge pull request #1773 from polywrap/nefzael-use-cargo-wasm-opt
dOrgJelli Jun 15, 2023
9b9abd0
chore: change rust vm docker image install order
dOrgJelli Jun 16, 2023
34211c6
feat: add ci-containers workflow
dOrgJelli Jun 16, 2023
3aa6f3a
chore: remove cargo-build-deps from rust vm
dOrgJelli Jun 16, 2023
0af817d
feat: upgrade rust version to 1.70 in build images
dOrgJelli Jun 16, 2023
f0e3369
testing: separate platform targets
dOrgJelli Jun 16, 2023
687d63c
chore: remove wasm-opt from arm build
dOrgJelli Jun 16, 2023
cfc0133
chore: no cache
dOrgJelli Jun 16, 2023
005d951
chore: checkout the right branch -.-
dOrgJelli Jun 16, 2023
13b651a
chore: add back wasm-opt
dOrgJelli Jun 16, 2023
49a9472
chore: update wasm-opt installation
dOrgJelli Jun 17, 2023
b975f17
chore: add .bashrc file
dOrgJelli Jun 17, 2023
01386fd
chore: load bashrc
dOrgJelli Jun 17, 2023
213778a
chore: update node & npm installation
dOrgJelli Jun 17, 2023
207628e
chore: fix wasm-opt download
dOrgJelli Jun 17, 2023
0a6ff2b
chore: set vm-rs version
dOrgJelli Jun 17, 2023
55e8a7d
Merge pull request #1779 from polywrap/fix-vm-rust-docker-image
dOrgJelli Jun 17, 2023
9f1fb1d
Merge remote-tracking branch 'origin/origin-dev' into pileks/feat/doc…
pileks Jun 17, 2023
b0791fb
align docs manifest with wrapscan
pileks Jun 17, 2023
96d7caf
remove latest plugin and app manifests - superfluous
pileks Jun 17, 2023
4d42793
docs manifest examples - make uri optional
pileks Jun 17, 2023
7d1b5fe
fix test case
pileks Jun 17, 2023
5606541
Merge remote-tracking branch 'origin/pileks/feat/docs-manifest' into …
pileks Jun 17, 2023
0bbc54b
docs init - update according to wrap manifest
pileks Jun 17, 2023
ea6e6ce
chore: prep 0.10.4
dOrgJelli Jun 18, 2023
6176f3f
Merge pull request #1769 from polywrap/pileks/feat/cli-docs-init-command
dOrgJelli Jun 18, 2023
2833959
chore: polywrap docs init command simplification
dOrgJelli Jun 19, 2023
7ac5b09
chore: lint fix
dOrgJelli Jun 19, 2023
e1b220f
chore: remove doc template
dOrgJelli Jun 19, 2023
d4f93a7
chore: fix nits
dOrgJelli Jun 19, 2023
e6d5f55
Merge pull request #1735 from polywrap/pileks/feat/docs-manifest
dOrgJelli Jun 19, 2023
47dc35d
Merge pull request #1780 from polywrap/prep-0.10.4
dOrgJelli Jun 19, 2023
aee0c2e
chore: update CHANGELOG
dOrgJelli Jun 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cd-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
github.event.pull_request.merged &&
endsWith(github.event.pull_request.title, '/workflows/cd-containers') &&
github.event.pull_request.user.login != 'polywrap-build-bot'
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/ci-containers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI-Containers

on:
pull_request:
paths:
- "packages/cli/src/lib/defaults/build-strategies/wasm/rust/vm/Dockerfile"
- "packages/cli/src/lib/defaults/build-strategies/wasm/assemblyscript/vm/Dockerfile"

jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Cache Image Directories
run: |
echo IMAGE_RS_VM_DIR=./packages/cli/src/lib/defaults/build-strategies/wasm/rust/vm >> $GITHUB_ENV
echo IMAGE_AS_VM_DIR=./packages/cli/src/lib/defaults/build-strategies/wasm/assemblyscript/vm >> $GITHUB_ENV

- name: Build RS VM Image
working-directory: ${{env.IMAGE_RS_VM_DIR}}
run: |
docker buildx build . --platform=linux/amd64,linux/arm64

- name: Build AS VM Image
working-directory: ${{env.IMAGE_AS_VM_DIR}}
run: |
docker buildx build . --platform=linux/amd64,linux/arm64
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Polywrap Origin (0.10.4)
## Features
**`polywrap` CLI:**
* [PR-1735](https://github.com/polywrap/cli/pull/1735) **Add Docs Manifest & `polywrap docs init` Command**
* The `polywrap.docs.yaml` manifest is used to add additional metadata to your wraps.
* [PR-1776](https://github.com/polywrap/cli/pull/1776) **Add HTTP Headers To HTTP Deploy Module**
* The `http` deploy module now supports the `headers` configuration property.

## Bugs
**`polywrap` CLI:**
* [PR-1773](https://github.com/polywrap/cli/pull/1773) **Don't Install `wasm-opt` Every `local` Rust Build**
* The `local` strategy for rust wasm projects was unexpectedly installing `wasm-opt` every time it was run, leading to very long build times.

**`@polywrap/schema-bind`:**
* [PR-1775](https://github.com/polywrap/cli/pull/1775) **Fix Python Plugin Bindings**
* The wrap abi type `Bytes` can now be properly used within rust plugins.
* [PR-1753](https://github.com/polywrap/cli/pull/1753) **Fix Python Plugin Bindings**

# Polywrap Origin (0.10.3)
## Features
**`polywrap` CLI:**
Expand Down
28 changes: 28 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Contributing
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.

## Pre-Requisites
To be able to fully build and test all functionality within the CLI, you'll need the following programs installed:
`nvm`
`node`
`yarn`
`docker`
`docker-compose`
`cue`

## Installation

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.

## Build

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.

## Testing

Run `yarn test` from the root to test everything, and `yarn test` within a specific package folder to test just that package.

## Feedback and Discussions
For questions, suggestions, or discussions, open an issue or create a discussion within the [Polywrap Discord](https://discord.polywrap.io).

Happy coding!
55 changes: 0 additions & 55 deletions DEV_GUIDELINES.md

This file was deleted.

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

[**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.
**Polywrap** is a framework for developing software powered by Wraps. Wraps are software modules that are:
* **Portable** - run in any environment
* **Composable** - easily and safely call into one another

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

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.
## Getting Started

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

# Contributing
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.

The Polywrap project is completely open-source and we welcome contributors of all levels.

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:

- `good first issue` - These are good first issues for newcomers to learn about how our project works

- `pri-0`, `pri-1` and `pri-2` - These are our priority issues, with `pri-0` being our highest priority and `pri-2` being lower.

- `alpha-blocker` - We're in pre-alpha right now and to get to alpha, we need to resolve all alpha blocker issues

- `beta-blocker` - After our alpha release, we'll start working towards releasing our beta! These are the blockers for us in reaching that milestone.

Below are a series of steps to get started with our monorepo after you've cloned it into your local repository.

Before contributing to this repository, please read the [developer guidelines](DEV_GUIDELINES.md).

## Pre-reqs

You'll need the following installed before building your wrapper:

`nvm`

`yarn`

`docker`

`docker-compose`

## Installation

To ensure all of your project's dependencies are installed, from inside your project's directory, simply run:

```
nvm install && nvm use
yarn
```

## Build

Run the following to compile the monorepo:

`yarn build`

## Test

Run the following to test if the build worked:

```
yarn test
```

## Lint

To lint your project directory, run the following:

```
yarn lint
```

To auto-fix lint errors:

```
yarn lint:fix
```

# Resources
- [Website](https://polywrap.io/)
- [Documentation](https://docs.polywrap.io/)
- [Forum](https://forum.polywrap.io/)
## Contributing

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)!
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.3
0.10.4
9 changes: 8 additions & 1 deletion packages/cli/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"commands_build_keypressListener_exit": "Exit: [CTRL + C], [ESC], or [Q]",
"commands_build_keypressListener_watching": "Watching",
"commands_build_options_h": "Show usage information",
"commands_build_options_m": "Path to the Polywrap Build manifest file (default: {default})",
"commands_build_options_m": "Path to the Polywrap manifest file (default: {default})",
"commands_build_options_o": "Output directory for build results (default: {default})",
"commands_build_options_o_path": "path",
"commands_build_options_options": "options",
Expand Down Expand Up @@ -194,6 +194,13 @@
"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}",
"commands_manifest_migrate_targetFormatError": "Unsupported target format. Supported formats: {formats}",
"commands_manifest_projectTypeError": "Unsupported project type.",
"commands_docs_description": "Documentation commands",
"commands_docs_init_description": "Initialize wrap docs",
"commands_docs_init_m_path": "path",
"commands_docs_options_m": "Path to the Polywrap manifest file (default: {default})",
"commands_docs_init_error_manifest_exists": "The {manifestFile} manifest already exists.",
"commands_docs_init_warn_update_manifest": "Set the 'extensions.docs' property to {docsManifestFile} within your project's root manifest at {manifestFile}",
"commands_docs_init_msg_manifest_created": "Written docs manifest to {manifestFile}",
"lib_codeGenerator_genCodeError": "Failed to generate types",
"lib_codeGenerator_genCodeText": "Generate types",
"lib_codeGenerator_genCodeWarning": "Warnings while generating types",
Expand Down
17 changes: 12 additions & 5 deletions packages/cli/lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"commands_build_keypressListener_exit": "Exit: [CTRL + C], [ESC], or [Q]",
"commands_build_keypressListener_watching": "Watching",
"commands_build_options_h": "Show usage information",
"commands_build_options_m": "Path to the Polywrap Build manifest file (default: {default})",
"commands_build_options_m": "Path to the Polywrap manifest file (default: {default})",
"commands_build_options_o": "Output directory for build results (default: {default})",
"commands_build_options_o_path": "path",
"commands_build_options_options": "options",
Expand Down Expand Up @@ -116,11 +116,11 @@
"commands_create_error_badUrl": "URL {url} uses an invalid format. Valid URL formats: {formats}",
"commands_create_options_command": "command",
"commands_create_options_commands": "Commands",
"commands_create_options_createApp": "Create a Polywrap application",
"commands_create_options_createPlugin": "Create a Polywrap plugin",
"commands_create_options_createProject": "Create a Polywrap wasm wrapper",
"commands_create_options_createApp": "Create a Polywrap application.",
"commands_create_options_createPlugin": "Create a Polywrap plugin.",
"commands_create_options_createProject": "Create a Polywrap wasm wrapper.",
"commands_create_options_h": "Show usage information",
"commands_create_options_t": "Download template from a .git URL",
"commands_create_options_t": "Download template from a URL.",
"commands_create_options_t_url": "URL",
"commands_create_options_formats": "formats",
"commands_create_options_lang": "lang",
Expand Down Expand Up @@ -194,6 +194,13 @@
"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}",
"commands_manifest_migrate_targetFormatError": "Unsupported target format. Supported formats: {formats}",
"commands_manifest_projectTypeError": "Unsupported project type.",
"commands_docs_description": "Documentation commands",
"commands_docs_init_description": "Initialize wrap docs",
"commands_docs_init_m_path": "path",
"commands_docs_options_m": "Path to the Polywrap manifest file (default: {default})",
"commands_docs_init_error_manifest_exists": "The {manifestFile} manifest already exists.",
"commands_docs_init_warn_update_manifest": "Set the 'extensions.docs' property to {docsManifestFile} within your project's root manifest at {manifestFile}",
"commands_docs_init_msg_manifest_created": "Written docs manifest to {manifestFile}",
"lib_codeGenerator_genCodeError": "Failed to generate types",
"lib_codeGenerator_genCodeText": "Generate types",
"lib_codeGenerator_genCodeWarning": "Warnings while generating types",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/__tests__/e2e/build-rs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GetPathToCliTestFiles } from "@polywrap/test-cases";
import fs from "fs";
import path from "path";

jest.setTimeout(1200000);
jest.setTimeout(1500000);

describe("e2e tests for build command", () => {
const testCaseRoot = path.join(GetPathToCliTestFiles(), "build-cmd/wasm/rust");
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/__tests__/e2e/p1/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Commands:
app [options] <language> <name> Create a Polywrap application. langs:
typescript
plugin [options] <language> <name> Create a Polywrap plugin. langs:
typescript
typescript, rust, python
template [options] <url> <name> Download template from a URL. formats:
.git
help [command] display help for command
Expand Down
Loading