-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1759 from demergent-labs/dfx_extensions
implement the azle dfx extension and update all example projects
- Loading branch information
Showing
240 changed files
with
596 additions
and
3,396 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
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 @@ | ||
{ | ||
"name": "azle", | ||
"version": "0.0.0", | ||
"homepage": "https://github.com/dfinity/dfx-extensions", | ||
"authors": "", | ||
"summary": "", | ||
"categories": [], | ||
"keywords": [], | ||
"canister_type": { | ||
"defaults": { | ||
"candid": ".azle/{{canister_name}}/{{canister_name}}.did", | ||
"build": "npx azle {{canister_name}}", | ||
"post_install": "npx azle upload-assets {{canister_name}}", | ||
"wasm": ".azle/{{canister_name}}/{{canister_name}}.wasm", | ||
"gzip": true, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
], | ||
"tech_stack": { | ||
"cdk": { | ||
"azle": {} | ||
}, | ||
"language": { | ||
"typescript": {}, | ||
"javascript": {} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,10 @@ | ||
#!/bin/bash | ||
|
||
DFX_CACHE_DIR="$(dfx cache show)" | ||
|
||
if [ ! -d "$DFX_CACHE_DIR" ]; then | ||
dfx cache install | ||
fi | ||
|
||
mkdir -p "$DFX_CACHE_DIR/extensions/azle" | ||
cp extension.json "$DFX_CACHE_DIR/extensions/azle/extension.json" |
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,23 +1,8 @@ | ||
{ | ||
"canisters": { | ||
"apollo_server": { | ||
"type": "custom", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"candid_gen": "http", | ||
"build": "npx azle apollo_server", | ||
"wasm": ".azle/apollo_server/apollo_server.wasm", | ||
"gzip": true, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/index.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
"type": "azle", | ||
"main": "src/index.ts" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,27 +1,14 @@ | ||
{ | ||
"canisters": { | ||
"async_await": { | ||
"type": "custom", | ||
"type": "azle", | ||
"main": "src/async_await.ts", | ||
"candid": "src/async_await.did", | ||
"build": "npx azle async_await", | ||
"wasm": ".azle/async_await/async_await.wasm", | ||
"gzip": true, | ||
"candid_gen": "automatic", | ||
"env": ["AZLE_TEST_FETCH"], | ||
"declarations": { | ||
"output": "test/dfx_generated/async_await", | ||
"node_compatibility": true | ||
}, | ||
"env": ["AZLE_TEST_FETCH"], | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/async_await.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,27 +1,14 @@ | ||
{ | ||
"canisters": { | ||
"audio_recorder": { | ||
"type": "custom", | ||
"type": "azle", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"candid_gen": "custom", | ||
"build": "npx azle audio_recorder", | ||
"wasm": ".azle/audio_recorder/audio_recorder.wasm", | ||
"gzip": true, | ||
"declarations": { | ||
"output": "test/dfx_generated/audio_recorder", | ||
"node_compatibility": true | ||
}, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/index.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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,23 +1,8 @@ | ||
{ | ||
"canisters": { | ||
"autoreload": { | ||
"type": "custom", | ||
"main": "src/server.ts", | ||
"candid": "src/server.did", | ||
"candid_gen": "http", | ||
"build": "npx azle autoreload", | ||
"wasm": ".azle/autoreload/autoreload.wasm", | ||
"gzip": true, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/server.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
"type": "azle", | ||
"main": "src/server.ts" | ||
} | ||
} | ||
} |
Empty file.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,12 +1,8 @@ | ||
{ | ||
"canisters": { | ||
"bitcoinjs": { | ||
"type": "custom", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"build": "npx azle bitcoinjs", | ||
"wasm": ".azle/bitcoinjs/bitcoinjs.wasm", | ||
"gzip": true | ||
"type": "azle", | ||
"main": "src/index.ts" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,12 +1,8 @@ | ||
{ | ||
"canisters": { | ||
"bitcore": { | ||
"type": "custom", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"build": "npx azle bitcore", | ||
"wasm": ".azle/bitcore/bitcore.wasm", | ||
"gzip": true | ||
"type": "azle", | ||
"main": "src/index.ts" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,26 +1,13 @@ | ||
{ | ||
"canisters": { | ||
"blob_array": { | ||
"type": "custom", | ||
"type": "azle", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"build": "npx azle blob_array", | ||
"wasm": ".azle/blob_array/blob_array.wasm", | ||
"gzip": true, | ||
"candid_gen": "automatic", | ||
"declarations": { | ||
"output": "test/dfx_generated/blob_array", | ||
"node_compatibility": true | ||
}, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/index.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.