Skip to content

wechat-miniprogram/glass-easel-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a29ce5d · Mar 13, 2025
Feb 12, 2025
Nov 8, 2024
Jan 15, 2025
Feb 7, 2025
Mar 13, 2025
Oct 28, 2024
Nov 13, 2024
Oct 28, 2024
Oct 28, 2024
Oct 28, 2024
Mar 13, 2025
Mar 13, 2025
Oct 28, 2024
Feb 7, 2025
Feb 7, 2025

Repository files navigation

glass-easel-analyzer

A Language Server for glass-easel and glass-easel-miniprogram-adapter

It handles MiniProgram code structure, i.e. WXML/WXSS files.

Still in early development.

Development Guide

Preparation

node.js and rust toolchains are needed.

Furthermore, please read through extension publishing guide for VSCode and install vsce globally.

Initialize Development

Run vscode-extension/build/init.sh (or .bat for Windows) to cleanup and (re)initialize development.

Debug

Press F5 (or go to Run and Debug side panel and Run Extension). An extension debug window will popup.

Run Tests

In command palette, input Tasks: Run Task command and then select the tasks: watch-tests task. Then it will keep running in the terminal tab.

Then go to Test side panel and run tests. Results will be listed in the test results tab.

Run Tests in Terminal

npm test is available in vscode-extension directory.

Run with TEST_OVERWRITE_SNAPSHOT=1 to overwrite test snapshots.

Packaging

Execute vscode-extension/build/[PLATFORM].sh (or .bat for Windows) to build packages for the specified platform.

Publish

After packaging, vscode-extension/build/publish.sh [VERSION] can be used to publish the packages of the specified version.

However, the regular publish should be done through this GitHub Action.