@catladder/pipeline 0.0.0-refactor-docker-c24f8608 → 0.0.0-refactor-cache-b38c122b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/build/artifacts/createBuildJobArtifact.d.ts +3 -0
- package/dist/build/artifacts/createBuildJobArtifact.js +97 -0
- package/dist/build/base/constants.js +1 -1
- package/dist/build/base/createAppBuildJob.d.ts +4 -3
- package/dist/build/base/createAppBuildJob.js +14 -16
- package/dist/build/base/createBuildJobDefinition.d.ts +6 -0
- package/dist/build/base/createBuildJobDefinition.js +58 -0
- package/dist/build/base/index.d.ts +7 -4
- package/dist/build/base/index.js +14 -5
- package/dist/build/base/writeBuildInfo.js +1 -1
- package/dist/build/base/writeDotEnv.d.ts +2 -1
- package/dist/build/base/writeDotEnv.js +17 -3
- package/dist/build/cache/createJobCache.d.ts +7 -0
- package/dist/build/cache/createJobCache.js +109 -0
- package/dist/build/cache/getAllCacheConfigsFromConfig.d.ts +3 -0
- package/dist/build/cache/getAllCacheConfigsFromConfig.js +62 -0
- package/dist/build/cache/transformLegacyJobCache.d.ts +3 -0
- package/dist/build/cache/transformLegacyJobCache.js +29 -0
- package/dist/build/custom/__tests__/testJob.test.js +12 -15
- package/dist/build/custom/buildJob.js +4 -54
- package/dist/build/custom/testJob.d.ts +1 -1
- package/dist/build/custom/testJob.js +16 -15
- package/dist/build/docker.d.ts +9 -13
- package/dist/build/docker.js +25 -18
- package/dist/build/index.d.ts +13 -6
- package/dist/build/index.js +29 -7
- package/dist/build/node/buildJob.d.ts +6 -2
- package/dist/build/node/buildJob.js +37 -42
- package/dist/build/node/cache.d.ts +7 -6
- package/dist/build/node/cache.js +30 -18
- package/dist/build/node/constants.js +2 -2
- package/dist/build/node/index.d.ts +2 -2
- package/dist/build/node/meteor.js +7 -11
- package/dist/build/node/testJob.d.ts +3 -2
- package/dist/build/node/testJob.js +23 -17
- package/dist/build/node/yarn.d.ts +4 -4
- package/dist/build/node/yarn.js +5 -9
- package/dist/build/rails/build.d.ts +1 -1
- package/dist/build/rails/build.js +10 -5
- package/dist/build/rails/test.d.ts +1 -1
- package/dist/build/rails/test.js +9 -4
- package/dist/build/sbom.js +6 -5
- package/dist/build/types.d.ts +107 -6
- package/dist/build/types.js +7 -1
- package/dist/bundles/catladder-gitlab/index.js +3192 -1681
- package/dist/catladder-gitlab.js +131 -6
- package/dist/config/__tests__/getAllEnvs.test.d.ts +1 -0
- package/dist/config/__tests__/getAllEnvs.test.js +79 -0
- package/dist/config/__tests__/getAllEnvsInAllComponents.test.d.ts +1 -0
- package/dist/config/__tests__/getAllEnvsInAllComponents.test.js +73 -0
- package/dist/config/readConfig.d.ts +2 -2
- package/dist/config/readConfig.js +188 -37
- package/dist/constants.js +1 -1
- package/dist/context/createAllComponentsContext.d.ts +12 -0
- package/dist/context/createAllComponentsContext.js +159 -0
- package/dist/context/createComponentContext.d.ts +11 -0
- package/dist/context/createComponentContext.js +256 -0
- package/dist/context/createWorkspaceContext.d.ts +16 -0
- package/dist/context/createWorkspaceContext.js +173 -0
- package/dist/context/getBuildInfoVariables.d.ts +3 -4
- package/dist/context/getBuildInfoVariables.js +43 -17
- package/dist/context/getEnvironmentContext.d.ts +1 -1
- package/dist/context/getEnvironmentVariables.d.ts +2 -5
- package/dist/context/getEnvironmentVariables.js +5 -4
- package/dist/context/getLabels.js +5 -5
- package/dist/context/index.d.ts +2 -17
- package/dist/context/index.js +2 -164
- package/dist/deploy/base/deploy.d.ts +2 -2
- package/dist/deploy/base/deploy.js +29 -14
- package/dist/deploy/base/index.d.ts +1 -3
- package/dist/deploy/base/rollback.d.ts +1 -1
- package/dist/deploy/base/stop.d.ts +1 -1
- package/dist/deploy/base/variables.js +1 -1
- package/dist/deploy/cloudRun/artifactsRegistry.d.ts +1 -5
- package/dist/deploy/cloudRun/artifactsRegistry.js +10 -11
- package/dist/deploy/cloudRun/cloudRunRevisions.js +4 -5
- package/dist/deploy/cloudRun/createJobs/cloudRunJobs.js +76 -50
- package/dist/deploy/cloudRun/createJobs/cloudRunServices.js +5 -1
- package/dist/deploy/cloudRun/createJobs/common.js +3 -2
- package/dist/deploy/cloudRun/createJobs/index.js +2 -4
- package/dist/deploy/cloudRun/index.d.ts +2 -2
- package/dist/deploy/custom/deployJob.js +8 -9
- package/dist/deploy/custom/index.d.ts +2 -2
- package/dist/deploy/dockerTag/deployJob.js +3 -5
- package/dist/deploy/dockerTag/index.d.ts +2 -2
- package/dist/deploy/index.d.ts +7 -7
- package/dist/deploy/kubernetes/additionalSecretKeys.d.ts +3 -1
- package/dist/deploy/kubernetes/cloudSql/index.js +12 -10
- package/dist/deploy/kubernetes/deployJob.js +6 -9
- package/dist/deploy/kubernetes/index.d.ts +2 -2
- package/dist/deploy/kubernetes/kubeEnv.js +2 -1
- package/dist/deploy/kubernetes/kubeValues.js +10 -10
- package/dist/deploy/kubernetes/mongodb.js +11 -11
- package/dist/deploy/sbom.d.ts +1 -1
- package/dist/deploy/sbom.js +4 -3
- package/dist/deploy/types/custom.d.ts +2 -6
- package/dist/deploy/types/googleCloudRun.d.ts +26 -0
- package/dist/deploy/types/index.d.ts +3 -3
- package/dist/deploy/types/index.js +1 -1
- package/dist/deploy/utils.js +2 -1
- package/dist/packageInfos.d.ts +3 -1
- package/dist/packageInfos.js +13 -7
- package/dist/pipeline/__tests__/getPipelineStages.test.d.ts +1 -0
- package/dist/pipeline/__tests__/getPipelineStages.test.js +73 -0
- package/dist/pipeline/createAllJobs.d.ts +12 -10
- package/dist/pipeline/createAllJobs.js +85 -24
- package/dist/pipeline/createChildPipeline.js +2 -1
- package/dist/pipeline/createJobsForComponent.d.ts +3 -3
- package/dist/pipeline/createJobsForComponent.js +6 -147
- package/dist/pipeline/createJobsForWorkspace.d.ts +3 -0
- package/dist/pipeline/createJobsForWorkspace.js +12 -0
- package/dist/pipeline/createMainPipeline.js +28 -7
- package/dist/pipeline/generatePipelineFiles.d.ts +38 -0
- package/dist/pipeline/generatePipelineFiles.js +79 -27
- package/dist/pipeline/getPipelineStages.d.ts +3 -4
- package/dist/pipeline/getPipelineStages.js +6 -5
- package/dist/pipeline/gitlab/createGitlabJobs.d.ts +4 -18
- package/dist/pipeline/gitlab/createGitlabJobs.js +206 -93
- package/dist/pipeline/gitlab/createGitlabPipeline.js +3 -0
- package/dist/pipeline/gitlab/gitlabReleaseJobs.d.ts +2 -0
- package/dist/pipeline/gitlab/gitlabReleaseJobs.js +3 -0
- package/dist/pipeline/gitlab/sortGitLabJobDefProps.d.ts +7 -0
- package/dist/pipeline/gitlab/sortGitLabJobDefProps.js +27 -0
- package/dist/pipeline/packageManager.d.ts +3 -2
- package/dist/pipeline/packageManager.js +44 -16
- package/dist/pipeline/yarn/yarnUtils.d.ts +2 -2
- package/dist/pipeline/yarn/yarnUtils.js +12 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/config.d.ts +10 -5
- package/dist/types/context.d.ts +91 -19
- package/dist/types/context.js +10 -1
- package/dist/types/environmentContext.d.ts +5 -6
- package/dist/types/gitlab-types.d.ts +2 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/jobDefinition.d.ts +11 -0
- package/dist/types/jobDefinition.js +5 -0
- package/dist/types/jobs.d.ts +8 -2
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +7 -2
- package/dist/utils/jsonParse.d.ts +1 -0
- package/dist/utils/jsonParse.js +14 -0
- package/dist/utils/removeUndefined.d.ts +1 -0
- package/dist/utils/removeUndefined.js +36 -0
- package/dist/utils/writeFiles.d.ts +5 -1
- package/dist/utils/writeFiles.js +10 -2
- package/examples/.test-gen-ignore +1 -0
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +1342 -0
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +1342 -0
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +1326 -0
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +1342 -0
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +1446 -0
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +1342 -0
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +1359 -0
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +1342 -0
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +1342 -0
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +1342 -0
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +1410 -0
- package/examples/__snapshots__/cloud-run-storybook.test.ts.snap +1226 -0
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +1342 -0
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +2826 -0
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +1737 -0
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +1350 -0
- package/examples/__snapshots__/custom-build-job-with-tests.test.ts.snap +1193 -0
- package/examples/__snapshots__/custom-build-job.test.ts.snap +1082 -0
- package/examples/__snapshots__/custom-deploy.test.ts.snap +1100 -0
- package/examples/__snapshots__/custom-envs.test.ts.snap +710 -0
- package/examples/__snapshots__/custom-sbom-java.test.ts.snap +1090 -0
- package/examples/__snapshots__/git-submodule.test.ts.snap +1343 -0
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +1779 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.test.ts.snap +1791 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +1799 -0
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +3353 -0
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +1903 -0
- package/examples/__snapshots__/local-dot-env.test.ts.snap +1342 -0
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +1840 -0
- package/examples/__snapshots__/multiline-var.test.ts.snap +3377 -0
- package/examples/__snapshots__/native-app.test.ts.snap +2158 -0
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +1342 -0
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +1350 -0
- package/examples/__snapshots__/rails-k8s-with-worker-dockerfile.test.ts.snap +1487 -0
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +1471 -0
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +1268 -0
- package/examples/__snapshots__/workspace-api-www-custom-cache.test.ts.snap +2374 -0
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +2354 -0
- package/examples/__utils__/helpers.ts +14 -1
- package/examples/cloud-run-http2.test.ts +11 -0
- package/examples/cloud-run-http2.ts +29 -0
- package/examples/cloud-run-memory-limit.test.ts +11 -0
- package/examples/cloud-run-memory-limit.ts +6 -4
- package/examples/cloud-run-meteor-with-worker.test.ts +11 -0
- package/examples/cloud-run-meteor-with-worker.ts +6 -4
- package/examples/cloud-run-no-cpu-throttling.test.ts +11 -0
- package/examples/cloud-run-no-cpu-throttling.ts +6 -4
- package/examples/cloud-run-no-service.test.ts +11 -0
- package/examples/cloud-run-no-service.ts +5 -4
- package/examples/cloud-run-non-public.test.ts +11 -0
- package/examples/cloud-run-non-public.ts +5 -4
- package/examples/cloud-run-post-stop-job.test.ts +11 -0
- package/examples/cloud-run-post-stop-job.ts +6 -4
- package/examples/cloud-run-service-custom-vpc.test.ts +11 -0
- package/examples/cloud-run-service-custom-vpc.ts +30 -0
- package/examples/cloud-run-service-gen2.test.ts +11 -0
- package/examples/cloud-run-service-gen2.ts +6 -4
- package/examples/cloud-run-service-increase-timout.test.ts +11 -0
- package/examples/cloud-run-service-increase-timout.ts +29 -0
- package/examples/cloud-run-service-with-volumes.test.ts +11 -0
- package/examples/cloud-run-service-with-volumes.ts +6 -4
- package/examples/cloud-run-storybook.test.ts +11 -0
- package/examples/cloud-run-storybook.ts +14 -5
- package/examples/cloud-run-with-ngnix.test.ts +11 -0
- package/examples/cloud-run-with-ngnix.ts +10 -5
- package/examples/cloud-run-with-sql-reuse-db.test.ts +11 -0
- package/examples/cloud-run-with-sql-reuse-db.ts +5 -4
- package/examples/cloud-run-with-sql.test.ts +11 -0
- package/examples/cloud-run-with-sql.ts +7 -20
- package/examples/cloud-run-with-worker.test.ts +11 -0
- package/examples/cloud-run-with-worker.ts +6 -4
- package/examples/custom-build-job-with-tests.test.ts +11 -0
- package/examples/custom-build-job-with-tests.ts +5 -4
- package/examples/custom-build-job.test.ts +11 -0
- package/examples/custom-build-job.ts +5 -4
- package/examples/custom-deploy.test.ts +11 -0
- package/examples/custom-deploy.ts +5 -4
- package/examples/custom-envs.test.ts +11 -0
- package/examples/custom-envs.ts +5 -4
- package/examples/custom-sbom-java.test.ts +11 -0
- package/examples/custom-sbom-java.ts +10 -6
- package/examples/git-submodule.test.ts +11 -0
- package/examples/git-submodule.ts +30 -0
- package/examples/kubernetes-application-customization.test.ts +11 -0
- package/examples/kubernetes-application-customization.ts +6 -4
- package/examples/kubernetes-with-cloud-sql-legacy.test.ts +11 -0
- package/examples/kubernetes-with-cloud-sql-legacy.ts +6 -4
- package/examples/kubernetes-with-cloud-sql.test.ts +11 -0
- package/examples/kubernetes-with-cloud-sql.ts +6 -4
- package/examples/kubernetes-with-jobs.test.ts +11 -0
- package/examples/kubernetes-with-jobs.ts +6 -4
- package/examples/kubernetes-with-mongodb.test.ts +11 -0
- package/examples/kubernetes-with-mongodb.ts +6 -4
- package/examples/local-dot-env.test.ts +11 -0
- package/examples/local-dot-env.ts +6 -4
- package/examples/meteor-kubernetes.test.ts +11 -0
- package/examples/meteor-kubernetes.ts +3 -4
- package/examples/multiline-var.test.ts +11 -0
- package/examples/multiline-var.ts +5 -4
- package/examples/native-app.test.ts +11 -0
- package/examples/native-app.ts +12 -10
- package/examples/node-build-with-custom-image.test.ts +11 -0
- package/examples/node-build-with-custom-image.ts +5 -4
- package/examples/node-build-with-docker-additions.test.ts +11 -0
- package/examples/node-build-with-docker-additions.ts +5 -4
- package/examples/rails-k8s-with-worker-dockerfile.test.ts +9 -0
- package/examples/rails-k8s-with-worker.test.ts +11 -0
- package/examples/rails-k8s-with-worker.ts +4 -10
- package/examples/wait-for-other-deploy.test.ts +11 -0
- package/examples/wait-for-other-deploy.ts +5 -4
- package/examples/workspace-api-www-custom-cache.test.ts +11 -0
- package/examples/workspace-api-www-custom-cache.ts +51 -0
- package/examples/workspace-api-www.test.ts +11 -0
- package/examples/workspace-api-www.ts +45 -0
- package/package.json +10 -6
- package/scripts/bundle +1 -1
- package/scripts/generate-examples-test.ts +91 -0
- package/scripts/tsconfig.json +7 -0
- package/src/build/artifacts/createBuildJobArtifact.ts +61 -0
- package/src/build/base/constants.ts +1 -1
- package/src/build/base/createAppBuildJob.ts +37 -26
- package/src/build/base/createBuildJobDefinition.ts +37 -0
- package/src/build/base/index.ts +35 -6
- package/src/build/base/writeBuildInfo.ts +1 -1
- package/src/build/base/writeDotEnv.ts +17 -3
- package/src/build/cache/createJobCache.ts +82 -0
- package/src/build/cache/getAllCacheConfigsFromConfig.ts +26 -0
- package/src/build/cache/transformLegacyJobCache.ts +14 -0
- package/src/build/custom/__tests__/testJob.test.ts +9 -12
- package/src/build/custom/buildJob.ts +5 -28
- package/src/build/custom/testJob.ts +14 -13
- package/src/build/docker.ts +40 -28
- package/src/build/index.ts +39 -7
- package/src/build/node/buildJob.ts +62 -68
- package/src/build/node/cache.ts +55 -32
- package/src/build/node/constants.ts +2 -2
- package/src/build/node/index.ts +4 -2
- package/src/build/node/meteor.ts +12 -25
- package/src/build/node/testJob.ts +40 -24
- package/src/build/node/yarn.ts +12 -10
- package/src/build/rails/build.ts +17 -7
- package/src/build/rails/test.ts +17 -9
- package/src/build/sbom.ts +12 -7
- package/src/build/types.ts +140 -6
- package/src/catladder-gitlab.ts +11 -6
- package/src/config/__tests__/__snapshots__/getAllEnvs.test.ts.snap +31 -0
- package/src/config/__tests__/__snapshots__/getAllEnvsInAllComponents.test.ts.snap +15 -0
- package/src/config/__tests__/getAllEnvs.test.ts +71 -0
- package/src/config/__tests__/getAllEnvsInAllComponents.test.ts +63 -0
- package/src/config/readConfig.ts +12 -17
- package/src/context/createAllComponentsContext.ts +31 -0
- package/src/context/createComponentContext.ts +135 -0
- package/src/context/createWorkspaceContext.ts +56 -0
- package/src/context/getBuildInfoVariables.ts +26 -30
- package/src/context/getEnvironmentContext.ts +2 -2
- package/src/context/getEnvironmentVariables.ts +12 -7
- package/src/context/getLabels.ts +3 -3
- package/src/context/index.ts +1 -76
- package/src/deploy/base/deploy.ts +46 -32
- package/src/deploy/base/index.ts +8 -3
- package/src/deploy/base/rollback.ts +1 -4
- package/src/deploy/base/stop.ts +1 -4
- package/src/deploy/base/variables.ts +1 -1
- package/src/deploy/cloudRun/artifactsRegistry.ts +8 -14
- package/src/deploy/cloudRun/cloudRunRevisions.ts +3 -5
- package/src/deploy/cloudRun/createJobs/cloudRunJobs.ts +109 -74
- package/src/deploy/cloudRun/createJobs/cloudRunServices.ts +5 -1
- package/src/deploy/cloudRun/createJobs/common.ts +2 -2
- package/src/deploy/cloudRun/createJobs/index.ts +1 -4
- package/src/deploy/cloudRun/index.ts +68 -67
- package/src/deploy/custom/deployJob.ts +9 -8
- package/src/deploy/custom/index.ts +2 -2
- package/src/deploy/dockerTag/deployJob.ts +2 -5
- package/src/deploy/dockerTag/index.ts +8 -7
- package/src/deploy/index.ts +11 -9
- package/src/deploy/kubernetes/additionalSecretKeys.ts +3 -1
- package/src/deploy/kubernetes/cloudSql/index.ts +8 -5
- package/src/deploy/kubernetes/deployJob.ts +3 -6
- package/src/deploy/kubernetes/index.ts +42 -41
- package/src/deploy/kubernetes/kubeEnv.ts +1 -1
- package/src/deploy/kubernetes/kubeValues.ts +3 -3
- package/src/deploy/kubernetes/mongodb.ts +6 -6
- package/src/deploy/sbom.ts +11 -7
- package/src/deploy/types/custom.ts +3 -7
- package/src/deploy/types/googleCloudRun.ts +29 -0
- package/src/deploy/types/index.ts +2 -2
- package/src/deploy/utils.ts +1 -1
- package/src/packageInfos.ts +7 -3
- package/src/pipeline/__tests__/__snapshots__/getPipelineStages.test.ts.snap +69 -0
- package/src/pipeline/__tests__/getPipelineStages.test.ts +63 -0
- package/src/pipeline/createAllJobs.ts +61 -41
- package/src/pipeline/createChildPipeline.ts +2 -0
- package/src/pipeline/createJobsForComponent.ts +7 -31
- package/src/pipeline/createJobsForWorkspace.ts +12 -0
- package/src/pipeline/createMainPipeline.ts +43 -23
- package/src/pipeline/generatePipelineFiles.ts +63 -25
- package/src/pipeline/getPipelineStages.ts +6 -5
- package/src/pipeline/gitlab/createGitlabJobs.ts +276 -116
- package/src/pipeline/gitlab/createGitlabPipeline.ts +5 -1
- package/src/pipeline/gitlab/gitlabReleaseJobs.ts +5 -0
- package/src/pipeline/gitlab/sortGitLabJobDefProps.ts +59 -0
- package/src/pipeline/packageManager.ts +27 -11
- package/src/pipeline/yarn/yarnUtils.ts +9 -6
- package/src/types/config.ts +12 -2
- package/src/types/context.ts +124 -20
- package/src/types/environmentContext.ts +6 -7
- package/src/types/gitlab-types.ts +2 -2
- package/src/types/index.ts +1 -0
- package/src/types/jobDefinition.ts +34 -0
- package/src/types/jobs.ts +8 -9
- package/src/utils/index.ts +4 -1
- package/src/utils/jsonParse.ts +7 -0
- package/src/utils/removeUndefined.ts +4 -0
- package/src/utils/writeFiles.ts +14 -1
- package/examples/__snapshots__/cloud-run-memory-limit.ts.snap +0 -1971
- package/examples/__snapshots__/cloud-run-meteor-with-worker.ts.snap +0 -1939
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.ts.snap +0 -1971
- package/examples/__snapshots__/cloud-run-no-service.ts.snap +0 -2023
- package/examples/__snapshots__/cloud-run-non-public.ts.snap +0 -1971
- package/examples/__snapshots__/cloud-run-post-stop-job.ts.snap +0 -1982
- package/examples/__snapshots__/cloud-run-service-gen2.ts.snap +0 -1971
- package/examples/__snapshots__/cloud-run-service-with-volumes.ts.snap +0 -2015
- package/examples/__snapshots__/cloud-run-storybook.ts.snap +0 -1687
- package/examples/__snapshots__/cloud-run-with-ngnix.ts.snap +0 -1971
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.ts.snap +0 -3947
- package/examples/__snapshots__/cloud-run-with-sql.ts.snap +0 -3946
- package/examples/__snapshots__/cloud-run-with-worker.ts.snap +0 -1979
- package/examples/__snapshots__/custom-build-job-with-tests.ts.snap +0 -1795
- package/examples/__snapshots__/custom-build-job.ts.snap +0 -1495
- package/examples/__snapshots__/custom-deploy.ts.snap +0 -1733
- package/examples/__snapshots__/custom-envs.ts.snap +0 -1181
- package/examples/__snapshots__/custom-sbom-java.ts.snap +0 -1503
- package/examples/__snapshots__/kubernetes-application-customization.ts.snap +0 -2462
- package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.ts.snap +0 -2474
- package/examples/__snapshots__/kubernetes-with-cloud-sql.ts.snap +0 -2482
- package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +0 -4570
- package/examples/__snapshots__/kubernetes-with-mongodb.ts.snap +0 -2586
- package/examples/__snapshots__/local-dot-env.ts.snap +0 -1971
- package/examples/__snapshots__/meteor-kubernetes.ts.snap +0 -2507
- package/examples/__snapshots__/multiline-var.ts.snap +0 -4500
- package/examples/__snapshots__/native-app.ts.snap +0 -3171
- package/examples/__snapshots__/node-build-with-custom-image.ts.snap +0 -1971
- package/examples/__snapshots__/node-build-with-docker-additions.ts.snap +0 -1979
- package/examples/__snapshots__/rails-k8s-with-worker.ts.snap +0 -4029
- package/examples/__snapshots__/wait-for-other-deploy.ts.snap +0 -2117
package/dist/types/context.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { StringOrBashExpression } from "../bash/BashExpression";
|
|
2
|
-
import type {
|
|
2
|
+
import type { BuildConfigFromWorkspace, BuildConfigStandalone, WorkspaceBuildConfig } from "../build";
|
|
3
3
|
import type { PredefinedVariables, SecretEnvVar } from "../context";
|
|
4
|
-
import type {
|
|
4
|
+
import type { DeployConfig } from "../deploy";
|
|
5
|
+
import type { ComponentConfig, Config, EnvType, PipelineTrigger } from "./config";
|
|
5
6
|
import type { BaseStage, CatladderJob } from "./jobs";
|
|
6
7
|
import type { PipelineType } from "./pipeline";
|
|
7
8
|
export type UnspecifiedEnvVars = Record<string, StringOrBashExpression | undefined | null>;
|
|
@@ -27,6 +28,9 @@ export type Environment = {
|
|
|
27
28
|
* the full name of the app. We use this as RELEASE_NAME in kubernetes and the service name in google cloud run
|
|
28
29
|
*/
|
|
29
30
|
fullName: StringOrBashExpression;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated this is the same as context.env, use that instead
|
|
33
|
+
*/
|
|
30
34
|
shortName: string;
|
|
31
35
|
/**
|
|
32
36
|
* the environment slug without component name.
|
|
@@ -48,44 +52,112 @@ export type YarnWorkspace = {
|
|
|
48
52
|
workspaceDependencies: string[];
|
|
49
53
|
mismatchedWorkspaceDependencies: string[];
|
|
50
54
|
};
|
|
51
|
-
export type
|
|
55
|
+
export type YarnPackageManagerInfoBase = {
|
|
52
56
|
type: "yarn";
|
|
53
57
|
version: string;
|
|
54
58
|
workspaces: YarnWorkspace[];
|
|
55
|
-
currentWorkspace?: YarnWorkspace;
|
|
56
59
|
isClassic: boolean;
|
|
60
|
+
};
|
|
61
|
+
export type YarnPackageManagerInfoComponent = YarnPackageManagerInfoBase & {
|
|
62
|
+
currentWorkspace?: YarnWorkspace;
|
|
57
63
|
componentIsInWorkspace: boolean;
|
|
58
64
|
pathsToCopyInDocker: string[];
|
|
59
65
|
currentWorkspaceDependencies: string[];
|
|
60
66
|
};
|
|
61
|
-
export type
|
|
67
|
+
export type PackageManagerInfoComponent = YarnPackageManagerInfoComponent;
|
|
68
|
+
/**
|
|
69
|
+
* not confuse with yarn workspaces
|
|
70
|
+
*/
|
|
71
|
+
export type PackageManagerInfoBase = YarnPackageManagerInfoBase;
|
|
62
72
|
export type ContextBeforeConfig = {
|
|
63
73
|
componentName: string;
|
|
64
74
|
fullConfig: Config;
|
|
65
|
-
packageManagerInfo?:
|
|
75
|
+
packageManagerInfo?: PackageManagerInfoComponent;
|
|
66
76
|
};
|
|
67
|
-
export type
|
|
77
|
+
export type BuildContextBase = {
|
|
78
|
+
/**
|
|
79
|
+
* the directory where the component or workspace is located
|
|
80
|
+
*/
|
|
68
81
|
dir: string;
|
|
69
|
-
|
|
70
|
-
|
|
82
|
+
/**
|
|
83
|
+
* directories of all components that are part of the build.
|
|
84
|
+
* In case of a standalone build, this is just the dir of the component + yarn workspace dependencies (if mode = all)
|
|
85
|
+
*
|
|
86
|
+
* in case of a workspace this contains all components in the workspace (+ yarn workspace dependencies if mode = all)
|
|
87
|
+
*/
|
|
88
|
+
getComponentDirs: (mode: "direct" | "all") => string[];
|
|
89
|
+
};
|
|
90
|
+
export type BuildContextComponentBase = BuildContextBase;
|
|
91
|
+
export type BuildContextStandalone<C extends BuildConfigStandalone = BuildConfigStandalone> = BuildContextComponentBase & {
|
|
92
|
+
config: C;
|
|
93
|
+
type: "standalone";
|
|
94
|
+
buildType: C["type"];
|
|
95
|
+
};
|
|
96
|
+
export type BuildContextFromWorkspace = BuildContextComponentBase & {
|
|
97
|
+
config: BuildConfigFromWorkspace;
|
|
98
|
+
workspaceName: string;
|
|
99
|
+
buildType: WorkspaceBuildConfig["type"];
|
|
100
|
+
/**
|
|
101
|
+
* merged docker config
|
|
102
|
+
*/
|
|
103
|
+
workspaceBuildConfig: WorkspaceBuildConfig;
|
|
104
|
+
type: "fromWorkspace";
|
|
105
|
+
};
|
|
106
|
+
export type BuildContextWorkspace = BuildContextBase & {
|
|
107
|
+
type: "workspace";
|
|
108
|
+
buildType: WorkspaceBuildConfig["type"];
|
|
109
|
+
config: WorkspaceBuildConfig;
|
|
110
|
+
};
|
|
111
|
+
export type BuildContextComponent = BuildContextStandalone | BuildContextFromWorkspace;
|
|
112
|
+
export type BuildContext = BuildContextComponent | BuildContextWorkspace;
|
|
113
|
+
export type DeployContext = {
|
|
114
|
+
config: DeployConfig;
|
|
71
115
|
};
|
|
72
|
-
export type ComponentContext = {
|
|
116
|
+
export type ComponentContext<BC extends BuildContextComponent = BuildContextComponent> = {
|
|
117
|
+
type: "component";
|
|
118
|
+
env: string;
|
|
119
|
+
/**
|
|
120
|
+
* the name of the component
|
|
121
|
+
*/
|
|
122
|
+
name: string;
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated use name instead
|
|
125
|
+
*/
|
|
73
126
|
componentName: string;
|
|
127
|
+
/**
|
|
128
|
+
* the merged component config.
|
|
129
|
+
*
|
|
130
|
+
* use build.config and deploy.config instead if you need something from there
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
74
133
|
componentConfig: ComponentConfig;
|
|
75
|
-
|
|
134
|
+
build: BC;
|
|
135
|
+
deploy?: DeployContext | null;
|
|
76
136
|
fullConfig: Config;
|
|
77
137
|
environment: Environment;
|
|
78
138
|
trigger?: PipelineTrigger;
|
|
79
139
|
pipelineType?: PipelineType;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
*/
|
|
83
|
-
packageManagerInfo?: PackageManagerInfo;
|
|
140
|
+
packageManagerInfo: PackageManagerInfoComponent;
|
|
141
|
+
customJobs?: CatladderJob[];
|
|
84
142
|
};
|
|
85
|
-
|
|
86
|
-
* @deprecated use ComponentContext instead
|
|
87
|
-
*/
|
|
88
|
-
export type Context = ComponentContext;
|
|
143
|
+
export type Context = ComponentContext | WorkspaceContext;
|
|
89
144
|
export type CatladderJobWithContext<S = BaseStage> = CatladderJob<S> & {
|
|
90
145
|
context: ComponentContext;
|
|
146
|
+
};
|
|
147
|
+
export declare const componentContextIsStandaloneBuild: (context: ComponentContext<BuildContextComponent>) => context is ComponentContext<BuildContextStandalone<BuildConfigStandalone>>;
|
|
148
|
+
export declare const componentContextHasWorkspaceBuild: (context: ComponentContext<BuildContextComponent>) => context is ComponentContext<BuildContextFromWorkspace>;
|
|
149
|
+
export type WorkspaceContext = {
|
|
150
|
+
type: "workspace";
|
|
151
|
+
/**
|
|
152
|
+
* the name of the workspace
|
|
153
|
+
*/
|
|
154
|
+
name: string;
|
|
155
|
+
fullConfig: Config;
|
|
156
|
+
workspaceConfig: WorkspaceBuildConfig;
|
|
157
|
+
packageManagerInfo: PackageManagerInfoBase;
|
|
158
|
+
components: Array<ComponentContext>;
|
|
159
|
+
build: BuildContextWorkspace;
|
|
160
|
+
trigger: PipelineTrigger;
|
|
161
|
+
pipelineType: PipelineType;
|
|
162
|
+
env: string;
|
|
91
163
|
};
|
package/dist/types/context.js
CHANGED
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
5
|
+
});
|
|
6
|
+
exports.componentContextHasWorkspaceBuild = exports.componentContextIsStandaloneBuild = void 0;
|
|
7
|
+
var componentContextIsStandaloneBuild = function (context) {
|
|
8
|
+
return context.build.type === "standalone";
|
|
9
|
+
};
|
|
10
|
+
exports.componentContextIsStandaloneBuild = componentContextIsStandaloneBuild;
|
|
11
|
+
var componentContextHasWorkspaceBuild = function (context) {
|
|
12
|
+
return context.build.type === "fromWorkspace";
|
|
13
|
+
};
|
|
14
|
+
exports.componentContextHasWorkspaceBuild = componentContextHasWorkspaceBuild;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { StringOrBashExpression } from "../bash/BashExpression";
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type { DeployConfigType } from "../deploy";
|
|
2
|
+
import type { BuildConfig } from "../build";
|
|
3
|
+
import type { DeployConfig } from "../deploy";
|
|
5
4
|
import type { Config, EnvConfigWithComponent, EnvType } from "./config";
|
|
6
5
|
import type { PipelineType } from "./pipeline";
|
|
7
|
-
export type EnvironmentContext<B extends
|
|
6
|
+
export type EnvironmentContext<B extends BuildConfig = BuildConfig, D extends DeployConfig = DeployConfig> = {
|
|
8
7
|
envConfigRaw: EnvConfigWithComponent;
|
|
9
|
-
buildConfigRaw: false |
|
|
10
|
-
deployConfigRaw: false |
|
|
8
|
+
buildConfigRaw: false | B;
|
|
9
|
+
deployConfigRaw: false | D;
|
|
11
10
|
env: string;
|
|
12
11
|
envType: EnvType;
|
|
13
12
|
componentName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Artifacts as GitlabCiArtifacts, JobTemplate, Cache, Rules } from "./gitlab-ci-yml";
|
|
1
|
+
import type { Artifacts as GitlabCiArtifacts, JobTemplate, Cache as GitlabJobCache, Rules } from "./gitlab-ci-yml";
|
|
2
2
|
export { Retry, Image as GitlabJobImage } from "./gitlab-ci-yml";
|
|
3
3
|
export type Artifacts = GitlabCiArtifacts;
|
|
4
|
-
export type GitlabJobCache
|
|
4
|
+
export type { GitlabJobCache };
|
|
5
5
|
export type GitlabRule = Exclude<Exclude<Rules, null>[number], string | string[]>;
|
|
6
6
|
export type GitlabEnvironment = Omit<Exclude<JobTemplate["environment"], undefined | string>, "deployment_tier">;
|
|
7
7
|
export interface GitlabJobDef extends Pick<JobTemplate, "after_script" | "allow_failure" | "artifacts" | "before_script" | "coverage" | "dependencies" | "environment" | "except" | "hooks" | "image" | "interruptible" | "needs" | "only" | "parallel" | "release" | "resource_group" | "retry" | "rules" | "script" | "services" | "stage" | "tags" | "trigger" | "variables"> {
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -25,4 +25,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
25
25
|
__exportStar(require("./config"), exports);
|
|
26
26
|
__exportStar(require("./gitlab-types"), exports);
|
|
27
27
|
__exportStar(require("./context"), exports);
|
|
28
|
+
__exportStar(require("./jobDefinition"), exports);
|
|
28
29
|
__exportStar(require("./pipeline"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CacheConfig } from "../build";
|
|
2
|
+
import type { CatladderJob } from "./jobs";
|
|
3
|
+
export type AppBuildJobDefinition = Partial<Omit<CatladderJob, "artifacts" | "cache">> & {
|
|
4
|
+
cache?: CacheConfig[];
|
|
5
|
+
};
|
|
6
|
+
export type DockerBuildJobDefinition = AppBuildJobDefinition;
|
|
7
|
+
export type DeployJobDefinition = Pick<CatladderJob, "script" | "variables" | "image" | "artifacts" | "services" | "runnerVariables"> & {
|
|
8
|
+
cache?: CacheConfig[];
|
|
9
|
+
};
|
|
10
|
+
export type StopJobDefinition = Pick<CatladderJob, "script" | "variables" | "image" | "runnerVariables">;
|
|
11
|
+
export type RollbackJobDefinition = Pick<CatladderJob, "script" | "variables" | "runnerVariables" | "image">;
|
package/dist/types/jobs.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { UnspecifiedEnvVars } from "..";
|
|
2
|
-
import type { Artifacts, GitlabJobCache,
|
|
2
|
+
import type { Artifacts, GitlabEnvironment, GitlabJobCache, GitlabJobDef, GitlabJobImage, GitlabRule } from "./gitlab-types";
|
|
3
|
+
export type CatladderJobCache = GitlabJobCache;
|
|
3
4
|
export declare const BASE_STAGES: readonly ["setup", "test", "build", "deploy", "verify", "rollback", "stop"];
|
|
4
5
|
export type BaseStage = (typeof BASE_STAGES)[number];
|
|
5
6
|
export type CatladderJobNeed = string | {
|
|
6
7
|
job: string;
|
|
7
8
|
artifacts: boolean;
|
|
8
9
|
componentName?: string;
|
|
10
|
+
} | {
|
|
11
|
+
job: string;
|
|
12
|
+
artifacts: boolean;
|
|
13
|
+
workspaceName: string;
|
|
9
14
|
};
|
|
10
15
|
export type CatladderJobEnvironmentConfig = {
|
|
11
16
|
action?: GitlabEnvironment["action"];
|
|
@@ -38,6 +43,7 @@ export type CatladderJob<S = BaseStage> = {
|
|
|
38
43
|
needsStages?: {
|
|
39
44
|
stage: S;
|
|
40
45
|
artifacts?: boolean;
|
|
46
|
+
workspaceName?: string;
|
|
41
47
|
}[];
|
|
42
48
|
/**
|
|
43
49
|
* does this require another job (from the same component)?
|
|
@@ -57,7 +63,7 @@ export type CatladderJob<S = BaseStage> = {
|
|
|
57
63
|
/**
|
|
58
64
|
* cache config, we use here the same shape as gitlab itself
|
|
59
65
|
*/
|
|
60
|
-
cache?:
|
|
66
|
+
cache?: CatladderJobCache | CatladderJobCache[];
|
|
61
67
|
/**
|
|
62
68
|
* job artifacts, we also use gitlab shape here
|
|
63
69
|
*/
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function notNil<TValue>(value: TValue | null | undefined): value is TValue;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ensureArrayOrNull: <T>(s: undefined | T | T[]) => T[] | null;
|
|
3
|
+
export declare const ensureArray: <T>(s: undefined | T | T[]) => T[];
|
|
3
4
|
export declare const mergeWithMergingArrays: <A, B>(obj1: A, obj2: B) => A & B;
|
package/dist/utils/index.js
CHANGED
|
@@ -34,15 +34,20 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
34
34
|
Object.defineProperty(exports, "__esModule", {
|
|
35
35
|
value: true
|
|
36
36
|
});
|
|
37
|
-
exports.mergeWithMergingArrays = exports.ensureArray = exports.notNil = void 0;
|
|
37
|
+
exports.mergeWithMergingArrays = exports.ensureArray = exports.ensureArrayOrNull = exports.notNil = void 0;
|
|
38
38
|
var lodash_1 = require("lodash");
|
|
39
39
|
function notNil(value) {
|
|
40
40
|
return value !== null && value !== undefined;
|
|
41
41
|
}
|
|
42
42
|
exports.notNil = notNil;
|
|
43
|
-
var
|
|
43
|
+
var ensureArrayOrNull = function (s) {
|
|
44
44
|
return (0, lodash_1.isNil)(s) ? null : Array.isArray(s) ? s : [s];
|
|
45
45
|
};
|
|
46
|
+
exports.ensureArrayOrNull = ensureArrayOrNull;
|
|
47
|
+
var ensureArray = function (s) {
|
|
48
|
+
var _a;
|
|
49
|
+
return (_a = (0, exports.ensureArrayOrNull)(s)) !== null && _a !== void 0 ? _a : [];
|
|
50
|
+
};
|
|
46
51
|
exports.ensureArray = ensureArray;
|
|
47
52
|
// see https://github.com/lodash/lodash/issues/5384
|
|
48
53
|
var mergeWithMergingArrays = function (obj1, obj2) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const jsonParseOrThrow: (str: string) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.jsonParseOrThrow = void 0;
|
|
7
|
+
var jsonParseOrThrow = function (str) {
|
|
8
|
+
try {
|
|
9
|
+
return JSON.parse(str);
|
|
10
|
+
} catch (e) {
|
|
11
|
+
throw new Error("could not parse json: ".concat(str));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
exports.jsonParseOrThrow = jsonParseOrThrow;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const removeUndefined: <T extends object>(obj: T) => T;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __read = this && this.__read || function (o, n) {
|
|
4
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
5
|
+
if (!m) return o;
|
|
6
|
+
var i = m.call(o),
|
|
7
|
+
r,
|
|
8
|
+
ar = [],
|
|
9
|
+
e;
|
|
10
|
+
try {
|
|
11
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
12
|
+
} catch (error) {
|
|
13
|
+
e = {
|
|
14
|
+
error: error
|
|
15
|
+
};
|
|
16
|
+
} finally {
|
|
17
|
+
try {
|
|
18
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
19
|
+
} finally {
|
|
20
|
+
if (e) throw e.error;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", {
|
|
26
|
+
value: true
|
|
27
|
+
});
|
|
28
|
+
exports.removeUndefined = void 0;
|
|
29
|
+
var removeUndefined = function (obj) {
|
|
30
|
+
return Object.fromEntries(Object.entries(obj).filter(function (_a) {
|
|
31
|
+
var _b = __read(_a, 2),
|
|
32
|
+
value = _b[1];
|
|
33
|
+
return value !== undefined;
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
exports.removeUndefined = removeUndefined;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { stringify } from "yaml";
|
|
1
2
|
export declare const getAutoGeneratedHeader: (commentChar: string) => string;
|
|
2
3
|
export declare const writeGeneratedFile: (path: string, content: string, {
|
|
3
4
|
commentChar
|
|
4
5
|
}: {
|
|
5
6
|
commentChar: string;
|
|
6
7
|
}) => Promise<void>;
|
|
7
|
-
|
|
8
|
+
type StringifyOptions = Exclude<Parameters<typeof stringify>[2], null | undefined | string | number>;
|
|
9
|
+
export declare const yamlStringifyOptions: StringifyOptions;
|
|
10
|
+
export declare const writeYamlfile: (path: string, data: any) => Promise<void>;
|
|
11
|
+
export {};
|
package/dist/utils/writeFiles.js
CHANGED
|
@@ -123,7 +123,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
123
123
|
Object.defineProperty(exports, "__esModule", {
|
|
124
124
|
value: true
|
|
125
125
|
});
|
|
126
|
-
exports.writeYamlfile = exports.writeGeneratedFile = exports.getAutoGeneratedHeader = void 0;
|
|
126
|
+
exports.writeYamlfile = exports.yamlStringifyOptions = exports.writeGeneratedFile = exports.getAutoGeneratedHeader = void 0;
|
|
127
127
|
var promises_1 = require("fs/promises");
|
|
128
128
|
var yaml_1 = require("yaml");
|
|
129
129
|
var packageInfos_1 = __importDefault(require("../packageInfos"));
|
|
@@ -153,12 +153,20 @@ var writeGeneratedFile = function (path_1, content_1, _a) {
|
|
|
153
153
|
};
|
|
154
154
|
|
|
155
155
|
exports.writeGeneratedFile = writeGeneratedFile;
|
|
156
|
+
exports.yamlStringifyOptions = {
|
|
157
|
+
// prevents colapsing long command statements into multiple lines
|
|
158
|
+
lineWidth: 0,
|
|
159
|
+
// represent multi line commands as single line json strings
|
|
160
|
+
doubleQuotedAsJSON: true,
|
|
161
|
+
// Better readability when bash commands most often use double quotes
|
|
162
|
+
singleQuote: true
|
|
163
|
+
};
|
|
156
164
|
var writeYamlfile = function (path, data) {
|
|
157
165
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
158
166
|
return __generator(this, function (_a) {
|
|
159
167
|
switch (_a.label) {
|
|
160
168
|
case 0:
|
|
161
|
-
return [4 /*yield*/, (0, exports.writeGeneratedFile)(path, (0, yaml_1.stringify)(data), {
|
|
169
|
+
return [4 /*yield*/, (0, exports.writeGeneratedFile)(path, (0, yaml_1.stringify)(data, exports.yamlStringifyOptions), {
|
|
162
170
|
commentChar: "#"
|
|
163
171
|
})];
|
|
164
172
|
case 1:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.test.ts
|