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 — Consolidate native libraries into main TypeScriptParser package · s97712/TypeScriptParser@5569efc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci.yml
  • README.md
  • TypeScriptParser.Native
    • README.md
    • TypeScriptParser.Native.csproj
    • buildTransitive
      • TypeScriptParser.Native.props
      • TypeScriptParser.Native.targets
  • TypeScriptParser.Tests
    • TypeScriptParser.Tests.csproj
  • TypeScriptParser.sln
  • TypeScriptParser
    • README.md
    • TypeScriptParser.csproj
    • buildTransitive
      • TypeScriptParser.props
      • TypeScriptParser.targets
    • build
      • TypeScriptParser.props
      • TypeScriptParser.targets
    • design
      • build.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232

3333
- name: Copy Native Files
3434
run: |
35-
mkdir -p TypeScriptParser.Native/runtimes/${{ matrix.rid }}/native
36-
cp -r tree-sitter/dist/* TypeScriptParser.Native/runtimes/${{ matrix.rid }}/native/
35+
mkdir -p TypeScriptParser/runtimes/${{ matrix.rid }}/native
36+
cp -r tree-sitter/dist/* TypeScriptParser/runtimes/${{ matrix.rid }}/native/
3737
echo "Files copied for ${{ matrix.rid }}:"
3838
shell: bash
3939

@@ -51,7 +51,7 @@ jobs:
5151
- name: Debug Runtime Files Before Test
5252
run: |
5353
echo "=== Runtime files structure ==="
54-
find ./TypeScriptParser.Native/runtimes/ -type f
54+
find ./TypeScriptParser/runtimes/ -type f
5555
5656
echo "=== Test output directory before testing ==="
5757
ls -la TypeScriptParser.Tests/bin/Release/net9.0/ || echo "Test output directory not found"
@@ -64,7 +64,7 @@ jobs:
6464
uses: actions/upload-artifact@v4
6565
with:
6666
name: native-${{ matrix.rid }}
67-
path: TypeScriptParser.Native/runtimes/
67+
path: TypeScriptParser/runtimes/
6868
retention-days: 1
6969

7070
pack-and-publish:
@@ -83,7 +83,7 @@ jobs:
8383
uses: actions/download-artifact@v4
8484
with:
8585
pattern: native-*
86-
path: TypeScriptParser.Native/runtimes/
86+
path: TypeScriptParser/runtimes/
8787
merge-multiple: true
8888

8989
- name: Set Version
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ dotnet add package TypeScriptParser
2121

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

2727
# 3. 构建和测试
2828
dotnet restore
@@ -40,7 +40,6 @@ dotnet test TypeScriptParser.TestPackage
4040
## 项目结构
4141

4242
- [`TypeScriptParser/`](TypeScriptParser/) - 主要的.NET绑定库
43-
- [`TypeScriptParser.Native/`](TypeScriptParser.Native/) - 跨平台Native库包
4443
- [`TypeScriptParser.Tests/`](TypeScriptParser.Tests/) - 单元测试
4544

4645
## 支持平台
Collapse file

‎TypeScriptParser.Native/README.md‎

Copy file name to clipboardExpand all lines: TypeScriptParser.Native/README.md
-24Lines changed: 0 additions & 24 deletions
This file was deleted.
Collapse file

‎TypeScriptParser.Native/TypeScriptParser.Native.csproj‎

Copy file name to clipboardExpand all lines: TypeScriptParser.Native/TypeScriptParser.Native.csproj
-25Lines changed: 0 additions & 25 deletions
This file was deleted.
Collapse file

‎TypeScriptParser.Native/buildTransitive/TypeScriptParser.Native.props‎

Copy file name to clipboardExpand all lines: TypeScriptParser.Native/buildTransitive/TypeScriptParser.Native.props
-4Lines changed: 0 additions & 4 deletions
This file was deleted.
Collapse file

‎TypeScriptParser.Native/buildTransitive/TypeScriptParser.Native.targets‎

Copy file name to clipboardExpand all lines: TypeScriptParser.Native/buildTransitive/TypeScriptParser.Native.targets
-4Lines changed: 0 additions & 4 deletions
This file was deleted.
Collapse file

‎TypeScriptParser.Tests/TypeScriptParser.Tests.csproj‎

Copy file name to clipboardExpand all lines: TypeScriptParser.Tests/TypeScriptParser.Tests.csproj
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@
2121
<Using Include="Xunit" />
2222
</ItemGroup>
2323

24-
25-
2624
<ItemGroup>
2725
<ProjectReference Include="..\TypeScriptParser\TypeScriptParser.csproj" />
2826
</ItemGroup>
2927

3028
<!-- 导入Native库构建目标 - 必须在项目末尾 -->
31-
<Import Project="..\TypeScriptParser.Native\build\TypeScriptParser.Native.targets"
32-
Condition="Exists('..\TypeScriptParser.Native\build\TypeScriptParser.Native.targets')" />
29+
<Import Project="..\TypeScriptParser\build\TypeScriptParser.targets"
30+
Condition="Exists('..\TypeScriptParser\build\TypeScriptParser.targets')" />
3331

3432

3533
<!-- Native libraries now managed automatically via NuGet packages -->
Collapse file

‎TypeScriptParser.sln‎

Copy file name to clipboardExpand all lines: TypeScriptParser.sln
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptParser", "TypeScr
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptParser.Tests", "TypeScriptParser.Tests\TypeScriptParser.Tests.csproj", "{7DA70DA9-2885-4377-A2C8-F38A635AE7D7}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TypeScriptParser.Native", "TypeScriptParser.Native\TypeScriptParser.Native.csproj", "{5A4230C7-D8EE-4C93-89BA-6B05B03E32EF}"
11-
EndProject
1210
Global
1311
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1412
Debug|Any CPU = Debug|Any CPU
Collapse file

‎TypeScriptParser/README.md‎

Copy file name to clipboardExpand all lines: TypeScriptParser/README.md
-4Lines changed: 0 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ if (root.has_error())
146146
- .NET 9.0 或更高版本
147147
- 支持的平台:Windows (x64), Linux (x64), macOS (ARM64/x64)
148148

149-
## 相关包
150-
151-
- `TypeScriptParser.Native` - 包含跨平台原生库的运行时包
152-
153149
## 许可证
154150

155151
本项目基于MIT许可证开源。
Collapse file

‎TypeScriptParser/TypeScriptParser.csproj‎

Copy file name to clipboard
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
1+
<Project Sdk="Microsoft.NET.Sdk">
32

43
<PropertyGroup>
54
<TargetFramework>netstandard2.0</TargetFramework>
6-
<ImplicitUsings>disable</ImplicitUsings>
7-
<Nullable>disable</Nullable>
85
<PackageId>TypeScriptParser</PackageId>
96
<Description>TypeScript语法解析器 - 基于Tree-sitter的.NET绑定</Description>
10-
<PackageTags>tree-sitter;typescript;parser;syntax;ast</PackageTags>
11-
<NoWarn>$(NoWarn);CS1591</NoWarn>
7+
<PackageTags>tree-sitter;typescript;parser;syntax;ast;native</PackageTags>
8+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
9+
<NoWarn>$(NoWarn);NU5128;CS1591</NoWarn>
1210
</PropertyGroup>
1311

1412
<!-- README文件包含到包中 -->
1513
<ItemGroup>
16-
<None Include="..\README.md" Pack="true" PackagePath="\" />
14+
<None Include="README.md" Pack="true" PackagePath="\" />
1715
</ItemGroup>
1816

19-
<!-- Native库依赖 -->
17+
<!-- 包含runtime和build文件到NuGet包 -->
2018
<ItemGroup>
21-
<ProjectReference Include="..\TypeScriptParser.Native\TypeScriptParser.Native.csproj" />
19+
<Content Include="runtimes/**/*" Pack="true" PackagePath="runtimes/" />
20+
<Content Include="build/**/*" Pack="true" PackagePath="build/" />
21+
<Content Include="buildTransitive/**/*" Pack="true" PackagePath="buildTransitive/" />
2222
</ItemGroup>
2323

2424
</Project>

0 commit comments

Comments
0 (0)
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.