WePY installation and initialization

Wepy installation and operation

  • 01. Installation:npm install wepy-cli -g

Note: This installation method is for the 1.x version of wepy, on 2.x versions of the installation procedures, see Wepy official website

  • 02. Initialization Wepy items:wepy init standard myproject

Note: Initialization is carried out in the project root directory; standard template type that is the standard template, run the " wepy list" to view all available project templates; myproject project name initialization can be customized.
Console initialization Case

  • 03. Run the project compiled wepy

. a return to wepy project root directory just created (cd myproject);
b installation project dependencies (. npm install) c
start the compilation (. wepy build --watch)
Note: wepy build --watch command will cycle monitor changes in the source code of the project WePY automatically compiled applet project; generated applet project default by the presence dist directory.

  • 04. The wepy projects into Developer Tools

"Project directory" Please select the root directory of the project wepy

  • 05. About importing some of the problems encountered in VScode wepy projects and solutions in:

. i app.wpy File error: ". wpy" click on the "Choose a language" at the border under VScode -----> configuration file associated ------> Vue
Here Insert Picture Description
ii continue after an error-step operation: recall VScode "settings" -----> Search input field "vetur" -----> will Vetur> Validation: srcipt / Style / Template front of the hook all ticked off (not selected).
Here Insert Picture Description

Released four original articles · won praise 0 · Views 82

Guess you like

Origin blog.csdn.net/Acuncao_ll/article/details/104600765