-
Notifications
You must be signed in to change notification settings - Fork 1
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
27 changed files
with
603 additions
and
457 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
*.cs text diff=csharp | ||
*.csproj text merge=union | ||
*.sln text eol=crlf merge=union | ||
*.sln text merge=union |
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,40 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
tags-ignore: ['**'] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_NOLOGO: 1 | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- name: Install .NET | ||
uses: actions/setup-dotnet@v3 | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Restore | ||
run: .\build.ps1 restore | ||
- name: Build | ||
run: .\build.ps1 build --skip restore | ||
- name: Test | ||
run: .\build.ps1 test --skip build | ||
- name: Publish | ||
if: runner.os == 'Windows' && github.repository_owner == 'Faithlife' && github.ref == 'refs/heads/master' | ||
env: | ||
BUILD_BOT_PASSWORD: ${{ secrets.BUILD_BOT_PASSWORD }} | ||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | ||
run: .\build.ps1 publish --skip test |
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,23 +1,16 @@ | ||
# ignore output folders | ||
.vs/ | ||
.idea/ | ||
artifacts/ | ||
bin/ | ||
build/ | ||
cake/ | ||
obj/ | ||
ipch/ | ||
release/ | ||
tools/ | ||
|
||
# ignore user-specific options/cache files | ||
.vs/ | ||
Thumbs.db | ||
*.cache | ||
*.user | ||
*.opensdf | ||
*.sdf | ||
*.suo | ||
*.userprefs | ||
*.log | ||
*.ncrunchproject | ||
*.ncrunchsolution | ||
*.user | ||
launchSettings.json | ||
nCrunchTemp* | ||
_ReSharper* | ||
launchSettings.json | ||
.DS_Store |
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 |
---|---|---|
@@ -1,18 +1,9 @@ | ||
# Contributing to FindReplaceCode | ||
# Contributing | ||
|
||
## Prerequisites | ||
## Publishing | ||
|
||
* Install [Visual Studio 2017](https://www.visualstudio.com/downloads/) or [Visual Studio Code](https://code.visualstudio.com/) with the [editorconfig extension](https://github.com/editorconfig/editorconfig-vscode). | ||
* Install [.NET Core 2.0](https://www.microsoft.com/net/core). | ||
* To publish the library, update the `<VersionPrefix>` in [`Directory.Build.props`](Directory.Build.props), add a corresponding section to the top of [`ReleaseNotes.md`](ReleaseNotes.md), commit, and push. | ||
|
||
## Guidelines | ||
## Template | ||
|
||
* All new code **must** have complete unit tests. | ||
* All public classes, methods, interfaces, enums, etc. **must** have correct XML documentation comments. | ||
* Update [VersionHistory](VersionHistory.md) with a human-readable description of the change. | ||
|
||
## How to Build | ||
|
||
* Clone the repository: `git clone https://github.com/Faithlife/FindReplaceCode.git` | ||
* `cd FindReplaceCode` | ||
* `dotnet test tests/FindReplaceCode.Tests` | ||
* This repository uses the [`faithlife-build`](https://github.com/Faithlife/CSharpTemplate/tree/faithlife-build) template of [`Faithlife/CSharpTemplate`](https://github.com/Faithlife/CSharpTemplate). |
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,37 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<VersionPrefix>1.1.0</VersionPrefix> | ||
<LangVersion>12.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<NoWarn>$(NoWarn);1591;1998;NU1507;NU5105</NoWarn> | ||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<DebugType>embedded</DebugType> | ||
<GitHubOrganization>Faithlife</GitHubOrganization> | ||
<RepositoryName>RepoName</RepositoryName> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/$(GitHubOrganization)/$(RepositoryName)</PackageProjectUrl> | ||
<PackageReleaseNotes>https://github.com/$(GitHubOrganization)/$(RepositoryName)/blob/master/ReleaseNotes.md</PackageReleaseNotes> | ||
<RepositoryUrl>https://github.com/$(GitHubOrganization)/$(RepositoryName).git</RepositoryUrl> | ||
<Authors>Faithlife</Authors> | ||
<Copyright>Copyright $(Authors)</Copyright> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
<AnalysisLevel>latest-all</AnalysisLevel> | ||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<IsPackable>false</IsPackable> | ||
<IsTestProject>false</IsTestProject> | ||
<SelfContained>false</SelfContained> | ||
<UseArtifactsOutput>true</UseArtifactsOutput> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(BuildNumber)' != '' "> | ||
<AssemblyVersion>$(VersionPrefix).$(BuildNumber)</AssemblyVersion> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> | ||
<PackageVersion Include="NUnit" Version="4.0.1" /> | ||
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" /> | ||
<PackageVersion Include="XmlDocMarkdown.Core" Version="2.9.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<GlobalPackageReference Include="Faithlife.Analyzers" Version="1.4.0" /> | ||
<GlobalPackageReference Include="NUnit.Analyzers" Version="3.10.0" /> | ||
<GlobalPackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/CodeStyle/CodeCleanup/Profiles/=Build/@EntryIndexedValue"><?xml version="1.0" encoding="utf-16"?><Profile name="Build"><XAMLCollapseEmptyTags>False</XAMLCollapseEmptyTags><CppClangTidyCleanupDescriptor /><CSCodeStyleAttributes ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" RemoveRedundantParentheses="True" AddMissingParentheses="False" ArrangeBraces="False" ArrangeAttributes="False" ArrangeArgumentsStyle="False" ArrangeCodeBodyStyle="False" ArrangeVarStyle="True" ArrangeTrailingCommas="True" /><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings><EmbraceInRegion>False</EmbraceInRegion><RegionName></RegionName></CSOptimizeUsings><CSReformatCode>True</CSReformatCode><CSArrangeQualifiers>True</CSArrangeQualifiers><CSFixBuiltinTypeReferences>True</CSFixBuiltinTypeReferences><CSShortenReferences>True</CSShortenReferences><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSMakeAutoPropertyGetOnly>True</CSMakeAutoPropertyGetOnly></Profile></s:String></wpf:ResourceDictionary> |
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
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,10 @@ | ||
# Release Notes | ||
|
||
## 1.1.0 | ||
|
||
* Find and replace `.js`, `.py`, and `.ts` files. | ||
* Support snake case and kebab case, i.e. when replacing `SourceText` with `TargetText`, replace `source_text` with `target_text` and `source-text` with `target-text`. | ||
|
||
## 1.0.0 | ||
|
||
* Initial release. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.