GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - s97712/TypeScriptParser at b5c990280c56317f3635036057fb247e160905e4

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
TypeScriptParser.Native
TypeScriptParser.Native
 
 
TypeScriptParser.TestPackage
TypeScriptParser.TestPackage
 
 
TypeScriptParser.Tests
TypeScriptParser.Tests
 
 
TypeScriptParser
TypeScriptParser
 
 
artifacts
artifacts
 
 
tree-sitter
tree-sitter
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
Directory.Build.props
Directory.Build.props
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TypeScriptParser.sln
TypeScriptParser.sln
 
 
USAGE_GUIDE.md
USAGE_GUIDE.md
 
 
nuget.config
nuget.config
 
 

Repository files navigation

TypeScript Parser

基于Tree-sitter的TypeScript解析器 - .NET绑定

安装

从NuGet安装

dotnet add package TypeScriptParser

或通过包管理器控制台:

Install-Package TypeScriptParser

也可以访问 NuGet包页面 查看更多安装选项。

构建项目

# 1. 构建native库
(cd tree-sitter/ && make clean && make)

# 2. 复制运行时文件
RID=$(dotnet --info | grep "RID:" | awk '{print $2}')
mkdir -p TypeScriptParser.Native/runtimes/$RID/native
cp -r tree-sitter/dist/* TypeScriptParser.Native/runtimes/$RID/native/

# 3. 构建和测试
dotnet restore
dotnet build -c Release
dotnet test --configuration Release 

# 4. 打包NuGet包
dotnet pack -c Release  -o ./artifacts

# 5. 测试打包
dotnet package add  TypeScriptParser --project TypeScriptParser.TestPackage/ --version 0.0.1-dev
dotnet test TypeScriptParser.TestPackage

项目结构

  • TypeScriptParser/ - 主要的.NET绑定库
  • TypeScriptParser.Native/ - 跨平台Native库包
  • TypeScriptParser.Tests/ - 单元测试

开发指南

Debug模式构建

dotnet build -c Debug
dotnet test --configuration Debug 

支持平台

  • Linux x64
  • macOS ARM64
  • Windows x64

CI/CD流程

开发流程

  1. 创建功能分支
  2. 提交Pull Request → 自动构建测试
  3. 合并到main分支

发布流程

  1. 创建版本标签:git tag v1.2.0 && git push origin v1.2.0
  2. 自动构建测试发布到NuGet.org
  3. 版本号格式:1.2.0.{构建号}

About

基于Tree-sitter的TypeScript解析器 - .NET绑定

Resources

Readme
License
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.