├── logo
├── logo.jpg
├── logo.png
└── logo64.png
├── assets
└── title.png
├── samples
├── psake
│ ├── .nuget
│ │ ├── nuget.exe
│ │ └── packages.config
│ ├── build.cmd
│ ├── _config.yml
│ ├── config.json
│ ├── build.ps1
│ └── Web.config
├── powershell
│ ├── MagicChunks.dll
│ ├── _config.yml
│ ├── config.json
│ ├── MagicChunks.psm1
│ ├── build.ps1
│ └── Web.config
├── msbuild
│ ├── tools
│ │ ├── MagicChunks.dll
│ │ └── MagicChunks.targets
│ ├── _config.yml
│ ├── config.json
│ ├── build.msbuild
│ └── Web.config
├── netapp
│ ├── packages.config
│ ├── App.config
│ ├── _config.yml
│ ├── config.json
│ ├── TransformSample.sln
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Program.cs
│ ├── TransformSample.csproj
│ └── Web.config
└── cake
│ ├── _config.yml
│ ├── config.json
│ ├── build.cake
│ ├── build.ps1
│ └── Web.config
├── src
├── MagicChunks
│ ├── VSTS
│ │ ├── images
│ │ │ ├── icon.png
│ │ │ ├── icon-large.png
│ │ │ ├── screenshot1.png
│ │ │ ├── screenshot2.png
│ │ │ ├── get-started-2.png
│ │ │ ├── get-started-3.png
│ │ │ ├── get-started-4.png
│ │ │ └── get-started-5.png
│ │ ├── MagicChunks
│ │ │ ├── icon.png
│ │ │ ├── transform.ps1
│ │ │ └── task.json
│ │ ├── videos
│ │ │ └── magic-chunks.gif
│ │ ├── overview.md
│ │ └── vss-extension.json
│ ├── MSBuild
│ │ ├── MagicChunks.targets
│ │ └── TransformConfig.cs
│ ├── Core
│ │ ├── IDocument.cs
│ │ ├── TransformationCollection.cs
│ │ ├── ITransformer.cs
│ │ └── Transformer.cs
│ ├── Documents
│ │ ├── IgnoreCaseComparer.cs
│ │ ├── CustomObjectFactory.cs
│ │ ├── YamlDocument.cs
│ │ ├── JsonDocument.cs
│ │ └── XmlDocument.cs
│ ├── Helpers
│ │ ├── ReflectionExtensions.cs
│ │ ├── JsonExtensions.cs
│ │ └── XmlExtensions.cs
│ ├── Powershell
│ │ └── MagicChunks.psm1
│ ├── MagicChunks.csproj
│ └── TransformTask.cs
├── .editorconfig
├── MagicChunks.Cake
│ ├── MagicChunks.Cake.csproj
│ └── MagicChunksAliases.cs
├── MagicChunks.sln
└── MagicChunks.Tests
│ ├── MagicChunks.Tests.csproj
│ ├── Documents
│ ├── YamlDocumentTests.cs
│ └── JsonDocumentTests.cs
│ └── Core
│ └── TransformerTests.cs
├── .vscode
├── settings.json
└── markdown.css
├── .appveyor.yml
├── LICENSE
├── .gitignore
├── nuspecs
└── MagicChunks.nuspec
└── readme.md
/logo/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/logo/logo.jpg
--------------------------------------------------------------------------------
/logo/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/logo/logo.png
--------------------------------------------------------------------------------
/logo/logo64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/logo/logo64.png
--------------------------------------------------------------------------------
/assets/title.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/assets/title.png
--------------------------------------------------------------------------------
/samples/psake/.nuget/nuget.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/samples/psake/.nuget/nuget.exe
--------------------------------------------------------------------------------
/samples/powershell/MagicChunks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/samples/powershell/MagicChunks.dll
--------------------------------------------------------------------------------
/samples/msbuild/tools/MagicChunks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/samples/msbuild/tools/MagicChunks.dll
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/images/icon.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/MagicChunks/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/MagicChunks/icon.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/images/icon-large.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/images/icon-large.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/images/screenshot1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/images/screenshot1.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/images/screenshot2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/images/screenshot2.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/images/get-started-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/images/get-started-2.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/images/get-started-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/images/get-started-3.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/images/get-started-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/images/get-started-4.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/images/get-started-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/images/get-started-5.png
--------------------------------------------------------------------------------
/src/MagicChunks/VSTS/videos/magic-chunks.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/magic-chunks/magic-chunks-dotnetcore/HEAD/src/MagicChunks/VSTS/videos/magic-chunks.gif
--------------------------------------------------------------------------------
/samples/netapp/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/samples/psake/build.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | cd "%~dp0"
3 | .nuget\NuGet.exe install .nuget\packages.config -OutputDirectory packages
4 | packages\psake.4.4.2\tools\psake.cmd .\build.ps1 %*
--------------------------------------------------------------------------------
/src/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 |
6 | [*.cs]
7 | indent_style = space
8 | end_of_line = crlf
9 | trim_trailing_whitespace = true
10 | insert_final_newline = false
11 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "markdown.styles": [
4 | "file://D:/OpenSource/magic-chunks/.vscode/markdown.css"
5 | ]
6 | }
--------------------------------------------------------------------------------
/samples/msbuild/tools/MagicChunks.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/samples/netapp/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/MagicChunks/MSBuild/MagicChunks.targets:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/samples/psake/.nuget/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/MagicChunks/Core/IDocument.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace MagicChunks.Core
4 | {
5 | public interface IDocument : IDisposable
6 | {
7 | void AddElementToArray(string[] path, string value);
8 | void ReplaceKey(string[] path, string value);
9 | void RemoveKey(string[] path);
10 | }
11 | }
--------------------------------------------------------------------------------
/samples/cake/_config.yml:
--------------------------------------------------------------------------------
1 | baseUrl: "http://localhost/"
2 | permalink: ":year/:title"
3 | frontend_version: 1.0.0
4 | only_frontmatter_categories: true
5 | exclude:
6 | - node_modules\
7 | - styles\
8 | - scripts\
9 | - .vscode\
10 | - package.json
11 | - gulpfile.js
12 | - jsconfig.json
13 | similar_posts:
14 | filter_threshold: 0.3
15 | related_count: 3
--------------------------------------------------------------------------------
/samples/msbuild/_config.yml:
--------------------------------------------------------------------------------
1 | baseUrl: "http://localhost/"
2 | permalink: ":year/:title"
3 | frontend_version: 1.0.0
4 | only_frontmatter_categories: true
5 | exclude:
6 | - node_modules\
7 | - styles\
8 | - scripts\
9 | - .vscode\
10 | - package.json
11 | - gulpfile.js
12 | - jsconfig.json
13 | similar_posts:
14 | filter_threshold: 0.3
15 | related_count: 3
--------------------------------------------------------------------------------
/samples/netapp/_config.yml:
--------------------------------------------------------------------------------
1 | baseUrl: "http://localhost/"
2 | permalink: ":year/:title"
3 | frontend_version: 1.0.0
4 | only_frontmatter_categories: true
5 | exclude:
6 | - node_modules\
7 | - styles\
8 | - scripts\
9 | - .vscode\
10 | - package.json
11 | - gulpfile.js
12 | - jsconfig.json
13 | similar_posts:
14 | filter_threshold: 0.3
15 | related_count: 3
--------------------------------------------------------------------------------
/samples/psake/_config.yml:
--------------------------------------------------------------------------------
1 | baseUrl: "http://localhost/"
2 | permalink: ":year/:title"
3 | frontend_version: 1.0.0
4 | only_frontmatter_categories: true
5 | exclude:
6 | - node_modules\
7 | - styles\
8 | - scripts\
9 | - .vscode\
10 | - package.json
11 | - gulpfile.js
12 | - jsconfig.json
13 | similar_posts:
14 | filter_threshold: 0.3
15 | related_count: 3
--------------------------------------------------------------------------------
/samples/powershell/_config.yml:
--------------------------------------------------------------------------------
1 | baseUrl: "http://localhost/"
2 | permalink: ":year/:title"
3 | frontend_version: 1.0.0
4 | only_frontmatter_categories: true
5 | exclude:
6 | - node_modules\
7 | - styles\
8 | - scripts\
9 | - .vscode\
10 | - package.json
11 | - gulpfile.js
12 | - jsconfig.json
13 | similar_posts:
14 | filter_threshold: 0.3
15 | related_count: 3
--------------------------------------------------------------------------------
/.appveyor.yml:
--------------------------------------------------------------------------------
1 | version: '{build}'
2 | branches:
3 | only:
4 | - master
5 | - net-standard-migration
6 | image: Visual Studio 2019
7 | build_script:
8 | - ps: >-
9 | cd build
10 |
11 | ./build.ps1
12 | test_script:
13 | - ps: >-
14 | cd ..\working\sources\src\MagicChunks.Tests
15 |
16 |
17 | dotnet xunit
18 | artifacts:
19 | - path: working/dotnet/**/*.zip
20 | name: dotnet
21 | - path: working/nuget/*.nupkg
22 | name: nuget
23 | - path: working/vsts/**/*.vsix
24 | name: vsts
--------------------------------------------------------------------------------
/src/MagicChunks/Core/TransformationCollection.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace MagicChunks.Core
4 | {
5 | public class TransformationCollection : Dictionary
6 | {
7 | public TransformationCollection()
8 | {
9 | }
10 |
11 | public TransformationCollection(params string[] keysToRemove)
12 | {
13 | KeysToRemove = keysToRemove;
14 | }
15 |
16 | public IEnumerable KeysToRemove { get; set; }
17 | }
18 | }
--------------------------------------------------------------------------------
/src/MagicChunks/Documents/IgnoreCaseComparer.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace MagicChunks.Documents
4 | {
5 | public class IgnoreCaseComparer : IEqualityComparer