Erection of scaffolding
npm i tsing-miniapp-cli -gCopy the code
Initialize the project
Miniapp init < miniapp name >Copy the code
Enter configuration items
Please enter project description Please enter author name Please enter applet AppIDCopy the code
prompt
The project initialization is completeCopy the code
Into the project
cd< applets name >Copy the code
Install dependencies
npm installCopy the code
Production environment packaging
npm run buildCopy the code
Pre-release environment packaging
npm run stagingCopy the code
Test environment packaging
npm run devCopy the code
During development, listen for file changes and compile
npm run watchCopy the code
The development files are in the SRC directory, and the compiled and published files are in the dist directory
Note:
Contents in dist directory are applet related, use the applet editor to open the dist file preview.
You can use VScode to develop in the SRC directory