-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Change placeholder format to use underscores (#3900)
- Loading branch information
1 parent
54897b5
commit 77164f9
Showing
32 changed files
with
73 additions
and
75 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
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
{ | ||
"op": "add", | ||
"path": "/workspaces/-", | ||
"value": "src/{backend_name}" | ||
"value": "src/__backend_name__" | ||
} | ||
] |
2 changes: 1 addition & 1 deletion
2
src/dfx/assets/project_templates/azle/src/__backend_name__/package.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,5 +1,5 @@ | ||
{ | ||
"name": "{backend_name}", | ||
"name": "__backend_name__", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
|
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,10 +1,10 @@ | ||
[ | ||
{ | ||
"op": "add", | ||
"path": "/canisters/{backend_name}", | ||
"path": "/canisters/__backend_name__", | ||
"value": { | ||
"type": "motoko", | ||
"main": "src/{backend_name}/main.mo" | ||
"main": "src/__backend_name__/main.mo" | ||
} | ||
} | ||
] |
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,16 +1,16 @@ | ||
[ | ||
{ | ||
"op": "add", | ||
"path": "/canisters/{frontend_name}", | ||
"path": "/canisters/__frontend_name__", | ||
"value": { | ||
"type": "assets", | ||
"source": [ | ||
"src/{frontend_name}/dist" | ||
"src/__frontend_name__/dist" | ||
], | ||
"dependencies": [ | ||
"{backend_name}" | ||
"__backend_name__" | ||
], | ||
"workspace": "{frontend_name}" | ||
"workspace": "__frontend_name__" | ||
} | ||
} | ||
] |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
{ | ||
"op": "add", | ||
"path": "/workspaces/-", | ||
"value": "src/{frontend_name}" | ||
"value": "src/__frontend_name__" | ||
} | ||
] |
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/react/src/__frontend_name__/package.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
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/react/src/__frontend_name__/src/App.jsx
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
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/react_tests/src/__frontend_name__/vite.config.js.patch
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,5 +1,5 @@ | ||
[workspace] | ||
members = [ | ||
"src/{backend_name}" | ||
"src/__backend_name__" | ||
] | ||
resolver = "2" |
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,11 +1,11 @@ | ||
[ | ||
{ | ||
"op": "add", | ||
"path": "/canisters/{backend_name}", | ||
"path": "/canisters/__backend_name__", | ||
"value": { | ||
"type": "rust", | ||
"package": "{backend_name}", | ||
"candid": "src/{backend_name}/{backend_name}.did" | ||
"package": "__backend_name__", | ||
"candid": "src/__backend_name__/__backend_name__.did" | ||
} | ||
} | ||
] |
2 changes: 1 addition & 1 deletion
2
src/dfx/assets/project_templates/rust/src/__backend_name__/Cargo.toml
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,5 +1,5 @@ | ||
[package] | ||
name = "{backend_name}" | ||
name = "__backend_name__" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
src/dfx/assets/project_templates/simple_assets/dfx.json-patch
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
{ | ||
"op": "add", | ||
"path": "/workspaces/-", | ||
"value": "src/{frontend_name}" | ||
"value": "src/__frontend_name__" | ||
} | ||
] |
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/svelte/src/__frontend_name__/package.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
2 changes: 1 addition & 1 deletion
2
src/dfx/assets/project_templates/svelte/src/__frontend_name__/src/lib/canisters.js
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
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/svelte_tests/src/__frontend_name__/vite.config.js.patch
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,16 +1,16 @@ | ||
[ | ||
{ | ||
"op": "add", | ||
"path": "/canisters/{frontend_name}", | ||
"path": "/canisters/__frontend_name__", | ||
"value": { | ||
"type": "assets", | ||
"source": [ | ||
"src/{frontend_name}/dist" | ||
"src/__frontend_name__/dist" | ||
], | ||
"dependencies": [ | ||
"{backend_name}" | ||
"__backend_name__" | ||
], | ||
"workspace": "{frontend_name}" | ||
"workspace": "__frontend_name__" | ||
} | ||
} | ||
] |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
{ | ||
"op": "add", | ||
"path": "/workspaces/-", | ||
"value": "src/{frontend_name}" | ||
"value": "src/__frontend_name__" | ||
} | ||
] |
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/vanilla_js/src/__frontend_name__/package.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
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
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/vanilla_js_tests/src/__frontend_name__/vite.config.js.patch
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,16 +1,16 @@ | ||
[ | ||
{ | ||
"op": "add", | ||
"path": "/canisters/{frontend_name}", | ||
"path": "/canisters/__frontend_name__", | ||
"value": { | ||
"type": "assets", | ||
"dependencies": [ | ||
"{backend_name}" | ||
"__backend_name__" | ||
], | ||
"source": [ | ||
"src/{frontend_name}/dist" | ||
"src/__frontend_name__/dist" | ||
], | ||
"workspace": "{frontend_name}" | ||
"workspace": "__frontend_name__" | ||
} | ||
} | ||
] |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
{ | ||
"op": "add", | ||
"path": "/workspaces/-", | ||
"value": "src/{frontend_name}" | ||
"value": "src/__frontend_name__" | ||
} | ||
] |
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/vue/src/__frontend_name__/package.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
4 changes: 2 additions & 2 deletions
4
src/dfx/assets/project_templates/vue/src/__frontend_name__/src/App.vue
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
Oops, something went wrong.