-
Notifications
You must be signed in to change notification settings - Fork 453
fix: mockServer build and add startup script on template #616
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
fix: mockServer build and add startup script on template #616
Conversation
WalkthroughThe overall change encompasses script updates, dependency additions, and path modifications across multiple Changes
PoemTip Early access features: enabledWe are currently testing the following features in early access:
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (9)
- designer-demo/package.json (2 hunks)
- mockServer/package.json (1 hunks)
- mockServer/src/services/app.js (1 hunks)
- mockServer/src/services/blockCategory.js (1 hunks)
- mockServer/src/services/blockGroup.js (1 hunks)
- mockServer/src/services/schema2code.js (1 hunks)
- mockServer/src/services/source.js (1 hunks)
- package.json (1 hunks)
- packages/engine-cli/template/designer/package.json (2 hunks)
Files skipped from review due to trivial changes (2)
- mockServer/src/services/blockGroup.js
- mockServer/src/services/schema2code.js
Additional comments not posted (8)
packages/engine-cli/template/designer/package.json (2)
7-9: LGTM!The changes to the scripts section are clear and correctly formatted.
27-28: LGTM!The new dependencies are correctly added.
designer-demo/package.json (2)
7-9: LGTM!The changes to the scripts section are clear and correctly formatted.
27-28: LGTM!The new dependencies are correctly added.
mockServer/src/services/app.js (1)
28-28: LGTM!The import path for
appinfo.jsonhas been correctly updated.mockServer/package.json (1)
70-70: Dependency Addition:ncpThe
ncpdependency has been added. Ensure that it is necessary and used appropriately within the codebase.Verification successful
Dependency Addition:
ncpThe
ncpdependency has been added and is used in thebuild:staticscript within themockServer/package.jsonfile for copying files and directories.
- File:
mockServer/package.json
- Line 70:
"ncp": "^2.0.0"- Script:
"build:static": "ncp src/assets dist/assets && ncp src/mock dist/mock && ncp src/database dist/database"Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the usage of the `ncp` package in the codebase. # Test: Search for the usage of `ncp`. Expect: Occurrences of `ncp` usage. rg --type js --type ts --type json 'ncp'Length of output: 218
mockServer/src/services/blockCategory.js (1)
15-15: Import Path Update:appinfo.jsonThe import path for
appinfo.jsonhas been updated to../assets/json/appinfo.json. This change improves the organization of assets.package.json (1)
8-8: Script Update:dev:demoThe
dev:demoscript has been updated to usepnpm --filter designer-demo dev. This change consolidates the functionality and simplifies the script.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- designer-demo/package.json (1 hunks)
Files skipped from review due to trivial changes (1)
- designer-demo/package.json
* fix: moServer build and add startup script on template * fix: preserve only frontend script on demo
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
Chores
@opentiny/tiny-engine-mockandncpas new dependencies to support mock server functionality.