Skip to content

Commit

Permalink
Match v2 to v1
Browse files Browse the repository at this point in the history
Changes from #49
  • Loading branch information
rickbutterfield committed Nov 13, 2024
1 parent 676bbb1 commit 4298115
Show file tree
Hide file tree
Showing 70 changed files with 863 additions and 3,219 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.1738743">
<PropertyGroup>
<ShouldRunNpmInstall>false</ShouldRunNpmInstall>
<ShouldRunBuildScript>false</ShouldRunBuildScript>
<StaticWebAssetSourceId>Umbraco.Community.Sustainability</StaticWebAssetSourceId>
<DebugAssetsDirectory>$(MSBuildProjectDirectory)\dist</DebugAssetsDirectory>
</PropertyGroup>
<ItemGroup>
<None Update="openapitools.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
<None Update="package-lock.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
<None Update="package.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
<None Update="public\resource-checker.js">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
<None Update="public\umbraco-package.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
</ItemGroup>
<ItemGroup>
<TypeScriptConfiguration Update="tsconfig.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</TypeScriptConfiguration>
</ItemGroup>
</Project>
19 changes: 19 additions & 0 deletions src/Umbraco.Community.Sustainability.UI/openapi-ts.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from '@hey-api/openapi-ts';

export default defineConfig({
client: 'fetch',
debug: true,
input: 'http://localhost:26292/umbraco/swagger/sustainability/swagger.json',
output: {
path: 'src/api',
format: 'prettier',
lint: 'eslint',
},
schemas: false,
services: {
asClass: true,
},
types: {
enums: 'typescript',
}
});
Loading

0 comments on commit 4298115

Please sign in to comment.