Skip to content

refactor(bananass): remove unused clean command and cleanup #364

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

Merged
merged 6 commits into from
Apr 24, 2025

Conversation

lumirlumir
Copy link
Owner

This pull request introduces several changes across the codebase, focusing on removing the clean command and its related configurations, improving descriptions and constants, and making minor enhancements to the CLI commands. Below is a breakdown of the most important changes:

Removal of the clean Command and Related Configurations:

  • Deleted the clean command implementation and its references from packages/bananass/src/cli.js and packages/bananass/src/cli/index.js. ([[1]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-6544fc29ddb1c7332552c44ae9262c59f8067412edbd9d71bbfe3edd7472813dL17), [[2]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-6544fc29ddb1c7332552c44ae9262c59f8067412edbd9d71bbfe3edd7472813dL37), [[3]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-c9e0cfc980e6dc61abd041c44f2a2caafdfff35f9554d653ff592f72b8d30aceL5), [[4]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-c9e0cfc980e6dc61abd041c44f2a2caafdfff35f9554d653ff592f72b8d30aceL21))
  • Removed the ConfigObjectClean struct, its test file, and all references to it from the configuration and struct files. ([[1]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-b3ebadf4e124d8df99ea8d8a854bed6a4aedf341d0ed7a8ebbc96b5f888fc1a5L1-L35), [[2]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-2aef8dafde43ec7527494e562b6da86a83b857f3b083a8f427e737b4426a5ffcL1-L34), [[3]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-7c9403cc68d155c53420fdee20c90330221ea889accdeacb7b660eef9ad3b1b8L1-L3), [[4]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-2d21c40c41e4bb1a28834919b113aef08fc70cdba082052bbcf8add32f0688c1L17), [[5]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-2d21c40c41e4bb1a28834919b113aef08fc70cdba082052bbcf8add32f0688c1L57), [[6]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-31769e506a0388c47f59f4387672cb97c89bc5a112be2176ef09e4938ee4ac0bL19), [[7]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-31769e506a0388c47f59f4387672cb97c89bc5a112be2176ef09e4938ee4ac0bL51))
  • Updated the default configuration object to exclude clean-related properties. ([[1]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-52a8798a5e892009d2bf6b96aaff12cc552d06b6a08c3338dacfcfb2f15d6b89L25), [[2]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-52a8798a5e892009d2bf6b96aaff12cc552d06b6a08c3338dacfcfb2f15d6b89L69-L71), [[3]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-52a8798a5e892009d2bf6b96aaff12cc552d06b6a08c3338dacfcfb2f15d6b89L117))

Improvements to Build Configuration:

  • Introduced NODE_VERSION_BAEKJOON and NODE_VERSION_CODEFORCES constants for better maintainability and replaced hardcoded Node.js version strings in the build configuration. ([[1]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-5b3f690c580caae1e82d3789dd6e78d9b694ac24acc51e672b297b524521fda4R28), [[2]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-5b3f690c580caae1e82d3789dd6e78d9b694ac24acc51e672b297b524521fda4L52-R60), [[3]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-5b3f690c580caae1e82d3789dd6e78d9b694ac24acc51e672b297b524521fda4L201-R202), [[4]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-97d6046c52dcaa9f59ecd0bc5a1ed48d3a91d2c8159901b86ba0b4932b532886R72-R76))
  • Updated the build description to include Babel as part of the bundling process. ([packages/bananass/src/core/cli/descriptions.jsL18-R18](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-4779ca37913f14f5aec15ce530617d866fc03de73d6a32a61264fbc8bdef8a77L18-R18))

CLI Enhancements:

  • Added an alias (create) to the add command and improved its description formatting. ([packages/bananass/src/cli/bananass-add.jsL29-R32](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-7ffec22a0ec92721fc993bfc6e2a84921061a2af373ea0616ad30beb086e4ec6L29-R32))
  • Standardized the descriptions of several CLI commands, replacing uppercase "TODO" with lowercase for consistency. ([[1]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-a5d8a9e06f32b0ff0b266a32af4efc57b670308bd39d3b9a671624ee1cf6a12bL29-R29), [[2]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-a3766741b1280e4c5fd966fa079d8dfe45c2015024400fac2911123805b7bfe9L29-R29), [[3]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-dbd28d7982676e2657a1cae96931ff4fc6b6aaa77f6f0ac058f75dcd0558c690L29-R29))

