Skip to content

Commit 89cd7ff

Browse files
authored
Merge pull request #30 from specklesystems/dev
2.0.0
2 parents adc8558 + 63649cd commit 89cd7ff

18 files changed

Lines changed: 957 additions & 637 deletions

.circleci/config.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.csharpierignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Directory.Build.targets
2+
Directory.Build.props
3+
4+
**/bin/*
5+
**/obj/*
6+
_ReSharper.SharpCompress/
7+
bin/
8+
*.suo
9+
*.user
10+
TestArchives/Scratch/
11+
TestArchives/Scratch2/
12+
TestResults/
13+
*.nupkg
14+
packages/*/
15+
project.lock.json
16+
tests/TestArchives/Scratch
17+
.vs
18+
tools
19+
.vscode
20+
.idea/
21+
22+
.DS_Store
23+
*.snupkg
24+
coverage.xml
25+
26+
*.received.*

.csharpierrc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
printWidth: 120
2+
useTabs: false
3+
indentSize: 2
4+
preprocessorSymbolSets:
5+
- ""
6+
- "DEBUG"
7+
- "DEBUG,CODE_STYLE"

.editorconfig

Lines changed: 327 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/close-issue.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/open-issue.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/open-ssie.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/workflow.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: .NET Build and Publish
2+
3+
on:
4+
pull_request:
5+
push:
6+
tags: ["v*.*.*"]
7+
8+
jobs:
9+
build:
10+
env:
11+
SOLUTION_NAME: "GrasshopperAsyncComponent.sln"
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 8.x.x
21+
22+
- id: set-version
23+
name: Set version to output
24+
run: |
25+
TAG=${{ github.ref_name }}
26+
if [[ "${{ github.ref }}" != refs/tags/* ]]; then
27+
TAG="v0.0.99.${{ github.run_number }}"
28+
fi
29+
SEMVER="${TAG#v}"
30+
FILE_VERSION=$(echo "$TAG" | sed -E 's/^v([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
31+
FILE_VERSION="$FILE_VERSION.${{ github.run_number }}"
32+
33+
echo "semver=$SEMVER" >> "$GITHUB_OUTPUT"
34+
echo "fileVersion=$FILE_VERSION" >> "$GITHUB_OUTPUT"
35+
36+
echo $SEMVER
37+
echo $FILE_VERSION
38+
39+
- name: restore
40+
run: dotnet restore ${{env.SOLUTION_NAME}}
41+
42+
- name: build
43+
run: |
44+
dotnet build ${{env.SOLUTION_NAME}} \
45+
--configuration release \
46+
--no-restore \
47+
-warnaserror \
48+
-p:Version=${{steps.set-version.outputs.semver}} \
49+
-p:FileVersion=${{steps.set-version.outputs.fileVersion}}
50+
51+
- name: pack
52+
run: dotnet pack ${{env.SOLUTION_NAME}} --no-build -p:Version=${{steps.set-version.outputs.semver}} -p:FileVersion=${{steps.set-version.outputs.fileVersion}}
53+
54+
- name: Push to nuget.org
55+
if: (github.ref_type == 'tag')
56+
run: dotnet nuget push **/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{secrets.CONNECTORS_NUGET_TOKEN }} --skip-duplicate

CodeMetricsConfig.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CA1502: 25
2+
CA1501: 5
3+
CA1506(Method): 50
4+
CA1506(Type): 95

Directory.Build.props

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<Project>
2+
<PropertyGroup Label="Compiler Properties">
3+
<LangVersion>12</LangVersion>
4+
<Nullable>enable</Nullable>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
</PropertyGroup>
7+
<PropertyGroup Label="Nugetspec Package Properties">
8+
<!-- Defines common Nugetspec properties -->
9+
<!-- Inheriting packable projects should define the rest of the nugetspec properties (PackageId, Description) -->
10+
<!-- and may, if needed, override/extend any of these (e.g. PackageTags) -->
11+
<Authors>Speckle</Authors>
12+
<Copyright>Copyright (c) AEC Systems Ltd</Copyright>
13+
<PackageProjectUrl>https://speckle.systems/</PackageProjectUrl>
14+
<PackageReadmeFile>README.md</PackageReadmeFile>
15+
<RepositoryUrl>https://github.com/specklesystems/GrasshopperAsyncComponent</RepositoryUrl>
16+
<RepositoryType>git</RepositoryType>
17+
<PackageTags>speckle</PackageTags>
18+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
19+
</PropertyGroup>
20+
<PropertyGroup Label="Nuget Package Properties">
21+
<IsPackable>false</IsPackable>
22+
<!--Can be set to true in inheriting .props/.csproj files for projects that should be packed-->
23+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
24+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
25+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
26+
</PropertyGroup>
27+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
28+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
29+
</PropertyGroup>
30+
<PropertyGroup Label="Analyers">
31+
<EnableNetAnalyzers>true</EnableNetAnalyzers>
32+
<AnalysisLevel>latest-AllEnabledByDefault</AnalysisLevel>
33+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
34+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
35+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
36+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
37+
<!-- Ingored warnings, some aspirational but too noisy for now, some by design. -->
38+
<NoWarn>
39+
<!--XML comment-->
40+
CS1591;CS1573;
41+
<!-- Globalization rules -->
42+
CA1303;CA1304;CA1305;CA1307;CA1308;CA1309;CA1310;CA1311;
43+
<!-- Logging -->
44+
CA1848;CA1727;
45+
$(NoWarn)
46+
</NoWarn
47+
>
48+
</PropertyGroup>
49+
<PropertyGroup>
50+
<!-- Expose the repository root to all projects -->
51+
<RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot>
52+
</PropertyGroup>
53+
<ItemGroup>
54+
<None Include="..\README.md" Pack="true" PackagePath="\" />
55+
</ItemGroup>
56+
<ItemGroup>
57+
<!-- This file contains the configuration for some analyzer warnings, such as cyclomatic
58+
complexity threshold -->
59+
<AdditionalFiles Include="$(RepositoryRoot)CodeMetricsConfig.txt" />
60+
</ItemGroup>
61+
</Project>

0 commit comments

Comments
 (0)