Has anyone successfully generated an npm package using the open API generator plugin for Gradle?
I was able to generate .ts model classes using the typescript-angular generator, but I noticed properties like npmName and npmVersion which made me wonder if it's possible to create an npm package with this plugin.
However, I haven't been able to generate the npm package or find any examples online.
Below is an example of the configuration I attempted:
task buildTypeScriptClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
generatorName = "typescript-angular"
inputSpec = "$rootDir/${project.name}/api-definition/${apiDefinitionFile}".toString()
outputDir = "$buildDir".toString()
validateSpec = false
modelPackage = "model.${project.name}-service-client"
configOptions = [
ngVersion : "8.0.0",
npmName : "some-typescript-client",
npmVersion : "1.0.0",
npmRepository: "some repo",
snapshot : "false",
supportsES6 : "true"
]
systemProperties = [
models: "" //generates all model classes
]
}