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: 基于Tree-sitter的TypeScript解析器 - .NET绑定

BranchesTags
Open more actions menu

Latest commit

 

History

57 Commits
57 Commits

Folders and files

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

Repository files navigation

TypeScript Parser

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

安装

dotnet add package TypeScriptParser

文档

  • 使用指南 - 快速开始和常用示例
  • API参考 - 完整的API文档

构建项目

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

# 2. 复制运行时文件
RID=$(dotnet --info | grep "RID:" | awk '{print $2}')
mkdir -p TypeScriptParser/runtimes/$RID/native
cp -r tree-sitter/dist/* TypeScriptParser/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.Tests/ - 单元测试

支持平台

  • Linux x64
  • macOS ARM64
  • Windows x64

CI/CD流程

开发流程

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

发布流程

  1. 创建版本标签:
(VERSION=v0.0.1 && git tag $VERSION && git push origin $VERSION)
  1. 自动构建测试发布到NuGet.org
  2. 版本号格式:1.2.0.{构建号}

About

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

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — 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.