Minor Refactoring and Cleanup:

  • Updated parameter types in the choose function to allow arrays of strings in addition to strings. ([packages/bananass-utils-console/src/icons/icons.jsL27-R28](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-d3f16eb3ff3fa7e044b861f681f7554eca8a0d838ebe6ef5e26e2adcdb008683L27-R28))
  • Removed outdated comments and improved code organization in configuration files. ([[1]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-52a8798a5e892009d2bf6b96aaff12cc552d06b6a08c3338dacfcfb2f15d6b89L41-R40), [[2]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-52a8798a5e892009d2bf6b96aaff12cc552d06b6a08c3338dacfcfb2f15d6b89L55-R56), [[3]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-52a8798a5e892009d2bf6b96aaff12cc552d06b6a08c3338dacfcfb2f15d6b89R99-R100), [[4]](https://github.com/lumirlumir/npm-bananass/pull/364/files#diff-aed2769c5bf3d27e1aa5d4b258ebffc32608a930d0f9f6a9d4c31e6416de2122L5-L6))

@Copilot Copilot AI review requested due to automatic review settings April 24, 2025 09:02
Copy link

vercel bot commented Apr 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
npm-bananass-websites-vitepress ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 9:02am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
npm-bananass-websites-eslint-config-bananass ⬜️ Skipped (Inspect) Apr 24, 2025 9:02am

@github-actions github-actions bot added 🏷️ scope: bananass Auto-generated label based on Conventional Commits specification for GitHub release notes 🏷️ type: refactor Auto-generated label based on Conventional Commits specification for GitHub release notes labels Apr 24, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the codebase by removing the unused clean command and its related configurations, while also improving build configuration constants and standardizing CLI descriptions.

  • Removed the clean command implementation, tests, and configuration references.
  • Introduced NODE_VERSION_BAEKJOON and NODE_VERSION_CODEFORCES constants to replace hardcoded Node.js version strings.
  • Standardized and improved CLI command descriptions and minor code organization.

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/bananass/src/core/structs/index.js Removed import and export of ConfigObjectClean.
packages/bananass/src/core/structs/config-object/config-object.js Removed clean property from the config object struct.
packages/bananass/src/core/structs/config-object-clean/* Deleted the clean command struct and its tests.
packages/bananass/src/core/fs/find-root-dir/find-root-dir.js Removed the "TODO: Async" comment to clean up the file.
packages/bananass/src/core/constants.js Added NODE_VERSION_BAEKJOON and NODE_VERSION_CODEFORCES constants.
packages/bananass/src/core/conf/default-config-object/default-config-object.js Removed clean property and updated code regions for clarity.
packages/bananass/src/core/cli/descriptions.js Updated build command description to include Babel in the bundling process.
packages/bananass/src/commands/bananass-build/build.js Replaced hardcoded Node.js version strings with NODE_VERSION_BAEKJOON.
packages/bananass/src/cli/* Removed clean command usage and updated CLI command descriptions.
packages/bananass-utils-console/src/theme/theme.js & icons/icons.js Made minor comment and parameter type improvements.

Copy link

Labels have been automatically applied based on the Conventional Commits specification.🏷️

Copy link

codecov bot commented Apr 24, 2025

Bundle Report

Changes will decrease total bundle size by 698.17kB (-46.42%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
websites-vitepress-esm 479.13kB -698.17kB (-59.3%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: websites-vitepress-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
app.js (New) 209.97kB 209.97kB 100.0% 🚀
learn_how-to-parse-input-value.*.js (New) 79.15kB 79.15kB 100.0% 🚀
index.*.js (New) 41.77kB 41.77kB 100.0% 🚀
@localSearchIndexroot.*.js (New) 41.06kB 41.06kB 100.0% 🚀
en_index.*.js (New) 41.05kB 41.05kB 100.0% 🚀
learn_solving-problems-without-bananass-framework.*.js (New) 30.04kB 30.04kB 100.0% 🚀
VPLocalSearchBox.*.js (New) 18.93kB 18.93kB 100.0% 🚀
get-started_installation.*.js (New) 10.77kB 10.77kB 100.0% 🚀
@localSearchIndexen.*.js (New) 1.78kB 1.78kB 100.0% 🚀
en_learn_solving-problems-without-bananass-framework.*.js (New) 1.75kB 1.75kB 100.0% 🚀
en_learn_how-to-parse-input-value.*.js (New) 1.38kB 1.38kB 100.0% 🚀
en_get-started_installation.*.js (New) 1.28kB 1.28kB 100.0% 🚀
plugin-vue_export-helper.*.js (New) 191 bytes 191 bytes 100.0% 🚀
package.json (New) 37 bytes 37 bytes 100.0% 🚀
assets/inter-italic-latin-ext.*.woff2 (Deleted) -120.84kB 0 bytes -100.0% 🗑️
assets/inter-roman-latin-ext.*.woff2 (Deleted) -110.16kB 0 bytes -100.0% 🗑️
assets/chunks/framework.-a8jReyC.js (Deleted) -107.06kB 0 bytes -100.0% 🗑️
assets/inter-italic-latin.*.woff2 (Deleted) -74.78kB 0 bytes -100.0% 🗑️
assets/inter-roman-latin.*.woff2 (Deleted) -67.79kB 0 bytes -100.0% 🗑️
assets/learn_how-to-parse-input-value.md.BWEFRlph.js (Deleted) -64.76kB 0 bytes -100.0% 🗑️
assets/chunks/VPLocalSearchBox.z0iRNEPu.js (Deleted) -61.74kB 0 bytes -100.0% 🗑️
assets/chunks/theme.BdG-uZtj.js (Deleted) -53.55kB 0 bytes -100.0% 🗑️
assets/inter-italic-cyrillic-ext.*.woff2 (Deleted) -43.11kB 0 bytes -100.0% 🗑️
assets/index.md.DuQ8cBuO.js (Deleted) -41.21kB 0 bytes -100.0% 🗑️
assets/index.md.DuQ8cBuO.lean.js (Deleted) -41.21kB 0 bytes -100.0% 🗑️
assets/chunks/@localSearchIndexroot.Dm02agGu.js (Deleted) -41.01kB 0 bytes -100.0% 🗑️
assets/en_index.md.WjMvxGDA.js (Deleted) -40.49kB 0 bytes -100.0% 🗑️
assets/en_index.md.WjMvxGDA.lean.js (Deleted) -40.49kB 0 bytes -100.0% 🗑️
assets/inter-roman-cyrillic-ext.*.woff2 (Deleted) -40.49kB 0 bytes -100.0% 🗑️
assets/inter-italic-greek.*.woff2 (Deleted) -32.56kB 0 bytes -100.0% 🗑️
assets/inter-italic-cyrillic.*.woff2 (Deleted) -31.3kB 0 bytes -100.0% 🗑️
assets/inter-roman-greek.*.woff2 (Deleted) -29.92kB 0 bytes -100.0% 🗑️
assets/inter-roman-cyrillic.*.woff2 (Deleted) -29.16kB 0 bytes -100.0% 🗑️
assets/learn_solving-problems-without-bananass-framework.md.BHjIHipg.js (Deleted) -23.58kB 0 bytes -100.0% 🗑️
assets/inter-italic-greek-ext.*.woff2 (Deleted) -17.4kB 0 bytes -100.0% 🗑️
assets/inter-roman-greek-ext.*.woff2 (Deleted) -16.27kB 0 bytes -100.0% 🗑️
assets/inter-italic-vietnamese.*.woff2 (Deleted) -14.88kB 0 bytes -100.0% 🗑️
assets/inter-roman-vietnamese.*.woff2 (Deleted) -14.07kB 0 bytes -100.0% 🗑️
assets/get-started_installation.md.CWWWI5eH.js (Deleted) -9.44kB 0 bytes -100.0% 🗑️
assets/chunks/@localSearchIndexen.CViqF3zz.js (Deleted) -1.73kB 0 bytes -100.0% 🗑️
assets/app.CtrwNrHV.js (Deleted) -1.35kB 0 bytes -100.0% 🗑️
assets/en_learn_solving-problems-without-bananass-framework.md.D_6N5H27.js (Deleted) -1.12kB 0 bytes -100.0% 🗑️
assets/en_learn_solving-problems-without-bananass-framework.md.D_6N5H27.lean.js (Deleted) -1.12kB 0 bytes -100.0% 🗑️
assets/en_learn_how-to-parse-input-value.md.Dk0yHfvf.js (Deleted) -813 bytes 0 bytes -100.0% 🗑️
assets/en_learn_how-to-parse-input-value.md.Dk0yHfvf.lean.js (Deleted) -813 bytes 0 bytes -100.0% 🗑️
assets/en_get-started_installation.md.CDQV7F8S.js (Deleted) -735 bytes 0 bytes -100.0% 🗑️
assets/en_get-started_installation.md.CDQV7F8S.lean.js (Deleted) -735 bytes 0 bytes -100.0% 🗑️
assets/learn_solving-problems-without-bananass-framework.md.BHjIHipg.lean.js (Deleted) -621 bytes 0 bytes -100.0% 🗑️
assets/learn_how-to-parse-input-value.md.BWEFRlph.lean.js (Deleted) -490 bytes 0 bytes -100.0% 🗑️
assets/get-started_installation.md.CWWWI5eH.lean.js (Deleted) -462 bytes 0 bytes -100.0% 🗑️

Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.32%. Comparing base (3d2047d) to head (db0254b).

@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
- Coverage   98.33%   98.32%   -0.02%     
==========================================
  Files         163      160       -3     
  Lines        9759     9689      -70     
  Branches       16       16              
==========================================
- Hits         9597     9527      -70     
  Misses        162      162              
Files with missing lines Coverage Δ
packages/bananass-utils-console/src/icons/icons.js 100.00% <100.00%> (ø)
packages/bananass-utils-console/src/theme/theme.js 100.00% <100.00%> (ø)
packages/bananass/src/cli.js 100.00% <ø> (ø)
packages/bananass/src/cli/bananass-add.js 100.00% <100.00%> (ø)
packages/bananass/src/cli/bananass-build.js 100.00% <100.00%> (ø)
packages/bananass/src/cli/bananass-lint.js 100.00% <100.00%> (ø)
packages/bananass/src/cli/bananass-login.js 100.00% <100.00%> (ø)
packages/bananass/src/cli/bananass-submit.js 100.00% <100.00%> (ø)
packages/bananass/src/cli/index.js 100.00% <ø> (ø)
...ages/bananass/src/commands/bananass-build/build.js 96.21% <100.00%> (+0.01%) ⬆️
... and 6 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d2047d...db0254b. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lumirlumir lumirlumir merged commit 766e8b5 into main Apr 24, 2025
21 checks passed
@lumirlumir lumirlumir deleted the refactor-remove-unused-clean-command-and-cleanup branch April 24, 2025 09:06
lumirlumir added a commit that referenced this pull request Apr 25, 2025
….0-canary.4` (`prerelease`) (#369)

## Release Information: `v0.1.0-canary.4`

New release of `lumirlumir/npm-bananass` has arrived! 🎉

This PR bumps the package versions from `v0.1.0-canary.3` to
`v0.1.0-canary.4` (`prerelease`).

See
[Actions](https://github.com/lumirlumir/npm-bananass/actions/runs/14666575875)
for more details.

| Info        | Value                      |
| ----------- | -------------------------- |
| Repository  | `lumirlumir/npm-bananass` |
| SEMVER      | `prerelease`     |
| Pre ID      | `canary`      |
| Short SHA   | 07d7535       |
| Old Version | `v0.1.0-canary.3`  |
| New Version | `v0.1.0-canary.4`  |

<!-- Release notes generated using configuration in .github/release.yml
at main -->

## What's Changed
### 🐛 Bug Fixes
* fix(create-bananass): `.gitignore` file is ignored when publish to npm
by @lumirlumir in #368
### 🔄 Continuous Integrations
* ci(*): create `test-cross-platform.yml` by @lumirlumir in
#363
### ♻️ Code Refactoring
* refactor(bananass): remove unused `clean` command and cleanup by
@lumirlumir in #364
* refactor(*): standardize variable names from `inputFile` to `inputStr`
across examples and templates by @lumirlumir in
#365
* refactor(create-bananass): update templates by @lumirlumir in
#339
### 🧪 Tests
* test(bananass): create unit test for bananass build by @lumirlumir in
#366
### ⬆️ Dependency Updates
* chore(deps-dev): bump @types/node from 22.14.1 to 22.15.0 by
@dependabot in #367


**Full Changelog**:
v0.1.0-canary.3...v0.1.0-canary.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ scope: bananass Auto-generated label based on Conventional Commits specification for GitHub release notes 🏷️ type: refactor Auto-generated label based on Conventional Commits specification for GitHub release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy