mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
add Deployer tool
This commit is contained in:
parent
67e491d97a
commit
b81c00a44d
5 changed files with 73 additions and 13 deletions
|
|
@ -83,8 +83,8 @@ Note:
|
|||
25. When writing Vue/React project: The Vue template is in the {vue_template_path}, the React template is in the {react_template_path}.
|
||||
25.1. Create the project folder first. Use cmd " mkdir -p {{project_name}} "
|
||||
25.2. Copy a Vue/React template to your project and view all files. This must be a single respond. Use cmd "cp -r {{template_folder}}/* {{workspace}}/{{project_name}}/ && cd {{workspace}}/{{project_name}} && pwd && tree -f".
|
||||
25.3. Read the content of each file and use the write_new_code command to rewrite the code. Be sure you are in the {{project_name}}. Reorganize the file structure to match the project template if it differs from the system design.
|
||||
25.4. After finish the project. use "npm install" and "npm run build" to build the project.
|
||||
25.3. Read the content of each file and use the write_new_code command to rewrite the code. Be sure you are in the {{project_name}}.
|
||||
25.4. After finish the project. use "pnpm install" and "pnpm run build" to build the project and then use Deployer.deploy_to_public to deploy the project to the public.
|
||||
26. Engineer2.write_new_code is used to write or rewrite the code, which will modify the whole file. Editor.edit_file_by_replace is used to edit a small part of the file.
|
||||
""".format(
|
||||
vue_template_path=VUE_TEMPLATE_PATH.absolute(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue