Skip to content

Commit

Permalink
removed workflows from templates; fixed bugs in rust template; remove…
Browse files Browse the repository at this point in the history
…d deploy manifests from templates
  • Loading branch information
krisbitney committed Oct 24, 2023
1 parent ab96c7f commit ef7543e
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 123 deletions.
8 changes: 2 additions & 6 deletions packages/templates/wasm/assemblyscript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
"scripts": {
"codegen": "npx polywrap codegen",
"build": "npx polywrap build",
"test:env:up": "npx polywrap infra up --modules=eth-ens-ipfs",
"test:env:down": "npx polywrap infra down --modules=eth-ens-ipfs",
"deploy": "npx polywrap deploy",
"test": "yarn test:e2e && yarn test:workflow",
"test:e2e": "yarn test:e2e:codegen && jest --passWithNoTests --runInBand --verbose",
"test:e2e:codegen": "npx polywrap codegen -m ./src/__tests__/types/polywrap.app.yaml -g ./src/__tests__/types/wrap",
"test:workflow": "npx polywrap test -o ./workflows/output.json"
"test": "yarn test:codegen && jest --passWithNoTests --runInBand --verbose",
"test:codegen": "npx polywrap codegen -m ./src/__tests__/types/polywrap.app.yaml -g ./src/__tests__/types/wrap"
},
"devDependencies": {
"@types/jest": "26.0.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/templates/wasm/assemblyscript/polywrap.build.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
format: 0.3.0
strategies:
image:
name: wrap-wasm-as-build-image
node_version: 16.13.0
name: template-wasm-as
node_version: 18.15.0
include:
- ./package.json
- ./src
11 changes: 0 additions & 11 deletions packages/templates/wasm/assemblyscript/polywrap.test.cue

This file was deleted.

10 changes: 0 additions & 10 deletions packages/templates/wasm/assemblyscript/polywrap.test.yaml

This file was deleted.

6 changes: 2 additions & 4 deletions packages/templates/wasm/golang/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
"codegen": "npx polywrap codegen",
"build": "npx polywrap build",
"deploy": "npx polywrap deploy",
"test": "yarn test:e2e && yarn test:workflow",
"test:e2e": "yarn test:e2e:codegen && jest --passWithNoTests --runInBand --verbose",
"test:e2e:codegen": "npx polywrap codegen -m ./module/__tests__/types/polywrap.app.yaml -g ./module/__tests__/types/wrap",
"test:workflow": "npx polywrap test"
"test": "yarn test:e2e:codegen && jest --passWithNoTests --runInBand --verbose",
"test:codegen": "npx polywrap codegen -m ./module/__tests__/types/polywrap.app.yaml -g ./module/__tests__/types/wrap"
},
"devDependencies": {
"@types/jest": "26.0.8",
Expand Down
4 changes: 4 additions & 0 deletions packages/templates/wasm/golang/polywrap.build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
format: 0.2.0
strategies:
image:
name: template-wasm-go
11 changes: 0 additions & 11 deletions packages/templates/wasm/golang/polywrap.test.cue

This file was deleted.

10 changes: 0 additions & 10 deletions packages/templates/wasm/golang/polywrap.test.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions packages/templates/wasm/golang/polywrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ project:
source:
schema: ./polywrap.graphql
module: ./go.mod
extensions:
build: ./polywrap.build.yaml
7 changes: 0 additions & 7 deletions packages/templates/wasm/interface/polywrap.deploy.yaml

This file was deleted.

6 changes: 2 additions & 4 deletions packages/templates/wasm/rust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
"codegen": "npx polywrap codegen",
"build": "npx polywrap build",
"deploy": "npx polywrap deploy",
"test": "yarn test:e2e && yarn test:workflow",
"test:e2e": "yarn test:e2e:codegen && cargo test --release",
"test:e2e:codegen": "npx polywrap codegen -m ./tests/types/polywrap.app.yaml -g ./tests/types/wrap",
"test:workflow": "npx polywrap test"
"test": "yarn test:codegen && cargo test --release",
"test:codegen": "npx polywrap codegen -m ./tests/types/polywrap.app.yaml -g ./tests/types/wrap"
},
"devDependencies": {
"polywrap": "0.12.1"
Expand Down
7 changes: 0 additions & 7 deletions packages/templates/wasm/rust/polywrap.deploy.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions packages/templates/wasm/rust/polywrap.test.cue

This file was deleted.

10 changes: 0 additions & 10 deletions packages/templates/wasm/rust/polywrap.test.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions packages/templates/wasm/rust/tests/it/module.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use crate::types::wrap::types::{
TemplateModule,
TemplateModuleArgsSampleMethod
Template,
TemplateArgsSampleMethod
};

#[test]
fn sample_method() {
let args = TemplateModuleArgsSampleMethod {
let args = TemplateArgsSampleMethod {
arg: "input data".to_string(),
};
let template: TemplateModule = TemplateModule::new(None, None, None);
let response = template.sample_method(&args, None, None, None).unwrap();
let template: Template = Template::new(None);
let response = template.sample_method(&args, None).unwrap();
assert_eq!(response.result, "input data from sample_method");
}
6 changes: 2 additions & 4 deletions packages/templates/wasm/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
"codegen": "npx polywrap codegen",
"build": "yarn codegen && yarn bundle && npx polywrap build --no-codegen",
"deploy": "npx polywrap deploy",
"test": "yarn test:e2e && yarn test:workflow",
"test:e2e": "yarn test:e2e:codegen && cargo test --release",
"test:e2e:codegen": "npx polywrap codegen -m ./tests/types/polywrap.app.yaml -g ./tests/types/wrap",
"test:workflow": "npx polywrap test"
"test": "yarn test:codegen && jest --passWithNoTests --runInBand --verbose",
"test:codegen": "npx polywrap codegen -m ./src/__tests__/types/polywrap.app.yaml -g ./src/__tests__/types/wrap"
},
"dependencies": {
"tslib": "^2.6.2"
Expand Down
3 changes: 3 additions & 0 deletions packages/templates/wasm/typescript/polywrap.build.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
format: 0.3.0
strategies:
image:
name: template-wasm-ts
config:
scriptFile: ./bundled/wrap.js
11 changes: 0 additions & 11 deletions packages/templates/wasm/typescript/polywrap.test.cue

This file was deleted.

10 changes: 0 additions & 10 deletions packages/templates/wasm/typescript/polywrap.test.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions packages/templates/wasm/typescript/polywrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ project:
source:
schema: ./polywrap.graphql
module: ./bundled/wrap.js
extensions:
build: ./polywrap.build.yaml

0 comments on commit ef7543e

Please sign in to comment.