Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
ce88822
feat: allow running workflows using cli command
Niraj-Kamdar Jun 8, 2022
ebd2fe5
fix: template and cli tests
Niraj-Kamdar Jun 9, 2022
8f59388
chore: fix typo
Niraj-Kamdar Jun 9, 2022
dda1fa1
Merge remote-tracking branch 'upstream/prealpha-dev' into nk/cli-work…
Niraj-Kamdar Jun 10, 2022
e4eab34
chore: fix merge issues
Niraj-Kamdar Jun 10, 2022
cb95372
feat(cli): add support for output validation for workflows
Niraj-Kamdar Jun 10, 2022
552584f
fix(cli): no-command help test
Niraj-Kamdar Jun 10, 2022
aa68c1d
fix(templates): assemblyscript example template
Niraj-Kamdar Jun 10, 2022
79f3167
fix(cli): tests
Niraj-Kamdar Jun 10, 2022
095f39a
debug(cli): cue validator
Niraj-Kamdar Jun 13, 2022
89394e3
fix(templates): recipe tests
Niraj-Kamdar Jun 13, 2022
0b2dd51
fix(cli): tempdir not set issue
Niraj-Kamdar Jun 13, 2022
a8a557f
chore: fix typo in package.json
Niraj-Kamdar Jun 13, 2022
9c22c9d
chore: update with latest changes
cbrzn Jun 15, 2022
366fc4f
refactor: remove debugging logs
Niraj-Kamdar Jun 17, 2022
3af35e1
Merge remote-tracking branch 'upstream/prealpha-dev' into nk/cli-work…
Niraj-Kamdar Jun 17, 2022
bdf0676
Merge remote-tracking branch 'upstream/prealpha-dev' into nk/cli-work…
Niraj-Kamdar Jun 18, 2022
dc1eff0
fix: issues
Niraj-Kamdar Jun 20, 2022
ea2b462
chore: update yarn.lock
Niraj-Kamdar Jun 20, 2022
fa13c36
chore: rename web3api to polywrap
Niraj-Kamdar Jun 20, 2022
a283fbe
fix: cli test
cbrzn Jun 20, 2022
64cb025
fix: issues
Niraj-Kamdar Jun 20, 2022
0eee7bc
Merge remote-tracking branch 'upstream/nk/cli-workflow' into nk/cli-w…
Niraj-Kamdar Jun 20, 2022
4f8cfb3
fix: tests
Niraj-Kamdar Jun 20, 2022
4cfd849
Update packages/cli/lang/en.json
Niraj-Kamdar Jun 20, 2022
2ee1b14
Update packages/cli/lang/es.json
Niraj-Kamdar Jun 20, 2022
fbaf3ec
fix: issues
Niraj-Kamdar Jun 20, 2022
ffeb53e
Merge remote-tracking branch 'upstream/nk/cli-workflow' into nk/cli-w…
Niraj-Kamdar Jun 20, 2022
ddcd98e
fix: tests
Niraj-Kamdar Jun 20, 2022
39f8136
chore: undo AS automatic json serialization
cbrzn Jun 21, 2022
e0064eb
fix conflicts
cbrzn Jun 21, 2022
c05cd3f
v0.0.1-prealpha.87
Jun 21, 2022
440a535
rs cli fix almost achieved
cbrzn Jun 21, 2022
edb0226
chore: json type rust test fixed
cbrzn Jun 21, 2022
0812236
fixed npmCli path in test-env-js
krisbitney Jun 22, 2022
ac1f098
fix usePolywrapInvoke test
dOrgJelli Jun 22, 2022
08144df
Merge pull request #938 from polywrap/chore/rollback-serial-as-json
dOrgJelli Jun 22, 2022
7431a40
Merge pull request #946 from polywrap/fix-npmCli-path-test-env-js
dOrgJelli Jun 22, 2022
dcc9edd
replace Nullable with Option
fetsorn Jun 22, 2022
8e329f3
chore: remove docker buildx output option
dOrgJelli Jun 23, 2022
a6666a2
add back template tests
dOrgJelli Jun 23, 2022
ce3144b
change output type from docker to image
dOrgJelli Jun 23, 2022
63ec698
Merge pull request #951 from polywrap/remove-docker-buildx-output
dOrgJelli Jun 23, 2022
61790b7
Merge pull request #952 from polywrap/add-template-tests
dOrgJelli Jun 23, 2022
110b016
Merge remote-tracking branch 'origin/prealpha-dev' into prealpha-dev
namesty Jun 23, 2022
caceabf
Merge branch 'prealpha-dev' into nk/cli-workflow
dOrgJelli Jun 23, 2022
c5fb839
Merge pull request #903 from polywrap/nk/cli-workflow
dOrgJelli Jun 23, 2022
2574720
Merge pull request #944 from polywrap/809-option-type
dOrgJelli Jun 23, 2022
616e0d8
Merge remote-tracking branch 'origin/prealpha-dev' into prealpha-dev
namesty Jun 23, 2022
d7f8b6b
prep 0.0.1-prealpha.89
namesty Jun 23, 2022
b59d65a
fix wasm/assemblyscript template
dOrgJelli Jun 23, 2022
d531b4b
added wait for ens deployment when starting test env
nerfZael Jun 23, 2022
7e6b078
default docker buildx output type back to docker
dOrgJelli Jun 23, 2022
85bc01f
Merge pull request #954 from polywrap/nerfzael-test-env-wait-for-ens-…
dOrgJelli Jun 23, 2022
974742c
modify changelog
dOrgJelli Jun 23, 2022
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
10 changes: 10 additions & 0 deletions .github/workflows/js-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,16 @@ jobs:
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- uses: actions/setup-go@v3
with:
go-version: '^1.13.1'

