-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: orchestration refinements * feat: refinements to include template workflows * chore: patching ci * chore: tweaks * chore: fixing permissions in codespace; ensuring localnet is reset every time * chore: testing vscode code workspace * feat: baseline code workspace file for vscode * chore: adjusting devcontainer * chore: minor tweaks * chore: minor tweaks * chore: minor tweaks * chore: minor tweaks * chore: minor tweaks * chore: minor tweaks * chore: bumping min version BREAKING CHANGE: Support for algokit-cli v2.0
- Loading branch information
1 parent
0aeca4e
commit 4bd3281
Showing
10 changed files
with
154 additions
and
35 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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"forwardPorts": [4001, 4002, 8980, 5173], | ||
"portsAttributes": { | ||
"4001": { | ||
"label": "algod" | ||
}, | ||
"4002": { | ||
"label": "kmd" | ||
}, | ||
"8980": { | ||
"label": "indexer" | ||
}, | ||
"5173": { | ||
"label": "vite" | ||
} | ||
"forwardPorts": [4001, 4002, 8980, 5173], | ||
"portsAttributes": { | ||
"4001": { | ||
"label": "algod" | ||
}, | ||
"postCreateCommand": "pipx install algokit", | ||
"postStartCommand": "rm -rf template_content copier.yaml && algokit localnet start" | ||
"4002": { | ||
"label": "kmd" | ||
}, | ||
"8980": { | ||
"label": "indexer" | ||
}, | ||
"5173": { | ||
"label": "vite" | ||
} | ||
}, | ||
"postCreateCommand": "mkdir -p ~/.config/algokit && pipx install algokit && rm -rf template_content copier.yaml && sudo chown -R codespace:codespace ~/.config/algokit", | ||
"postStartCommand": "for i in {1..5}; do algokit localnet status > /dev/null 2>&1 && break || sleep 30; algokit localnet reset; done" | ||
} |
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,20 +1,44 @@ | ||
_subdirectory: ./template_content | ||
|
||
# All of the below are hidden questions without any user interaction. | ||
# Given that baseline is primarily aimed to be used as part of the invocation of | ||
# official and custom fullstack, standalone algokit projects, control | ||
# over the below is recommended via -a flag available in both algokit init and copier directly | ||
|
||
include_readme: | ||
type: bool | ||
when: false | ||
help: Include a default README.md file | ||
default: yes | ||
type: bool | ||
when: false | ||
help: Include a default README.md file | ||
default: yes | ||
|
||
include_algokit_toml: | ||
type: bool | ||
when: false | ||
help: Include a default algokit.toml file | ||
default: yes | ||
type: bool | ||
when: false | ||
help: Include a default algokit.toml file | ||
default: yes | ||
|
||
include_github_workflow_template: | ||
type: bool | ||
when: false | ||
help: Include a template github workflow for workspace-based projects | ||
default: no | ||
|
||
include_vscode_code_workspace: | ||
type: bool | ||
help: Include a default VSCode code-workspace | ||
when: no | ||
default: yes | ||
|
||
project_name: | ||
type: str | ||
help: Name for this project. | ||
when: "{{ include_readme }}" | ||
placeholder: "algorand-app" | ||
default: "myproject" | ||
type: str | ||
help: Name for this project. | ||
when: "{{ include_readme }}" | ||
placeholder: "algorand-app" | ||
default: "myproject" | ||
|
||
projects_root_path: | ||
type: str | ||
help: Name of the directory to host sub projects in the workspace (Defaults to 'projects'). | ||
when: "{{ include_algokit_toml }}" | ||
placeholder: "projects" | ||
default: "projects" |
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
template_content/{% if include_algokit_toml %}.algokit.toml{% endif %}.jinja
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,6 +1,6 @@ | ||
[algokit] | ||
min_version = "v1.8.0" | ||
min_version = "v1.12.1" | ||
|
||
[project] | ||
type = 'workspace' | ||
projects_root_path = 'projects' | ||
projects_root_path = '{{ projects_root_path }}' |
37 changes: 37 additions & 0 deletions
37
...content/{% if include_github_workflow_template %}.github{% endif %}/release.yaml.template
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,37 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
- "**.md" | ||
- ".vscode/**" | ||
- ".idea/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: false | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
jobs: | ||
# Sample of referencing a separate workflow file with workflow_call | ||
example-ci: | ||
name: Example CI | ||
uses: ./.github/workflows/example-project-cd.yaml | ||
|
||
# We recommend, treating this as a generic workflow aggregating | ||
# multiple workflow references. This way, you can easily | ||
# customize the workflow to your needs using workflow references. | ||
# === | ||
# How to use? | ||
# === | ||
# 1. Duplicate and remove .template from the file name | ||
# 2. Adapt the workflow as needed using workflow references. | ||
# 3. Commit and push the changes | ||
# 4. Remove the original .template file (if no longer needed) | ||
|
25 changes: 25 additions & 0 deletions
25
...ontent/{% if include_github_workflow_template %}.github{% endif %}/validate.yaml.template
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,25 @@ | ||
name: Pull Request validation | ||
|
||
on: [pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Sample of referencing a separate workflow file with workflow_call | ||
example-ci: | ||
name: Example CI | ||
uses: ./.github/workflows/example-project-ci.yaml | ||
|
||
# We recommend, treating this as a generic workflow aggregating | ||
# multiple workflow references. This way, you can easily | ||
# customize the workflow to your needs using workflow references. | ||
# === | ||
# How to use? | ||
# === | ||
# 1. Duplicate and remove .template from the file name | ||
# 2. Adapt the workflow as needed using workflow references. | ||
# 3. Commit and push the changes | ||
# 4. Remove the original .template file (if no longer needed) | ||
|
5 changes: 5 additions & 0 deletions
5
template_content/{% if include_vscode_code_workspace %}.vscode{% endif %}/settings.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
// Disabled due to matangover.mypy extension not supporting monorepos | ||
// To be addressed as part of https://github.com/matangover/mypy-vscode/issues/82 | ||
"mypy.enabled": false | ||
} |
24 changes: 24 additions & 0 deletions
24
.../{% if include_vscode_code_workspace %}{{ project_name }}.code-workspace{% endif %}.jinja
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,24 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "./", | ||
"name": "ROOT" | ||
} | ||
], | ||
"settings": { | ||
"files.exclude": { | ||
"{{ projects_root_path }}/": true | ||
}, | ||
"jest.disabledWorkspaceFolders": ["ROOT", "{{ projects_root_path }}"] | ||
}, | ||
"extensions": { | ||
"recommendations": ["joshx.workspace-terminals"] | ||
}, | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [] | ||
}, | ||
"launch": { | ||
"configurations": [] | ||
} | ||
} |