Skip to content

refactor(cli): move file operations to ProjectFilesManager class#62

Merged
asdolo merged 1 commit intomasterfrom
refactor/cli_move_file_operations_to_project_files_manager_class
Sep 10, 2024
Merged

refactor(cli): move file operations to ProjectFilesManager class#62
asdolo merged 1 commit intomasterfrom
refactor/cli_move_file_operations_to_project_files_manager_class

Conversation

@asdolo
Copy link
Copy Markdown
Collaborator

@asdolo asdolo commented Sep 10, 2024

What does this do?

Create a ProjectFilesManager class to manage common file operations (removing, renaming and replacing files). It includes types annotations.

Why did you do this?

  • To avoid code repetition within CLI functions.
  • To centralize common file operations in one place.
  • To have a declarative way to execute those common file operations.

Who/what does this impact?

Developers of the CLI project.

How did you test this?

I created a new application with the current version of the CLI, without these changes. Then I created another application with this new CLI, and I compared both projects. As this is just a refactor and no new functionality is being implemented, the two projects should and did have the same contents.

@asdolo asdolo self-assigned this Sep 10, 2024
@asdolo asdolo requested a review from a team as a code owner September 10, 2024 13:21
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 10, 2024

💯 Test Coverage

Lines Statements Branches Functions
Coverage: 51%
50.4% (251/498) 46.57% (102/219) 36.12% (69/191)

😎 Tests Results

Tests Skipped Failures Errors Time
68 0 💤 0 ❌ 0 🔥 27.665s ⏱️
👀 Tests Details • (51%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files50.446.5736.1251.37 
report-only-changed-files is enabled. No files were changed in this commit :)

Comment thread cli/clone-repo.js
Comment thread cli/setup-project.js Outdated
@asdolo asdolo force-pushed the refactor/cli_move_file_operations_to_project_files_manager_class branch from ae8d07c to 0a34d29 Compare September 10, 2024 13:31
@asdolo asdolo force-pushed the refactor/cli_move_file_operations_to_project_files_manager_class branch from 0a34d29 to 29594e4 Compare September 10, 2024 15:14
@asdolo asdolo merged commit 92d09e7 into master Sep 10, 2024
@asdolo asdolo deleted the refactor/cli_move_file_operations_to_project_files_manager_class branch September 10, 2024 18:54
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.

3 participants