Improve Separation of Test Execution and Linting in package.json Script for Scaffolded Projects #9904
shubhamp-sf
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when scaffolding a LoopBack 4 project using the
lb4 app
command, the generated package.json file includes a script that chains the execution of test cases and linting using the posttest script:This approach of combining test execution and linting in a single script could lead to confusion and difficulties in diagnosing issues. Test cases and linting are distinct processes that use different tools, and separating them would enhance clarity and predictability in the development workflow.
Proposed Solution is to remove the posttest script:
- "posttest": "npm run lint"
The purpose of raising this issue is to endorse a cleaner separation of test execution and linting within the LoopBack 4 scaffolded project. While users can manually modify their package.json files, having this improvement directly in the LoopBack CLI would establish a clear and consistent pattern for developers to follow.
I look forward to feedback and discussion on this matter.
Beta Was this translation helpful? Give feedback.
All reactions