当前位置:网站首页>[wepy2.0] installation

[wepy2.0] installation

2022-07-24 03:17:00 Sweet pastry and wisdom

Tips : When the article is finished , Directories can be generated automatically , How to generate the help text on the right for reference

List of articles


Tips : The following is the main body of this article

One 、 install wepy?

    1、 Global scaffold installation   ---- It only needs to be installed once

        Through the command    npm install @wepy/cli -g    Global installation edition 2.1.0

    2, Verify that... Is installed wepy success

        In the command line   wepy -v       If the output version number Proof of successful installation

Two 、 New projects

 1. Enter at the command line   wepy init standard Project name

  2. The configuration file  

    projectname: Project name   You can leave it blank
    Appid: Applet appid   
    project des.. : Project description You can leave it blank
    Author: author You can leave it blank
    EsLint:   n  Strict mode It's usually no
    State management tools : none  You can choose vuex Best for none

3. Install dependency packages

     1) Entry project     cd  Project name

     2) Installation dependency     npm  i    perhaps   cnpm i 

4. Start project

     npm  run  dev    perhaps    wepy build --watch 

5. Preview project

      Wechat development tools ---- Import ----- node_modules Upper level folder ( Project created )

原网站

版权声明
本文为[Sweet pastry and wisdom]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207222301516641.html