Applet project initialization

1 Initial Project

  1. Run wepy init standard heima_ugocommand to initialize the applet project

  2. Run cd heima_ugointo the project root directory

  3. Run npm installinstall all dependencies

  4. Run wepy build --watchcommand, open real-time compilation feature wepy project

  5. Open the micro-channel developer tools, load wepy project and view the results

  6. Syntax error problem solving ESLint

2 combed project structure

  1. Clean and Reset src -> pages -> index.wpyHome

  2. In the root directory .prettierrcin the configuration file, the new "semi": falseconfiguration to prevent each format code, add a semicolon issue

  3. Clean-up and reset src -> app.wpythe code, styleand scriptthe label, delete unnecessary code

  4. Empty src -> componentsand src -> mixinsdirectory

  5. After combing the project will be completed, uploaded to the cloud code

Guess you like

Origin www.cnblogs.com/it1998/p/11372515.html