-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
73 changed files
with
1,157 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// .commitlintrc.js | ||
/** @type {import('cz-git').UserConfig} */ | ||
module.exports = { | ||
rules: { | ||
// @see: https://commitlint.js.org/#/reference-rules | ||
}, | ||
prompt: { | ||
alias: { fd: 'docs: fix typos' }, | ||
messages: { | ||
type: '选择你要提交的类型 :', | ||
scope: '选择一个提交范围(可选):', | ||
customScope: '请输入自定义的提交范围 :', | ||
subject: '填写简短精炼的变更描述 :\n', | ||
body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n', | ||
breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n', | ||
footerPrefixesSelect: '选择关联issue前缀(可选):', | ||
customFooterPrefix: '输入自定义issue前缀 :', | ||
footer: '列举关联issue (可选) 例如: #31, #I3244 :\n', | ||
confirmCommit: '是否提交或修改commit ?' | ||
}, | ||
types: [ | ||
{ value: 'wip', name: 'wip: 开发之中 | In development ', emoji:'🧠' }, | ||
{ value: 'feat', name: 'feat: 新增功能 | A new feature', emoji:'✨' }, | ||
{ value: 'fix', name: 'fix: 修复缺陷 | A bug fix', emoji:'🐛' }, | ||
{ value: 'docs', name: 'docs: 文档更新 | Documentation only changes', emoji:'📝' }, | ||
{ value: 'style', name: 'style: 代码格式 | Changes that do not affect the meaning of the code', emoji:'💄' }, | ||
{ value: 'refactor', name: 'refactor: 代码重构 | A code change that neither fixes a bug nor adds a feature', emoji:'♻️' }, | ||
{ value: 'perf', name: 'perf: 性能提升 | A code change that improves performance', emoji:'⚡' }, | ||
{ value: 'test', name: 'test: 测试相关 | Adding missing tests or correcting existing tests', emoji:'✅' }, | ||
{ value: 'build', name: 'build: 构建相关 | Changes that affect the build system or external dependencies', emoji:'📦' }, | ||
{ value: 'ci', name: 'ci: 持续集成 | Changes to our CI configuration files and scripts', emoji:'🎡' }, | ||
{ value: 'revert', name: 'revert: 回退代码 | Revert to a commit', emoji:'⏪' }, | ||
{ value: 'chore', name: 'chore: 其他修改 | Other changes that do not modify src or test files', emoji:'🔨' }, | ||
], | ||
useEmoji: true, | ||
emojiAlign: 'center', | ||
useAI: false, | ||
aiNumber: 1, | ||
themeColorCode: '', | ||
scopes: [], | ||
allowCustomScopes: true, | ||
allowEmptyScopes: true, | ||
customScopesAlign: 'bottom', | ||
customScopesAlias: 'custom', | ||
emptyScopesAlias: 'empty', | ||
upperCaseSubject: false, | ||
markBreakingChangeMode: false, | ||
allowBreakingChanges: ['feat', 'fix'], | ||
breaklineNumber: 100, | ||
breaklineChar: '|', | ||
skipQuestions: [], | ||
issuePrefixes: [ | ||
// 如果使用 gitee 作为开发管理 | ||
{ value: 'link', name: 'link: 链接 ISSUES 进行中' }, | ||
{ value: 'closed', name: 'closed: 标记 ISSUES 已完成' } | ||
], | ||
customIssuePrefixAlign: 'top', | ||
emptyIssuePrefixAlias: 'skip', | ||
customIssuePrefixAlias: 'custom', | ||
allowCustomIssuePrefix: true, | ||
allowEmptyIssuePrefix: true, | ||
confirmColorize: true, | ||
maxHeaderLength: Infinity, | ||
maxSubjectLength: Infinity, | ||
minSubjectLength: 0, | ||
scopeOverrides: undefined, | ||
defaultBody: '', | ||
defaultIssues: '', | ||
defaultScope: '', | ||
defaultSubject: '' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
filter: tree:0 | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
- working-directory: ./src/backend/NSExt | ||
run: dotnet build -c Release -f net6.0 | ||
- working-directory: ./src/backend/NSExt | ||
run: dotnet build -c Release -f net7.0 | ||
- working-directory: ./src/backend/NSExt | ||
run: dotnet build -c Release -f net8.0 | ||
- working-directory: ./src/backend/NSExt | ||
run: dotnet pack -c Release --no-build | ||
- uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} | ||
- run: dotnet nuget push ./dist/backend/NSExt/bin/Release/NSExt.${{ steps.get_version.outputs.VERSION }}.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json | ||
- run: dotnet nuget push ./dist/backend/NSExt/bin/Release/NSExt.${{ steps.get_version.outputs.VERSION }}.snupkg --skip-duplicate --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"author": "nsnail", //必须 | ||
"classifications": [ | ||
"Web/WebAPI" | ||
], //必须,这个对应模板的Tags | ||
"name": "NSExt", //必须,这个对应模板的Templates | ||
"identity": "NSExt", //可选,模板的唯一名称 | ||
"shortName": "lop", //必须,这个对应模板的Short Name | ||
"tags": { | ||
"language": "C#", | ||
"type": "project" | ||
}, | ||
"sourceName": "NSExt", // 可选,要替换的名字 | ||
"preferNameDirectory": true, // 可选,添加目录 | ||
"sources": [ | ||
{ | ||
"modifiers": [ | ||
{ | ||
"exclude": [ | ||
"**/.vs/**", | ||
"**/.idea/**", | ||
"**/.git/**", | ||
"**/dist/**", | ||
"**/node_modules/**" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
|
||
## 2.0.0 (2023-12-14) | ||
|
||
|
||
### Features | ||
|
||
* ++ ([e41652d](https://github.com/nsnail/NSExt/commit/e41652d553beda7a2eb1600da4795e07f4260330)) | ||
* 增加一些扩展方法 ([1f26d0f](https://github.com/nsnail/NSExt/commit/1f26d0f28098f7ee98a9a5482096aecd53b85e04)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,36 @@ | ||
<!-- 注意此文件名大小写不可变更 --> | ||
<Project> | ||
<PropertyGroup> | ||
<!-- $(XXX) 定义有顺序 排序请注意--> | ||
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir> | ||
</PropertyGroup> | ||
<Import Project="$(SolutionDir)/build/minver.targets"/> | ||
<PropertyGroup> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<Authors>nsnail</Authors> | ||
<BaseIntermediateOutputPath>$(SolutionDir)/dist/$(MSBuildProjectName)/obj</BaseIntermediateOutputPath> | ||
<BaseOutputPath>$(SolutionDir)/dist/$(MSBuildProjectName)/bin</BaseOutputPath> | ||
<BaseIntermediateOutputPath>$(SolutionDir)/dist/backend/$(MSBuildProjectName)/obj</BaseIntermediateOutputPath> | ||
<BaseOutputPath>$(SolutionDir)/dist/backend/$(MSBuildProjectName)/bin</BaseOutputPath> | ||
<Copyright>© 2006-2023 nsnail</Copyright> | ||
<Description>A .NET extension function library</Description> | ||
<Description>The NSExt is a .NET extension function library</Description> | ||
<EnableBaseIntermediateOutputPathMismatchWarning>false</EnableBaseIntermediateOutputPathMismatchWarning> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<LangVersion>preview</LangVersion> | ||
<MinVerDefaultPreReleaseIdentifiers>beta</MinVerDefaultPreReleaseIdentifiers> | ||
<MinVerTagPrefix>v</MinVerTagPrefix> | ||
<NoWarn>CA1707;IDE0005;IDE0008;IDE0010;IDE0028;IDE0055;IDE0160;IDE0300;IDE0305;RCS1141;RCS1142;RCS1181;S101;S1121;S1135;S125;S2094;S3604;S4663;SYSLIB1045;SA1010;RCS1123;SA1407;IDE0048;S1075;S3928</NoWarn> | ||
<Product>NSExt</Product> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>https://github.com/nsnail/NSExt.git</RepositoryUrl> | ||
<TargetFrameworks>net7.0;net8.0</TargetFrameworks> | ||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks> | ||
<Title>$(AssemblyName)</Title> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="MinVer" Version="5.0.0-alpha.1"> | ||
<PackageReference Include="MinVer" Version="5.0.0-beta.1"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="../GlobalUsings.cs" Link="GlobalUsings.cs"/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.