-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: linking and project listing commands #450
feat: linking and project listing commands #450
Conversation
27715ca
to
925da4f
Compare
Co-authored-by: Neil Campbell <[email protected]>
@PhearZero @joe-p @Loedn @iskysun96 - available from branch for any further feedback. To test this out use:
Please note only react/puya and their fullstack combo are currently updated to latest, beaker is to be updated after puya is reviewed, for tealscript ill add a simple build/test run declarations into toml @joe-p but for the rest refer to official templates to get tealscript template codebase up to date with latest conventions (notion of presets, tests, ci/cd, code tours, generators etc). |
logger.debug(f"No files found in .github folder after merge. Removing `.github` directory at {source_dir}...") | ||
return | ||
|
||
click.echo( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears that this will only render if there are files found in the project .github folder.
To me this should be printed always at the start and we should replace this message with something like below:
Failed to move all files within your project's
.githubfolder to the workspace root. Please review any files that remain in your project's
.githubfolder and manually include in the root
.github directory as required.
* chore: algokit project poc * feat: initial implementation * chore: merge conflicts * chore: fixing ruff errors * chore: regen docs * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: minor refinements; adding env var passing; verbose validation * chore: testing ci * chore: patching docstrings * chore: patching tests * chore: testing ci * docs: refining documentation and further polish * chore: adding option to pass custom env file * chore: addressing pr comments on docs Co-authored-by: Neil Campbell <[email protected]> * chore: fix line too long * chore: removing typos; minor tweaks * feat: linking and project listing commands (#450) * chore: env_file file param; list command; link command * chore: wip * chore: wip * chore: wip * chore: wip * chore: making deploy and bootstrap compatible with workspaces * chore: wip * chore: test * chore: wip * chore: wip * feat: initial implementation of link and list commands; github folder handler * chore: windows compatibility * test: fixing windows compatibility * chore: minor tweaks * docs: pr feedback Co-authored-by: Neil Campbell <[email protected]> * chore: addressing pr feedback * docs: regen docs * chore: addressing pr feedback * chore: minor refinements * docs: minor paraphrasing of help strings * chore: refining link behaviour; extra test case --------- Co-authored-by: Neil Campbell <[email protected]> * chore: merge conflicts * chore: extra test cases * fix: enforce utf-8 encoding to proc.run by default; do not resolve run cmd until run * chore: addressing pr feedback * chore: minor tweaks * chore: adjusting beaker to point to feat branch * chore: minor refinements * chore: adding tealscript to point to temp feature branch * chore: patching docs * fix: adding search glob for arc32.json prefixed specs * feat: orchestration pr feedback (#460) * fix: addressing pr comments; minor improvements * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: wip * docs: regen docs * fix: windows bug during git init * chore: regen tests * chore: fix test issues * chore: minor refinements * chore: renaming puya to python * docs: regen docs * chore: renaming puya template repo * chore: merge conflicts --------- Co-authored-by: Neil Campbell <[email protected]>
* feat: Add puyapy compile integration (#457) * feat: enable puya integration * chore: doc * chore: refactor compile command and enhance the docs * docs: wording tweaks to the compile docs * chore: change install to run, as I think it is the behaviour we want * chore: fix snapshots * fix: resolve issue running on windows * chore: add info about PuyaPy Python version and matching behaviour. * chore: fix snapshots * chore: wording tweaks * chore: allowing running puya with no color * docs: adjust compile command terminology --------- Co-authored-by: Neil Campbell <[email protected]> * feat: command orchestration (#446) * chore: algokit project poc * feat: initial implementation * chore: merge conflicts * chore: fixing ruff errors * chore: regen docs * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: minor refinements; adding env var passing; verbose validation * chore: testing ci * chore: patching docstrings * chore: patching tests * chore: testing ci * docs: refining documentation and further polish * chore: adding option to pass custom env file * chore: addressing pr comments on docs Co-authored-by: Neil Campbell <[email protected]> * chore: fix line too long * chore: removing typos; minor tweaks * feat: linking and project listing commands (#450) * chore: env_file file param; list command; link command * chore: wip * chore: wip * chore: wip * chore: wip * chore: making deploy and bootstrap compatible with workspaces * chore: wip * chore: test * chore: wip * chore: wip * feat: initial implementation of link and list commands; github folder handler * chore: windows compatibility * test: fixing windows compatibility * chore: minor tweaks * docs: pr feedback Co-authored-by: Neil Campbell <[email protected]> * chore: addressing pr feedback * docs: regen docs * chore: addressing pr feedback * chore: minor refinements * docs: minor paraphrasing of help strings * chore: refining link behaviour; extra test case --------- Co-authored-by: Neil Campbell <[email protected]> * chore: merge conflicts * chore: extra test cases * fix: enforce utf-8 encoding to proc.run by default; do not resolve run cmd until run * chore: addressing pr feedback * chore: minor tweaks * chore: adjusting beaker to point to feat branch * chore: minor refinements * chore: adding tealscript to point to temp feature branch * chore: patching docs * fix: adding search glob for arc32.json prefixed specs * feat: orchestration pr feedback (#460) * fix: addressing pr comments; minor improvements * chore: testing ci * chore: testing ci * chore: testing ci * chore: testing ci * chore: wip * docs: regen docs * fix: windows bug during git init * chore: regen tests * chore: fix test issues * chore: minor refinements * chore: renaming puya to python * docs: regen docs * chore: renaming puya template repo * chore: merge conflicts --------- Co-authored-by: Neil Campbell <[email protected]> * chore: pin algokit client generator version (#455) * chore: pin the generator client version by user * fix: checking for available version * fix: mypy issues * test: adding tests * chore: fix ruff errors * chore: fix a test and ruff * chore: update docs * chore: add a log for a testing * chore: update logs * chore: revert the algokit-client-generator dependency * chore: revert the lock file * fix: github test on macos * fix: get use of installed versions * test: add tests * fix: some tests * test: fix some snapshots * chore: fix ruff * chore: fix test and pipx run command in windows * feat: add support for finding a project installed python client generator command * feat: add support for finding a globally installed ts client generator command * chore: update docs * chore: add some debug logs * chore: update snapshots * chore: add more tests * chore: tweak * chore: merging v2 into branch * chore: remove orig * chore: refine test cases for link command --------- Co-authored-by: Neil Campbell <[email protected]> Co-authored-by: Altynbek Orumbayev <[email protected]> * chore: add version option to link command * chore: minor fixes * docs: update readme * docs: add Algorand Python and TEALScript to readme * chore: change puya to puyapy * chore: fix windows compile test * chore: fix test * chore: ignore test for now * chore: fix windows compile test * chore: temporarily disable test * fix: fixing an issue causing workspace nesting check even if user said yes to overwrite * chore: use version rather than help for puyapy detects * docs: update example contract in docs * chore: removing tmp branches on templates BREAKING CHANGE: 2.0 release --------- Co-authored-by: Hoang Dinh <[email protected]> Co-authored-by: Neil Campbell <[email protected]> Co-authored-by: Negar <[email protected]>
Proposed Changes
Command Line Interface Enhancements
ls
command for browsing currently available projects in the workspace, enhancing navigation and project visibility.algokit generate
command by allowing interactive invocation or exporting typed clients from sibling contract projects, streamlining the development workflow.Deployment and Bootstrap Enhancements
algokit deploy
, allowing for more centralized management of projects.algokit bootstrap
with filters by project type or name, facilitating targeted initialization of projects.Run Command Improvements
run
command to support anenv_file
field, prioritizing the loading of custom environment files. This feature defaults to.env
files if present and ultimately loads the global context, ensuring environmental configurations are accurately applied.run
commands when orchestrated from the root, allowing for more refined execution control.commands
underrun
, offering a cross-platform alternative to Unix-like command chaining. This ensures commands are valid and resolved before execution, enhancing command flexibility and reliability.GitHub Actions and Workspace Management
.github
files for standalone projects. With the workspace flag enabled, GitHub actions within standalone projects are not discoverable by default -> hence the fix. Implements a move operation for any.github
folder content at the project's root to the workspace's root.github
folder post-initialization. This change resolves a bug from the 1.12.x release that required manual movement of standalone production preset templates to the workspace structure.TODO
Related template PRs:
algorandfoundation/algokit-react-frontend-template#27
algorandfoundation/algokit-python-template#7
algorandfoundation/algokit-base-template#3
algorandfoundation/algokit-fullstack-template#22