Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo committed Oct 2, 2024
1 parent d84b634 commit 6e1983c
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions packages/seed/fern/definition/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ types:
defaultOutputMode: OutputMode
generatorType: GeneratorType

artifactMetadata: optional<ArtifactMetadata>
buildScripts: optional<BuildScripts>

customFixtureConfig:
type: optional<FixtureConfigurations>
Expand Down Expand Up @@ -108,8 +108,8 @@ types:
docs: |
Environment variables to set when running the generator locally.
ArtifactMetadata:
docs: Metadata relating to the artifact produced by this generator
BuildScripts:
docs: Scripts pertaining to the artifact produced by this generator and how to build them (e.g. yarn install && yarn build for the TS SDK)
properties:
preInstallScript: optional<Script>
installScript: optional<Script>
Expand Down
2 changes: 1 addition & 1 deletion packages/seed/src/commands/register/registerGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function registerGenerator({
generatorType: convertGeneratorType(generatorConfig.generatorType),
generatorLanguage: generatorConfig.language,
dockerImage: generatorConfig.image,
scripts: generatorConfig.artifactMetadata
scripts: generatorConfig.buildScripts
});

// Register generator versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import * as FernSeedConfig from "../../..";

/**
* Metadata relating to the artifact produced by this generator
* Scripts pertaining to the artifact produced by this generator and how to build them (e.g. yarn install && yarn build for the TS SDK)
*/
export interface ArtifactMetadata {
export interface BuildScripts {
preInstallScript?: FernSeedConfig.Script;
installScript?: FernSeedConfig.Script;
compileScript?: FernSeedConfig.Script;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface SeedWorkspaceConfiguration {
defaultCustomConfig?: Record<string, unknown>;
defaultOutputMode: FernSeedConfig.OutputMode;
generatorType: FernSeedConfig.GeneratorType;
artifactMetadata?: FernSeedConfig.ArtifactMetadata;
buildScripts?: FernSeedConfig.BuildScripts;
/** Configuration that will be used for any custom fixture specified by --custom-fixture */
customFixtureConfig?: FernSeedConfig.FixtureConfigurations;
fixtures?: Record<string, FernSeedConfig.FixtureConfigurations[]>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export * from "./PublishConfiguration";
export * from "./TestDockerConfiguration";
export * from "./TestConfiguration";
export * from "./LocalBuildInfo";
export * from "./ArtifactMetadata";
export * from "./BuildScripts";
export * from "./DockerCommand";
export * from "./Script";
export * from "./DockerScriptConfig";
Expand Down
2 changes: 1 addition & 1 deletion seed/csharp-model/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: C# Model
image: fernapi/fern-csharp-model
changelogLocation: ../../generators/csharp/model/versions.yml

artifactMetadata:
buildScripts:
compileScript:
- dotnet build src -c Release /p:ContinuousIntegrationBuild=true .

Expand Down
2 changes: 1 addition & 1 deletion seed/csharp-sdk/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ irVersion: v53
image: fernapi/fern-csharp-sdk
changelogLocation: ../../generators/csharp/sdk/versions.yml

artifactMetadata:
buildScripts:
preInstallScript:
- dotnet tool restore
compileScript:
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: FastAPI
image: fernapi/fern-fastapi-server
changelogLocation: ../../generators/python/fastapi/versions.yml

artifactMetadata:
buildScripts:
installScript:
- poetry shell
- poetry install
Expand Down
2 changes: 1 addition & 1 deletion seed/go-fiber/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: Fiber
image: fernapi/fern-go-fiber
changelogLocation: ../../generators/go/fiber/versions.yml

artifactMetadata:
buildScripts:
compileScript:
- go build -v ./...
testScript:
Expand Down
2 changes: 1 addition & 1 deletion seed/go-model/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: Go Model
image: fernapi/fern-go-model
changelogLocation: ../../generators/go/model/versions.yml

artifactMetadata:
buildScripts:
compileScript:
- go build -v ./...
testScript:
Expand Down
2 changes: 1 addition & 1 deletion seed/go-sdk/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: Go SDK
image: fernapi/fern-go-sdk
changelogLocation: ../../generators/go/sdk/versions.yml

artifactMetadata:
buildScripts:
compileScript:
- go build -v ./...
testScript:
Expand Down
2 changes: 1 addition & 1 deletion seed/java-model/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: Java Model
changelogLocation: ../../generators/java/model/versions.yml
image: fernapi/fern-java-model

artifactMetadata:
buildScripts:
compileScript:
- ./gradlew compileJava

Expand Down
2 changes: 1 addition & 1 deletion seed/java-sdk/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: Java SDK
changelogLocation: ../../generators/java/sdk/versions.yml
image: fernapi/fern-java-sdk

artifactMetadata:
buildScripts:
compileScript:
- ./gradlew compileJava

Expand Down
2 changes: 1 addition & 1 deletion seed/pydantic/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: Pydantic Model
image: fernapi/fern-pydantic-model
changelogLocation: ../../generators/python/pydantic/versions.yml

artifactMetadata:
buildScripts:
installScript:
- poetry shell
- poetry install
Expand Down
2 changes: 1 addition & 1 deletion seed/python-sdk/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: Python SDK
image: fernapi/fern-python-sdk
changelogLocation: ../../generators/python/sdk/versions.yml

artifactMetadata:
buildScripts:
installScript:
- poetry shell
- poetry install
Expand Down
2 changes: 1 addition & 1 deletion seed/ruby-sdk/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: Ruby SDK
image: fernapi/fern-ruby-sdk
changelogLocation: ../../generators/ruby/sdk/versions.yml

artifactMetadata:
buildScripts:
installScript:
- bundle install
testScript:
Expand Down
2 changes: 1 addition & 1 deletion seed/ts-express/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ displayName: TypeScript Express
changelogLocation: ../../generators/typescript/express/versions.yml
image: fernapi/fern-typescript-express

artifactMetadata:
buildScripts:
installScript:
- yarn install
compileScript:
Expand Down

0 comments on commit 6e1983c

Please sign in to comment.