-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat(bananass): create new add command
#390
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
base: main
Are you sure you want to change the base?
feat(bananass): create new add command
#390
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Labels have been automatically applied based on the Conventional Commits specification.🏷️ |
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.
Pull Request Overview
This PR introduces a new "add" command for the bananass CLI that generates problem files for specified Baekjoon problem numbers. Key changes include:
- Adding the "add" command to CLI command registrations and descriptions.
- Introducing new solution templates for various module formats (cjs, mjs, cts, mts).
- Including tests and parsers to validate file generation and case parsing.
Reviewed Changes
Copilot reviewed 18 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/bananass/src/core/cli/descriptions.js | Adds a new description for the "add" command. |
| packages/bananass/src/commands/index.js | Imports and exports the new add command. |
| packages/bananass/src/commands/bananass-add/templates/* | Introduces solution templates for different module formats. |
| packages/bananass/src/commands/bananass-add/parsers* | Implements parser logic and tests for fetching problem test cases. |
| packages/bananass/src/commands/bananass-add/add.js | Implements the core logic for file generation and configuration resolution. |
| packages/bananass/src/cli/bananass-add.js | Configures the CLI command options and integrates the add command. |
Files not reviewed (2)
- packages/bananass/package.json: Language not supported
- packages/bananass/src/commands/bananass-add/fixtures/.gitignore: Language not supported
packages/bananass/src/commands/bananass-add/templates/solution.cjs.txt
Outdated
Show resolved
Hide resolved
….cjs.txt Co-authored-by: Copilot <[email protected]>
Bundle ReportChanges will decrease total bundle size by 9 bytes (-0.0%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: websites-vitepress-esmAssets Changed:
|
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #390 +/- ##
==========================================
- Coverage 96.95% 96.67% -0.29%
==========================================
Files 157 160 +3
Lines 10055 10347 +292
Branches 16 16
==========================================
+ Hits 9749 10003 +254
- Misses 306 344 +38
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
I think an e2e test for this command is necessary to pass the coverage. |
|
안녕하세요, 우선 현재 PR 작성하시느라 수고하신 점 정말 감사히 생각하고 있습니다! 다만, 현재 PR은 아래와 같은 이유로 승인이 어렵습니다.
거의 모든 오픈 소스에서 통용되는 얘기지만, 오픈 소스에 대형 기여를 하기 전에는 항상 이슈를 남겨서 팀 멤버들의 의견을 듣는 과정이 필요합니다. 단순 문서 수정, 버그 수정 정도는 직접 PR을 넣어도 큰 무리가 없습니다. 다만, 수십에서 수백줄이 넘어가는 기능 제안같은 경우, 해당 기능이 팀의 방향성과 일치해야 하며, 팀이 구상하는 큰 그림 안에 위치해야 하기 때문에, 앞선 논의 없이 PR을 보낼 경우 기대와는 다른 결과를 얻을 가능성이 매우 높습니다. 이러한 이유들로, 현재 PR은 우선 보류 예정이며, 추후 Close 될 수도 있다는 점 알려드립니다. 혹시 이런 큰 부분 말고 다른 작은 부분들에 기여 의사가 있으시다면, 깃허브 디스커션에 글을 남겨주세요. 제가 적당한 부분을 선별해서 할당해드리도록 하겠습니다! |
|
@lumirlumir
또 이런 부분 알려주셔서 감사합니다. 아직 오픈 소스 새내기라 배울 점이 많네요. |
Summary
This pull request implements the
addcommand for the bananass CLI.Details
cjs,mjs,cts,mts) using thebananass.configfile..txtextension.How did you test this change?
I tested it using two files:
add.test.jsandparsers.test.js.parsers.test.jsuses a mock HTML file:1000.html.It verifies that the test case is correctly retrieved by using the mocked
axioslibrary and the mock HTML.add.test.jschecks whether the problem files are correctly generated based on the four extensions (cjs, mjs, cts, mts) in thefixturesdirectory.Resolved Issues
No issues have been reported.
너무 심심해서 add 명령어를 구현해봤습니다.
최대한 루밀님의 코드를 따라해보려고 했는데 혹시 놓친 부분이 있을까 걱정이네요.
다음에는 이슈를 발행하고 진행하는게 좋겠죠? 말씀드리지 않고 진행한 것은 죄송합니다..
추가적으로 변경이 필요하거나 테스트가 추가되어야 한다면 말씀해주세요!