This repository has been archived by the owner on Feb 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
383 additions
and
850 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
|
||
tempDir: build/golem-temp | ||
components: | ||
pack:name: | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: build/components/component_name.wasm | ||
linkedWasm: build/linked-components/component_name_linked.wasm | ||
build: | ||
- command: componentize-py bindings bindings | ||
sources: | ||
- wit-generated | ||
targets: | ||
- bindings | ||
- command: componentize-py componentize main -o build/components/component_name.wasm | ||
mkdirs: | ||
- build/components | ||
sources: | ||
- bindings | ||
- main.py | ||
targets: | ||
- build/components/component_name.wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
See the documentation about installing tooling: https://learn.golem.cloud/docs/experimental-languages/js-language-guide/setup | ||
|
||
First time node package install: | ||
golem-cli app install | ||
|
||
Generate wit and bindings, build and link component: | ||
golem-cli app build | ||
|
||
The `out/linked-components/component_name.wasm` file is ready to be uploaded to Golem Cloud! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules/ | ||
out/ | ||
wit-generated/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
|
||
tempDir: out/golem-temp | ||
components: | ||
pack:name: | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: out/components/component_name.wasm | ||
linkedWasm: out/linked-components/component_name_linked.wasm | ||
build: | ||
- command: npx rollup --config | ||
sources: | ||
- src | ||
- wit-generated | ||
targets: | ||
- out/main.js | ||
- command: npx jco componentize -w wit-generated -o out/components/component_name.wasm out/main.js | ||
mkdirs: | ||
- out/components | ||
sources: | ||
- out/main.js | ||
targets: | ||
- out/components/component_name.wasm | ||
clean: | ||
- src/generated | ||
customCommands: | ||
install: | ||
- command: npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
bindings | ||
component_name.wasm | ||
wit-generated | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
See the documentation about installing tooling: https://learn.golem.cloud/docs/python-language-guide/setup | ||
|
||
Generate wit and bindings, build and link component: | ||
golem-cli app build | ||
|
||
The `build/linked-components/component_name_linked.wasm` file is ready to be uploaded to Golem Cloud! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bindings | ||
component_name.wasm | ||
wit-generated | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
|
||
tempDir: build/golem-temp | ||
components: | ||
pack:name: | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: build/components/component_name.wasm | ||
linkedWasm: build/linked-components/component_name_linked.wasm | ||
build: | ||
- command: componentize-py bindings bindings | ||
sources: | ||
- wit-generated | ||
targets: | ||
- bindings | ||
- command: componentize-py componentize main -o build/components/component_name.wasm | ||
mkdirs: | ||
- build/components | ||
sources: | ||
- bindings | ||
- main.py | ||
targets: | ||
- build/components/component_name.wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
See the documentation about installing tooling: https://learn.golem.cloud/docs/experimental-languages/ts-language-guide/setup | ||
|
||
First time node package install: | ||
golem-cli app install | ||
|
||
Generate wit and bindings, build and link component: | ||
golem-cli app build | ||
|
||
The `out/linked-components/component_name.wasm` file is ready to be uploaded to Golem Cloud! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
out/ | ||
src/generated/ | ||
wit-generated/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Schema for IDEA: | ||
# $schema: https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
# Schema for vscode-yaml | ||
# yaml-language-server: $schema=https://schema.golem.cloud/app/golem/1.1.0-rc3/golem.schema.json | ||
|
||
tempDir: out/golem-temp | ||
components: | ||
pack:name: | ||
sourceWit: wit | ||
generatedWit: wit-generated | ||
componentWasm: out/components/component_name.wasm | ||
linkedWasm: out/linked-components/component_name_linked.wasm | ||
build: | ||
- command: npx jco stubgen wit-generated -o src/generated | ||
sources: | ||
- wit-generated | ||
targets: | ||
- src/generated | ||
- command: npx rollup --config | ||
sources: | ||
- src | ||
- wit-generated | ||
targets: | ||
- out/main.js | ||
- command: npx jco componentize -w wit-generated -o out/components/component_name.wasm out/main.js | ||
mkdirs: | ||
- out/components | ||
sources: | ||
- out/main.js | ||
targets: | ||
- out/components/component_name.wasm | ||
clean: | ||
- src/generated | ||
customCommands: | ||
install: | ||
- command: npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
node_modules/ | ||
out/ | ||
binding | ||
generated | ||
node_modules | ||
out | ||
wit-generated |
Oops, something went wrong.