Skip to content

feat(cli): add build script & update template#582

Merged
chilingling merged 2 commits intoopentiny:refactor/developfrom
hexqi:feat/cli-build
Jun 18, 2024
Merged

feat(cli): add build script & update template#582
chilingling merged 2 commits intoopentiny:refactor/developfrom
hexqi:feat/cli-build

Conversation

@hexqi
Copy link
Collaborator

@hexqi hexqi commented Jun 15, 2024

English | 简体中文

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Built its own designer, fully self-validated

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Background and solution

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

  • New Features

    • Introduced engine-cli, a CLI tool for creating new designers/plugins.
    • Added detailed instructions for development and usage of engine-cli.
  • Bug Fixes

    • Corrected script source path in preview.html from relative to absolute.
  • Refactor

    • Updated dependencies and build scripts for engine-cli using esbuild.
    • Modified import statements and path handling in multiple files.
    • Updated vite.config.js to include dynamic alias resolution based on theme.
  • Documentation

    • Added README.md for engine-cli with comprehensive usage guide.
  • Chores

    • Removed and updated various dependencies across multiple package.json files.

@hexqi hexqi changed the base branch from develop to refactor/develop June 15, 2024 08:11
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 15, 2024

Warning

Rate limit exceeded

@hexqi has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 37 minutes and 33 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 1703908 and a0f975e.

Walkthrough

This update streamlines dependencies across various packages, emphasizing the @opentiny libraries. The engine-cli tool has undergone significant changes, including restructuring imports, improving file path handling, and refining its configuration settings. The engine-cli package now leverages esbuild for build processes, and theme-related configurations have also been updated to enhance flexibility based on selected themes.

Changes

Files/Paths Summary
designer-demo/package.json Removed dependency: @opentiny/tiny-engine-configurator.
packages/design-core/package.json Added dependency: @opentiny/tiny-engine-configurator.
packages/engine-cli/README.md Introduced a new README.md with instructions for the engine-cli tool.
packages/engine-cli/.npmrc Added .npmrc to use @opentiny registry for packages.
packages/engine-cli/bin/cli.js Switched to requiring a distribution file.
packages/engine-cli/package.json Various changes including using esbuild for bundling, updating scripts, and modifying dependencies.
packages/engine-cli/src/commands/create.js Removed fileURLToPath, __filename, and __dirname declarations.
packages/engine-cli/src/index.js Removed import and assignment related to fileURLToPath.
.../engine-cli/template/designer/env/.env.development Updated VITE_CDN_DOMAIN to https://unpkg.com.
.../engine-cli/template/designer/package.json Adjusted dependencies by removing @opentiny/tiny-engine-entry and @opentiny/tiny-engine-configurator.
.../engine-cli/template/designer/preview.html Updated script source path from relative to absolute.
.../engine-cli/template/designer/registry.js Replaced various imports and configuration settings to use services directly from @opentiny/tiny-engine.
.../engine-cli/template/designer/src/configurators/index.js Simplified configurators export.
.../engine-cli/template/designer/src/defineEntry.js Updated import statement to use @opentiny/tiny-engine.
.../engine-cli/template/designer/src/main.js Updated import statement for initHook and HOOK_NAME to use @opentiny/tiny-engine.
.../engine-cli/template/designer/src/preview.js Included new imports and restructured initPreview function.
.../engine-cli/template/designer/vite.config.js Added devAlias object with dynamic alias resolution based on theme.

Poem

In fields of code where changes brew,
New paths and whispers softly grew.
With esbuild swift, our tasks now hum,
Dependencies lighten, the themes succumb.
Engine-cli strides with a nimble grace,
Tiny-engine brings a smiling face.
Rejoice, dear coder, in tweaks so fine,
As dependencies fall into line.


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@hexqi hexqi force-pushed the feat/cli-build branch 2 times, most recently from 08e0ff7 to c5358be Compare June 15, 2024 08:28
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d5eaa6d and 08e0ff7.

Files selected for processing (16)
  • designer-demo/package.json (1 hunks)
  • packages/design-core/package.json (1 hunks)
  • packages/engine-cli/README.md (1 hunks)
  • packages/engine-cli/bin/cli.js (1 hunks)
  • packages/engine-cli/package.json (2 hunks)
  • packages/engine-cli/src/commands/create.js (1 hunks)
  • packages/engine-cli/src/index.js (1 hunks)
  • packages/engine-cli/template/designer/env/.env.development (1 hunks)
  • packages/engine-cli/template/designer/package.json (2 hunks)
  • packages/engine-cli/template/designer/preview.html (1 hunks)
  • packages/engine-cli/template/designer/registry.js (3 hunks)
  • packages/engine-cli/template/designer/src/configurators/index.js (1 hunks)
  • packages/engine-cli/template/designer/src/defineEntry.js (1 hunks)
  • packages/engine-cli/template/designer/src/main.js (1 hunks)
  • packages/engine-cli/template/designer/src/preview.js (1 hunks)
  • packages/engine-cli/template/designer/vite.config.js (1 hunks)
Files skipped from review due to trivial changes (8)
  • designer-demo/package.json
  • packages/design-core/package.json
  • packages/engine-cli/bin/cli.js
  • packages/engine-cli/package.json
  • packages/engine-cli/src/index.js
  • packages/engine-cli/template/designer/env/.env.development
  • packages/engine-cli/template/designer/preview.html
  • packages/engine-cli/template/designer/src/defineEntry.js
Additional context used
LanguageTool
packages/engine-cli/README.md

[uncategorized] ~3-~3: This verb may not be in the correct form. Consider using a different form for this context. (AI_EN_LECTOR_REPLACEMENT_VERB_FORM)
Context: # engine-cli tiny-engine cli for create new designer/plugin/... ## dev ```sh n...

Markdownlint
packages/engine-cli/README.md

26-26: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


5-5: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


14-14: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


19-19: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


6-6: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


15-15: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


20-20: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

Additional comments not posted (10)
packages/engine-cli/template/designer/src/configurators/index.js (1)

3-5: The restructuring of configurators from an array to an object simplifies access patterns. Please ensure all references to configurators in the application are updated to accommodate this change.

packages/engine-cli/template/designer/package.json (1)

16-16: The additions to dependencies and devDependencies align with the project's evolving architecture. Please ensure compatibility tests are conducted to confirm that these new dependencies integrate smoothly with the existing systems.

Also applies to: 25-25

packages/engine-cli/template/designer/src/preview.js (3)

13-16: Ensure that the newly added imports are used appropriately and check for potential conflicts or redundancies.


18-20: The beforeAppCreate function correctly initializes environment-specific hooks. This is a good practice for managing environment configurations dynamically.


22-29: The initPreview function setup appears to be correctly structured to include lifecycle hooks. However, ensure that the beforeAppCreate hook integrates smoothly with other parts of the application lifecycle.

Verification successful

The integration of the beforeAppCreate hook with the application lifecycle appears to be smooth, as evidenced by the multiple instances of its usage and proper invocation in the lifecycle management files.

  • packages/design-core/src/init.js
  • packages/design-core/src/preview/src/main.js

No conflicts or errors were found in the search results.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify integration of `beforeAppCreate` with application lifecycle.

# Test: Search for usage of `beforeAppCreate` in other lifecycle integrations. Expect: No conflicts or errors reported.
rg --type js "beforeAppCreate"

Length of output: 1121

packages/engine-cli/template/designer/src/main.js (1)

16-16: Initialization of the application appears correct. It's important to ensure that the beforeAppCreate lifecycle hook and configurators are properly integrated and tested.

packages/engine-cli/template/designer/vite.config.js (2)

27-32: The merging of configurations is a crucial step to ensure that all settings are correctly applied. Verify that mergeConfig correctly combines defaultConfig and config without losing any settings.

Verification successful

I will now look up the 'vite' documentation for version 4.3.7 to verify the mergeConfig function.


The mergeConfig function from 'vite' is designed to deeply merge two configuration objects. It ensures that all settings from both defaultConfig and config are combined without losing any settings. Based on the documentation and the usage in your codebase, it appears to be used correctly.

  • designer-demo/vite.config.js
  • packages/engine-cli/template/designer/vite.config.js
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that `mergeConfig` combines configurations correctly.

# Test: Log the final configuration to ensure all settings are present. Expect: All settings from both configs appear in the log.
node -e "console.log(require('./packages/engine-cli/template/designer/vite.config.js')())"

Length of output: 170



Script:

#!/bin/bash
# Locate the implementation of the `mergeConfig` function
ast-grep --lang javascript --pattern 'function mergeConfig($_, $_) { $$$ }'

# Search for test cases or usage examples of `mergeConfig`
rg 'mergeConfig' --type js

Length of output: 563



Script:

#!/bin/bash
# Search for all usages of `mergeConfig` in the codebase
rg 'mergeConfig' --type js

# Fetch the 'vite' library version to look up the correct documentation
jq -r '.dependencies.vite' < package.json || jq -r '.devDependencies.vite' < package.json

Length of output: 426



Script:

#!/bin/bash
# Fetch the 'vite' library version from dependencies
jq -r '.dependencies.vite' < package.json

# Fetch the 'vite' library version from devDependencies
jq -r '.devDependencies.vite' < package.json

Length of output: 68


13-20: The dynamic alias configuration is a flexible approach to handle theming based on environment variables. Ensure that the paths resolved are correct and accessible.

packages/engine-cli/template/designer/registry.js (2)

43-44: The updated imports for Layout and Canvas from @opentiny/tiny-engine are used correctly in the registry configuration. This ensures that the components are properly integrated.


Line range hint 55-83: The configuration of the registry appears to be comprehensive and correctly structured. Ensure that all components and plugins listed are properly initialized and available in the project.

Verification successful

The output from the shell script shows initialization logs for various components and plugins such as Layout, Canvas, and Page. This indicates that these components are being initialized and are available in the project.

  • Layout: Found in packages/layout/src/hooks/useLayout.js
  • Canvas: Found in multiple files such as packages/controller/src/hooks/useResource.js, packages/canvas/container/src/CanvasContainer.vue, and packages/canvas/container/src/api/useCanvas.js
  • Page: Found in packages/controller/src/hooks/useResource.js, packages/controller/src/hooks/usePage.js, and packages/plugins/page/src/PageTree.vue

Since the initialization logs for these components are present, it confirms that they are properly initialized and available in the project.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the initialization and availability of components and plugins in the registry configuration.

# Test: Search for initialization logs or errors related to the listed components and plugins. Expect: No errors and proper initialization logs.
rg --type js "init" | grep -E "Layout|Canvas|Materials|Tree|Page"

Length of output: 4536

@hexqi hexqi force-pushed the feat/cli-build branch 2 times, most recently from 58a6e52 to 479f0ec Compare June 15, 2024 08:32
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Outside diff range and nitpick comments (1)
packages/engine-cli/README.md (1)

Line range hint 26-26: Please address the following Markdown formatting issues:

  • Remove multiple consecutive blank lines.
  • Add blank lines around headings and fenced code blocks as required by Markdownlint.

Also applies to: 5-5, 14-14, 19-19, 6-6, 15-15, 20-20

Tools
Markdownlint

5-5: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


14-14: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


19-19: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


6-6: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


15-15: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


20-20: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 778a916 and 42f81a9.

Files selected for processing (17)
  • designer-demo/package.json (1 hunks)
  • packages/design-core/package.json (1 hunks)
  • packages/engine-cli/.npmrc (1 hunks)
  • packages/engine-cli/README.md (1 hunks)
  • packages/engine-cli/bin/cli.js (1 hunks)
  • packages/engine-cli/package.json (2 hunks)
  • packages/engine-cli/src/commands/create.js (1 hunks)
  • packages/engine-cli/src/index.js (1 hunks)
  • packages/engine-cli/template/designer/env/.env.development (1 hunks)
  • packages/engine-cli/template/designer/package.json (2 hunks)
  • packages/engine-cli/template/designer/preview.html (1 hunks)
  • packages/engine-cli/template/designer/registry.js (3 hunks)
  • packages/engine-cli/template/designer/src/configurators/index.js (1 hunks)
  • packages/engine-cli/template/designer/src/defineEntry.js (1 hunks)
  • packages/engine-cli/template/designer/src/main.js (1 hunks)
  • packages/engine-cli/template/designer/src/preview.js (1 hunks)
  • packages/engine-cli/template/designer/vite.config.js (1 hunks)
Files skipped from review due to trivial changes (9)
  • designer-demo/package.json
  • packages/design-core/package.json
  • packages/engine-cli/.npmrc
  • packages/engine-cli/bin/cli.js
  • packages/engine-cli/template/designer/env/.env.development
  • packages/engine-cli/template/designer/package.json
  • packages/engine-cli/template/designer/preview.html
  • packages/engine-cli/template/designer/src/configurators/index.js
  • packages/engine-cli/template/designer/src/defineEntry.js
Additional context used
Markdownlint
packages/engine-cli/README.md

26-26: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


5-5: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


14-14: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


19-19: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


6-6: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


15-15: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


20-20: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

Additional comments not posted (14)
packages/engine-cli/package.json (3)

7-8: The build and development scripts have been updated to use esbuild. Confirm that all necessary options are correctly configured for your project requirements.


20-20: Addition of esbuild as a devDependency supports the new build scripts. Ensure esbuild is compatible with all other dependencies and the Node.js version you are targeting.


5-5: Ensure that the build process correctly outputs the main file to dist/index.js as specified.

packages/engine-cli/README.md (2)

5-10: The documentation for development commands is clear and provides necessary instructions for using the CLI tool in a development environment.

Tools
Markdownlint

5-5: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


6-6: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


12-24: The usage instructions are well-documented, ensuring that users can easily understand how to create and develop projects using the CLI tool.

Tools
Markdownlint

14-14: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


19-19: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


15-15: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


20-20: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

packages/engine-cli/src/index.js (1)

Line range hint 1-15: The setup of the CLI commands using commander is appropriate and follows standard practices for Node.js CLI applications.

packages/engine-cli/src/commands/create.js (1)

19-19: The update to sourcePath calculation reflects a change in the directory structure. Ensure that the new path correctly points to the designer template directory.

Verification successful

The designer directory exists within packages/engine-cli/template/designer/ and contains the expected files. The updated sourcePath in create.js correctly points to this directory.

  • packages/engine-cli/template/designer/ contains:
    • canvas.html
    • env
    • index.html
    • package.json
    • preview.html
    • public
    • registry.js
    • src
    • vite.config.js
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify that the new sourcePath correctly points to the designer template directory.
ls ../template/designer/

Length of output: 95



Script:

#!/bin/bash
# Locate the `designer` directory within the repository
fd designer --type d

# Verify the contents of the located `designer` directory
fd designer --type d --exec ls {}

Length of output: 296

packages/engine-cli/template/designer/src/preview.js (3)

13-16: The imports from @opentiny/tiny-engine and the virtual imports are correctly placed at the top. Ensure that the virtual module 'virtual:svg-icons-register' and '@opentiny/tiny-engine-theme' are configured properly in the Vite or Webpack configuration to avoid module resolution errors.


18-20: The function beforeAppCreate uses the initHook to set up the environment. This is a good use of lifecycle methods to ensure that environment variables are configured before the application initializes.


22-29: The initPreview function setup appears correct. It's important to ensure that the registry and lifeCycles are properly configured and tested since they play a crucial role in the application's initialization phase.

packages/engine-cli/template/designer/src/main.js (1)

16-16: The imports and initializations here are crucial for setting up the application's environment and lifecycle. Ensure that the initHook and HOOK_NAME are correctly used and that the import.meta.env is available in the environment where this script runs.

packages/engine-cli/template/designer/vite.config.js (1)

13-20: The devAlias configuration is a smart way to dynamically set aliases based on environment variables. This allows for more flexible and environment-specific configurations. Make sure that the VITE_THEME environment variable is properly documented and validated to prevent runtime errors.

packages/engine-cli/template/designer/registry.js (2)

43-44: The imports for Layout and Canvas from @opentiny/tiny-engine are correctly placed. Ensure that these components are properly exported from the @opentiny/tiny-engine package and that they are compatible with the rest of the application's architecture.


Line range hint 55-83: The configuration setup in the export default object is comprehensive and well-structured. However, ensure that all components such as Layout, Canvas, and the plugins listed are thoroughly tested, especially since this configuration directly affects the UI and functionality of the designer.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 4

Outside diff range and nitpick comments (1)
packages/engine-cli/README.md (1)

Line range hint 26-26: Remove one of the consecutive blank lines to comply with markdown linting rules.

26d25
< 
Tools
Markdownlint

5-5: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


14-14: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


19-19: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


6-6: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


15-15: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


20-20: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 42f81a9 and 1703908.

Files selected for processing (13)
  • designer-demo/package.json (1 hunks)
  • packages/design-core/package.json (1 hunks)
  • packages/engine-cli/.npmrc (1 hunks)
  • packages/engine-cli/README.md (1 hunks)
  • packages/engine-cli/template/designer/env/.env.development (1 hunks)
  • packages/engine-cli/template/designer/package.json (2 hunks)
  • packages/engine-cli/template/designer/preview.html (1 hunks)
  • packages/engine-cli/template/designer/registry.js (2 hunks)
  • packages/engine-cli/template/designer/src/configurators/index.js (1 hunks)
  • packages/engine-cli/template/designer/src/defineEntry.js (1 hunks)
  • packages/engine-cli/template/designer/src/main.js (1 hunks)
  • packages/engine-cli/template/designer/src/preview.js (1 hunks)
  • packages/engine-cli/template/designer/vite.config.js (1 hunks)
Files skipped from review due to trivial changes (1)
  • packages/engine-cli/template/designer/package.json
Files skipped from review as they are similar to previous changes (11)
  • designer-demo/package.json
  • packages/design-core/package.json
  • packages/engine-cli/.npmrc
  • packages/engine-cli/template/designer/env/.env.development
  • packages/engine-cli/template/designer/preview.html
  • packages/engine-cli/template/designer/registry.js
  • packages/engine-cli/template/designer/src/configurators/index.js
  • packages/engine-cli/template/designer/src/defineEntry.js
  • packages/engine-cli/template/designer/src/main.js
  • packages/engine-cli/template/designer/src/preview.js
  • packages/engine-cli/template/designer/vite.config.js
Additional context used
Markdownlint
packages/engine-cli/README.md

26-26: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


5-5: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


14-14: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


19-19: Expected: 1; Actual: 0; Below (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


6-6: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


15-15: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


20-20: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

@chilingling chilingling merged commit e1e2664 into opentiny:refactor/develop Jun 18, 2024
This was referenced Sep 25, 2024
yy-wow pushed a commit to yy-wow/tiny-engine that referenced this pull request Oct 10, 2024
@coderabbitai coderabbitai bot mentioned this pull request Jan 25, 2025
14 tasks
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.

2 participants