Skip to content
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

refactor: cli module #317

Merged
merged 17 commits into from
Jul 4, 2024
Merged

refactor: cli module #317

merged 17 commits into from
Jul 4, 2024

Conversation

c12i
Copy link
Collaborator

@c12i c12i commented Jun 28, 2024

This PR refactors the cli.rs module by extracting each subcommand into its own submodule for improved maintainability and modularity

@c12i c12i requested a review from matthme July 2, 2024 07:15
src/cli/entry_type.rs Outdated Show resolved Hide resolved
src/cli/web_app.rs Show resolved Hide resolved
src/cli/entry_type.rs Outdated Show resolved Hide resolved
@c12i c12i requested a review from matthme July 4, 2024 14:38
@c12i c12i merged commit 444db61 into holochain:develop Jul 4, 2024
8 checks passed
@c12i c12i added the ShouldBackport/0.3 This change should be backported to develop-0.3 label Jul 4, 2024
@c12i c12i removed the ShouldBackport/0.3 This change should be backported to develop-0.3 label Jul 17, 2024
c12i added a commit to c12i/scaffolding that referenced this pull request Jul 17, 2024
* refactor: cli module to command submodules

* add missing doc strings

* fix clippy warnings

* update cli/zome.rs

* inline some functions

* set package manager explicitly on holo integration scripts

* limit inlined functions

* implement FromStr for FieldDefinition

* refactor scaffold/app/cargo.rs

* update entry_type/crud.rs

* fix clippy warnings

* add removed fast track config

* fix clippy warnings

* prefer if else to pattern matching on boolean expressions where possible

* move warning missage to scaffold_entry_type

* remove template arg
c12i added a commit that referenced this pull request Jul 18, 2024
* feat: make scaffolding cli package manager agnostic (#316)

* add package manager module

* add test cases

* add bun support

* refactor test filetree to resemble actual hApp filetree

* update setup_git_environment

* add package manager command handlebars helper

* add test cases for package_manager_command helper

* use package_manager_command helper

* update ui package.json templates

* replace random port package

* set pnpm install command to recursive

* add corepack_20 package to include required packages

* fix test_run_with_pnpm test

* add bun to packages

* add short version for package_manager flag

* use pnpm on tests

* update hello world example ui script

* update template readme

* revert to npm

* add mising version field in tests/package.json

* update rimraf

* fix hello world template

* remove unnecessary depdencencies from vanilla template

* add missing rimraf dependency

* add missing package_manager field to example hbs context data

* add cli docs

* update lib.rs docs

* fix failing doc tests

* limit package manager option to specific commands that only need it

* update docs

* Setting up nix is optional for example apps (#138)

* Setting up nix is optional

* refactor nix set up

---------

Co-authored-by: Collins Muriuki <hello@collinsmuriuki.xyz>

* feat: replace command with git2

* refactor: clean up duplicated templates (#313)

* derive common templates

* derive a scaffold config module and move config related code to it

* remove field types from generic templates

* delete repeated templates

* fix clippy warnings

* further trim down repeated templates

* feat: make scaffolding cli package manager agnostic (#316)

* add package manager module

* add test cases

* add bun support

* refactor test filetree to resemble actual hApp filetree

* update setup_git_environment

* add package manager command handlebars helper

* add test cases for package_manager_command helper

* use package_manager_command helper

* update ui package.json templates

* replace random port package

* set pnpm install command to recursive

* add corepack_20 package to include required packages

* fix test_run_with_pnpm test

* add bun to packages

* add short version for package_manager flag

* use pnpm on tests

* update hello world example ui script

* update template readme

* revert to npm

* add mising version field in tests/package.json

* update rimraf

* fix hello world template

* remove unnecessary depdencencies from vanilla template

* add missing rimraf dependency

* add missing package_manager field to example hbs context data

* add cli docs

* update lib.rs docs

* fix failing doc tests

* limit package manager option to specific commands that only need it

* update docs

* fix dprint dependency and hds test script

* refactor: cli module (#317)

* refactor: cli module to command submodules

* add missing doc strings

* fix clippy warnings

* update cli/zome.rs

* inline some functions

* set package manager explicitly on holo integration scripts

* limit inlined functions

* implement FromStr for FieldDefinition

* refactor scaffold/app/cargo.rs

* update entry_type/crud.rs

* fix clippy warnings

* add removed fast track config

* fix clippy warnings

* prefer if else to pattern matching on boolean expressions where possible

* move warning missage to scaffold_entry_type

* remove template arg

* Update git2 dependency features (#326)

* ci: update git2 dependency features

* Tweak features for git2

---------

Co-authored-by: Collins Muriuki <hello@collinsmuriuki.xyz>

* feat: programatically format generated svelte and vue markup (#333)

* feat: programatically format generated svelte and vue markup

* refactor format code function

* refactor format_nested and vue example templates

* fix clippy warnings

* return Cow from format_nested

* fix inline jsx/tsx expressions not getting formatted

* update vue template

* fix vue templates

* fix: Missing dependency with lit template using `pnpm` (#334)

* fix: add missing tslib dependency on lit template

* use pnpm in ci

* use parameterized package manager in ci wf template

* fix misplaced fix

* bump version

* fix clippy warnings

* add postinstall script for pnpm scaffolded hApps (#338)

* nix flake update

---------

Co-authored-by: ThetaSinner <ThetaSinner@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants