Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version for NuGet #3

Merged
merged 3 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy_playground.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Deploy Playground
on:
workflow_dispatch
# on:
# workflow_dispatch
jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/deploy_website.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Deploy Website
on:
push:
branches: [ main ]
paths:
- 'Src/Website/**'

# on:
# push:
# branches: [ main ]
# paths:
# - 'Src/Website/**'

jobs:
deploy:
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/format_repositories.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Format Repositories
on:
push:
branches: [ main ]
paths:
- "Src/CSharpier/**/*"

jobs:
format_repositories:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: csharpier
- uses: actions/setup-dotnet@v3
- uses: actions/checkout@v2
with:
repository: belav/csharpier-repos
path: csharpier-repos
- run: dotnet build csharpier/Src/CSharpier.Cli/CSharpier.Cli.csproj -c release
- run: dotnet csharpier/Src/CSharpier.Cli/bin/release/net7.0/dotnet-csharpier.dll csharpier-repos --skip-write
# name: Format Repositories
# on:
# push:
# branches: [ main ]
# paths:
# - "Src/CSharpier/**/*"
#
# jobs:
# format_repositories:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# path: csharpier
# - uses: actions/setup-dotnet@v3
# - uses: actions/checkout@v2
# with:
# repository: belav/csharpier-repos
# path: csharpier-repos
# - run: dotnet build csharpier/Src/CSharpier.Cli/CSharpier.Cli.csproj -c release
# - run: dotnet csharpier/Src/CSharpier.Cli/bin/release/net7.0/dotnet-csharpier-config.dll csharpier-repos --skip-write
2 changes: 1 addition & 1 deletion .github/workflows/publish_nuget.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish Nuget
on:
push:
branches: [ build-fix ]
branches: [ main ]
workflow_dispatch:
jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion Nuget/Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>0.0.3</Version>
<Version>0.28.1.1</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/pisolofin/csharpier-editorconfig</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
20 changes: 19 additions & 1 deletion Nuget/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This is as non opinionated version of [csharpier](https://github.com/belav/csharpier) tool created to add EditorConfig file style guide, allowing users to define and apply custom styling options.
This is as non opinionated version of [csharpier](https://github.com/belav/csharpier) version 0.28.1 tool created to add EditorConfig file style guide, allowing users to define and apply custom styling options.

### Quick Start
Install CSharpier-Config globally using the following command.
Expand All @@ -19,3 +19,21 @@ All documentation you find about `CSharpier` is also valid for `CSharpier-Config

- `dotnet csharpier` -> `dotnet csharpier-config`
- `dotnet-csharpier` -> `dotnet-csharpier-config`

**New feature**

- Support to all [C# formatting options](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options) into `.editorconfig` file

```csharp
# CSharp formatting rules:
[*.cs]
csharp_new_line_before_open_brace = methods, properties, control_blocks, types
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
```

For more information, please refer to the [documentation](/docs/Configuration.md)
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# csharpier-config

This is as non opinionated version of [csharpier](https://github.com/belav/csharpier) tool created to add EditorConfig file style guide, allowing users to define and apply custom styling options.
This is as non opinionated version of [csharpier](https://github.com/belav/csharpier) version 0.28.1 tool created to add EditorConfig file style guide, allowing users to define and apply custom styling options.

I started implementing these options in a separate branch called [feature/brackets](https://github.com/pisolofin/csharpier-editorconfig/tree/feature/brackets).

Expand All @@ -14,3 +14,21 @@ All documentation you find about `CSharpier` is also valid for `CSharpier-Config

- `dotnet csharpier` -> `dotnet csharpier-config`
- `dotnet-csharpier` -> `dotnet-csharpier-config`

**New feature**

- Support to all [C# formatting options](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/csharp-formatting-options) into `.editorconfig` file

```csharp
# CSharp formatting rules:
[*.cs]
csharp_new_line_before_open_brace = methods, properties, control_blocks, types
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
```

For more information, please refer to the [documentation](/docs/Configuration.md)