- name: Install cue lang
run: go install cuelang.org/go/cmd/cue@latest

- name: Check if cue is installed
run: cue version

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# Polywrap 0.0.1-prealpha.89
## Features
* [PR-903](https://github.com/polywrap/monorepo/pull/903) `polywrap` CLI: Recipes have been re-worked into composable workflows, and they can be run using CLI commands.
* [PR-951](https://github.com/polywrap/monorepo/pull/951) `polywrap` CLI: Docker Buildx output option has been removed.
* [PR-944](https://github.com/polywrap/monorepo/pull/944) `@polywrap/schema-bind`, `@polywrap/wasm-as`: `Nullable` type has been replaced with `Option` in the Assemblyscript schema bindings.
* [PR-938](https://github.com/polywrap/monorepo/pull/938) `@polywrap/schema-bind`, `@polywrap/wasm-as`: Rollback of JSON serialization in the Assemblyscript schema bindings.

## Bugs
* [PR-946](https://github.com/polywrap/monorepo/pull/946) `@polywrap/test-env-js`: Path fix for `npmCLI` test utility.

## Breaking Changes
* [PR-903](https://github.com/polywrap/monorepo/pull/903) `polywrap` CLI: Running recipes via the `polywrap query ...` command has been deprecated in favor of a new workflows system, accessible via the `polywrap run ...` command.
* [PR-944](https://github.com/polywrap/monorepo/pull/944) `wasm/assemblyscript` Wrappers: `Nullable` type has been removed in favor of `Option` which also has a different interface.
* [PR-938](https://github.com/polywrap/monorepo/pull/938) `wasm/assemblyscript` Wrappers: `JSON` serializer and deserializer, and related methods `fromJson` and `toJson` have been removed in favor of `parse` and `stringify`.

# Polywrap 0.0.1-prealpha.88
## Bugs
* Various CI/CD fixes.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1-prealpha.88
0.0.1-prealpha.89
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,21 @@
},
"devDependencies": {
"@types/prettier": "2.6.0",
"lerna": "4.0.0",
"rimraf": "3.0.2",
"@typescript-eslint/eslint-plugin": "4.11.1",
"@typescript-eslint/parser": "4.11.1",
"eslint": "7.16.0",
"eslint-config-prettier": "7.1.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-json": "3.0.0",
"eslint-plugin-prettier": "3.4.0",
"prettier": "2.2.1",
"graphql": "15.5.0",
"eslint-plugin-json": "3.0.0"
"lerna": "4.0.0",
"prettier": "2.2.1",
"rimraf": "3.0.2"
},
"resolutions": {
"@types/react": "16.9.0",
"@types/react-dom": "16.9.0"
}
},
"version": "0.0.1-prealpha.87"
}
83 changes: 45 additions & 38 deletions packages/cli/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
"commands_create_options_o": "Output directory for the new project",
"commands_create_options_o_path": "path",
"commands_create_options_projectName": "project-name",
"commands_query_options_recipeScript": "Path to recipe script",
"commands_create_overwritePrompt": "Do you want to overwrite this directory?",
"commands_create_overwriting": "Overwriting {dir}...",
"commands_create_readyApp": "You are ready to build an app using Polywrap",
Expand Down Expand Up @@ -140,43 +139,51 @@
"commands_plugin_options_path": "path",
"commands_plugin_options_publish": "Output path for the built schema and manifest (default: {default})",
"commands_plugin_options_codegen": "Output directory for the generated types (default: {default})",
"commands_query_options_configPath": "config-path",
"commands_query_options_outputFilePath": "output-file-path",
"commands_query_options_config": "Add custom configuration to the PolywrapClient",
"commands_query_options_outputFile": "Output file path for the query result",
"commands_query_options_quiet": "Suppress output",
"commands_query_error_outputFileMissing": "{option} option missing {argument} argument",
"commands_query_error_clientConfigMissingPath": "{option} option missing {argument} argument",
"commands_query_error_clientConfigModuleMissingExport": "Custom client config module missing named export 'getClientConfig' at {module}",
"commands_query_error_clientConfigInvalidFileExt": "Custom client config file: {module} must be a JS/TS file",
"commands_query_error_clientConfigNotObject": "Custom client config must be an object",
"commands_query_error_redirectsExportNotArray": "Exported redirects must be an array",
"commands_query_error_redirectsItemNotValid": "Redirect at index {index} must be an object with properties 'from' and 'to'",
"commands_query_error_redirectsItemFromNotString": "Redirect property 'from' at index {index} must be a valid wrap:// URI string",
"commands_query_error_redirectsItemToNotStringOrObject": "Redirect property 'to' at index {index} must be a valid wrap:// URI string, or a plugin",
"commands_query_error_redirectsItemToNotValidPlugin": "Redirect property 'to' at index {index} must be a valid plugin instance",
"commands_query_error_pluginsExportNotArray": "Exported plugins must be an array",
"commands_query_error_pluginsItemNotObject": "Plugin at index {index} must be an object with properties 'uri' and 'plugin'",
"commands_query_error_pluginsItemUriNotString": "Plugin property 'uri' at index {index} must be a valid wrap:// URI string",
"commands_query_error_pluginsItemPluginNotObject": "Plugin property 'plugin' at index {index} must be an object with properties 'factory' and 'manifest'",
"commands_query_error_pluginsItemPluginFactoryNotFunction": "Plugin property 'plugin.factory' at index {index} must be a function",
"commands_query_error_pluginsItemPluginManifestNotObject": "Plugin property 'plugin.manifest' at index {index} must be an object",
"commands_query_error_interfacesExportNotArray": "Exported interfaces must be an array",
"commands_query_error_interfacesItemNotObject": "Interface at index {index} must be an object with properties 'interface' and 'implementations'",
"commands_query_error_interfacesItemInterfaceNotString": "Interface property 'interface' at index {index} must be a valid wrap:// URI string",
"commands_query_error_interfacesItemImplementationsNotArray": "Interface property 'implementations' at index {index} must be an array",
"commands_query_error_interfacesItemImplementationsEmpty": "Interface property 'implementations' at index {index} must not be an empty array",
"commands_query_error_interfacesItemImplementationsItemNotString": "Implementation at index ({index}, {implementationIndex}) must be a valid wrap:// URI string",
"commands_query_error_envsExportNotArray": "Exported envs must be an array",
"commands_query_error_envsItemNotObject": "Env at index {index} must be an object with properties 'uri' and optional properties 'common', 'query', and 'mutation'",
"commands_query_error_envsItemUriNotString": "Env property 'uri' at index {index} must be a valid wrap:// URI string",
"commands_query_error_envsItemModuleNotObject": "Env property 'module' at index {index} must be an object",
"commands_query_description": "Query wrappers using recipe scripts",
"commands_query_error_missingScript": "Required argument {script} is missing",
"commands_query_error_noWrapper": "Wrapper needs to be initialized",
"commands_query_error_readFail": "Failed to read query {query}",
"commands_query_error_noRecipeScriptFound": "Recipe script not found at path: {path}",
"commands_query_error_noTestEnvFound": "polywrap test-env not found, please run 'polywrap infra up --modules=eth-ens-ipfs'",
"commands_run_options_workflow": "workflow",
"commands_run_options_workflowScript": "Path to workflow script",
"commands_run_options_configPath": "config-path",
"commands_run_options_outputFilePath": "output-file-path",
"commands_run_options_config": "Add custom configuration to the PolywrapClient",
"commands_run_options_validateScript": "Validate the output of the workflow jobs",
"commands_run_options_validate": "cue-file",
"commands_run_options_outputFile": "Output file path for the workflow result",
"commands_run_options_quiet": "Suppress output",
"commands_run_options_jobIds": "jobs",
"commands_run_options_jobs": "Specify ids of jobs that you want to run",
"commands_run_error_validatorNotFound": "validate script not found at: {path}",
"commands_run_error_outputFileMissing": "{option} option missing {argument} argument",
"commands_run_error_clientConfigMissingPath": "{option} option missing {argument} argument",
"commands_run_error_clientConfigModuleMissingExport": "Custom client config module missing named export 'getClientConfig' at {module}",
"commands_run_error_clientConfigInvalidFileExt": "Custom client config file: {module} must be a JS/TS file",
"commands_run_error_clientConfigNotObject": "Custom client config must be an object",
"commands_run_error_redirectsExportNotArray": "Exported redirects must be an array",
"commands_run_error_redirectsItemNotValid": "Redirect at index {index} must be an object with properties 'from' and 'to'",
"commands_run_error_redirectsItemFromNotString": "Redirect property 'from' at index {index} must be a valid wrap:// URI string",
"commands_run_error_redirectsItemToNotStringOrObject": "Redirect property 'to' at index {index} must be a valid wrap:// URI string, or a plugin",
"commands_run_error_redirectsItemToNotValidPlugin": "Redirect property 'to' at index {index} must be a valid plugin instance",
"commands_run_error_pluginsExportNotArray": "Exported plugins must be an array",
"commands_run_error_pluginsItemNotObject": "Plugin at index {index} must be an object with properties 'uri' and 'plugin'",
"commands_run_error_pluginsItemUriNotString": "Plugin property 'uri' at index {index} must be a valid wrap:// URI string",
"commands_run_error_pluginsItemPluginNotObject": "Plugin property 'plugin' at index {index} must be an object with properties 'factory' and 'manifest'",
"commands_run_error_pluginsItemPluginFactoryNotFunction": "Plugin property 'plugin.factory' at index {index} must be a function",
"commands_run_error_pluginsItemPluginManifestNotObject": "Plugin property 'plugin.manifest' at index {index} must be an object",
"commands_run_error_interfacesExportNotArray": "Exported interfaces must be an array",
"commands_run_error_interfacesItemNotObject": "Interface at index {index} must be an object with properties 'interface' and 'implementations'",
"commands_run_error_interfacesItemInterfaceNotString": "Interface property 'interface' at index {index} must be a valid wrap:// URI string",
"commands_run_error_interfacesItemImplementationsNotArray": "Interface property 'implementations' at index {index} must be an array",
"commands_run_error_interfacesItemImplementationsEmpty": "Interface property 'implementations' at index {index} must not be an empty array",
"commands_run_error_interfacesItemImplementationsItemNotString": "Implementation at index ({index}, {implementationIndex}) must be a valid wrap:// URI string",
"commands_run_error_envsExportNotArray": "Exported envs must be an array",
"commands_run_error_envsItemNotObject": "Env at index {index} must be an object with properties 'uri'",
"commands_run_error_envsItemUriNotString": "Env property 'uri' at index {index} must be a valid wrap:// URI string",
"commands_run_error_envsItemModuleNotObject": "Env property 'env' at index {index} must be an object",
"commands_run_description": "Runs workflow script",
"commands_run_error_missingScript": "Required argument {script} is missing",
"commands_run_error_noApi": "API needs to be initialized",
"commands_run_error_readFail": "Failed to read query {query}",
"commands_run_error_unsupportedOutputFileExt": "Unsupported outputFile extention: ${outputFileExt}",
"commands_run_error_noWorkflowScriptFound": "Workflow script not found at path: {path}",
"commands_run_error_noTestEnvFound": "polywrap test-env not found, please run 'polywrap infra up --modules=eth-ens-ipfs'",
"commands_testEnv_description": "Manage a test environment for Polywrap",
"commands_testEnv_error_never": "This should never happen...",
"commands_testEnv_error_noCommand": "No command given",
Expand Down
Loading