@ambler/circleci-config-sdk 0.12.15 → 0.12.16
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/dist/src/index.d.ts +43 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Command.d.ts +22 -0
- package/dist/src/lib/Components/Commands/exports/Command.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/AddSSHKeys.d.ts +36 -0
- package/dist/src/lib/Components/Commands/exports/Native/AddSSHKeys.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/Restore.d.ts +37 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/Restore.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/Save.d.ts +44 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/Save.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/index.d.ts +3 -0
- package/dist/src/lib/Components/Commands/exports/Native/Cache/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Checkout.d.ts +35 -0
- package/dist/src/lib/Components/Commands/exports/Native/Checkout.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Run.d.ts +66 -0
- package/dist/src/lib/Components/Commands/exports/Native/Run.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/SetupRemoteDocker.d.ts +45 -0
- package/dist/src/lib/Components/Commands/exports/Native/SetupRemoteDocker.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/StoreArtifacts.d.ts +40 -0
- package/dist/src/lib/Components/Commands/exports/Native/StoreArtifacts.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/StoreTestResults.d.ts +36 -0
- package/dist/src/lib/Components/Commands/exports/Native/StoreTestResults.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/Attach.d.ts +36 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/Attach.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/Persist.d.ts +40 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/Persist.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/index.d.ts +3 -0
- package/dist/src/lib/Components/Commands/exports/Native/Workspace/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/ReusableCommand.d.ts +42 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/ReusableCommand.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/ReusedCommand.d.ts +29 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/ReusedCommand.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/index.d.ts +4 -0
- package/dist/src/lib/Components/Commands/exports/Reusable/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/index.d.ts +9 -0
- package/dist/src/lib/Components/Commands/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Commands/types/Command.types.d.ts +39 -0
- package/dist/src/lib/Components/Commands/types/Command.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/DockerExecutor.d.ts +45 -0
- package/dist/src/lib/Components/Executors/exports/DockerExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/DockerImage.d.ts +46 -0
- package/dist/src/lib/Components/Executors/exports/DockerImage.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/Executor.d.ts +24 -0
- package/dist/src/lib/Components/Executors/exports/Executor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/MacOSExecutor.d.ts +20 -0
- package/dist/src/lib/Components/Executors/exports/MacOSExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/MachineExecutor.d.ts +28 -0
- package/dist/src/lib/Components/Executors/exports/MachineExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/ReusableExecutor.d.ts +38 -0
- package/dist/src/lib/Components/Executors/exports/ReusableExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/ReusedExecutor.d.ts +37 -0
- package/dist/src/lib/Components/Executors/exports/ReusedExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/exports/WindowsExecutor.d.ts +23 -0
- package/dist/src/lib/Components/Executors/exports/WindowsExecutor.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/index.d.ts +10 -0
- package/dist/src/lib/Components/Executors/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/DockerExecutor.types.d.ts +18 -0
- package/dist/src/lib/Components/Executors/types/DockerExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/Executor.types.d.ts +63 -0
- package/dist/src/lib/Components/Executors/types/Executor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/ExecutorParameters.types.d.ts +21 -0
- package/dist/src/lib/Components/Executors/types/ExecutorParameters.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/MacOSExecutor.types.d.ts +16 -0
- package/dist/src/lib/Components/Executors/types/MacOSExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/MachineExecutor.types.d.ts +22 -0
- package/dist/src/lib/Components/Executors/types/MachineExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/ReusableExecutor.types.d.ts +40 -0
- package/dist/src/lib/Components/Executors/types/ReusableExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/WindowsExecutor.types.d.ts +19 -0
- package/dist/src/lib/Components/Executors/types/WindowsExecutor.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Executors/types/index.d.ts +8 -0
- package/dist/src/lib/Components/Executors/types/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Job/exports/ParameterizedJob.d.ts +37 -0
- package/dist/src/lib/Components/Job/exports/ParameterizedJob.d.ts.map +1 -0
- package/dist/src/lib/Components/Job/index.d.ts +71 -0
- package/dist/src/lib/Components/Job/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Job/types/Job.types.d.ts +45 -0
- package/dist/src/lib/Components/Job/types/Job.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/Condition.d.ts +10 -0
- package/dist/src/lib/Components/Logic/exports/Condition.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/Conditional.d.ts +10 -0
- package/dist/src/lib/Components/Logic/exports/Conditional.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/Evaluable.d.ts +8 -0
- package/dist/src/lib/Components/Logic/exports/Evaluable.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/When.d.ts +14 -0
- package/dist/src/lib/Components/Logic/exports/When.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/And.d.ts +15 -0
- package/dist/src/lib/Components/Logic/exports/conditions/And.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Equal.d.ts +19 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Equal.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Not.d.ts +15 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Not.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Or.d.ts +15 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Or.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Truthy.d.ts +11 -0
- package/dist/src/lib/Components/Logic/exports/conditions/Truthy.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/exports/conditions/index.d.ts +14 -0
- package/dist/src/lib/Components/Logic/exports/conditions/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/index.d.ts +12 -0
- package/dist/src/lib/Components/Logic/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Logic/types/index.d.ts +17 -0
- package/dist/src/lib/Components/Logic/types/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/exports/CustomEnumParameter.d.ts +20 -0
- package/dist/src/lib/Components/Parameters/exports/CustomEnumParameter.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/exports/CustomParameter.d.ts +27 -0
- package/dist/src/lib/Components/Parameters/exports/CustomParameter.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/exports/CustomParameterList.d.ts +30 -0
- package/dist/src/lib/Components/Parameters/exports/CustomParameterList.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/exports/Parameterized.d.ts +13 -0
- package/dist/src/lib/Components/Parameters/exports/Parameterized.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/index.d.ts +5 -0
- package/dist/src/lib/Components/Parameters/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/types/ComponentParameters.types.d.ts +24 -0
- package/dist/src/lib/Components/Parameters/types/ComponentParameters.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/types/CustomParameterLiterals.types.d.ts +26 -0
- package/dist/src/lib/Components/Parameters/types/CustomParameterLiterals.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Parameters/types/index.d.ts +103 -0
- package/dist/src/lib/Components/Parameters/types/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Reusable/index.d.ts +5 -0
- package/dist/src/lib/Components/Reusable/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/exports/Workflow.d.ts +49 -0
- package/dist/src/lib/Components/Workflow/exports/Workflow.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJob.d.ts +19 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJob.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJobAbstract.d.ts +19 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJobAbstract.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJobApproval.d.ts +9 -0
- package/dist/src/lib/Components/Workflow/exports/WorkflowJobApproval.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/index.d.ts +5 -0
- package/dist/src/lib/Components/Workflow/index.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/types/Workflow.types.d.ts +30 -0
- package/dist/src/lib/Components/Workflow/types/Workflow.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/types/WorkflowJob.types.d.ts +55 -0
- package/dist/src/lib/Components/Workflow/types/WorkflowJob.types.d.ts.map +1 -0
- package/dist/src/lib/Components/Workflow/types/index.d.ts +3 -0
- package/dist/src/lib/Components/Workflow/types/index.d.ts.map +1 -0
- package/dist/src/lib/Components/index.d.ts +20 -0
- package/dist/src/lib/Components/index.d.ts.map +1 -0
- package/dist/src/lib/Config/Pipeline/Git.d.ts +25 -0
- package/dist/src/lib/Config/Pipeline/Git.d.ts.map +1 -0
- package/dist/src/lib/Config/Pipeline/Project.d.ts +18 -0
- package/dist/src/lib/Config/Pipeline/Project.d.ts.map +1 -0
- package/dist/src/lib/Config/Pipeline/index.d.ts +35 -0
- package/dist/src/lib/Config/Pipeline/index.d.ts.map +1 -0
- package/dist/src/lib/Config/exports/Mapping.d.ts +56 -0
- package/dist/src/lib/Config/exports/Mapping.d.ts.map +1 -0
- package/dist/src/lib/Config/index.d.ts +111 -0
- package/dist/src/lib/Config/index.d.ts.map +1 -0
- package/dist/src/lib/Config/types/Mapping.types.d.ts +25 -0
- package/dist/src/lib/Config/types/Mapping.types.d.ts.map +1 -0
- package/dist/src/lib/Config/types/index.d.ts +65 -0
- package/dist/src/lib/Config/types/index.d.ts.map +1 -0
- package/dist/src/lib/Orb/exports/OrbDefinition.d.ts +21 -0
- package/dist/src/lib/Orb/exports/OrbDefinition.d.ts.map +1 -0
- package/dist/src/lib/Orb/exports/OrbImport.d.ts +24 -0
- package/dist/src/lib/Orb/exports/OrbImport.d.ts.map +1 -0
- package/dist/src/lib/Orb/exports/OrbRef.d.ts +19 -0
- package/dist/src/lib/Orb/exports/OrbRef.d.ts.map +1 -0
- package/dist/src/lib/Orb/index.d.ts +4 -0
- package/dist/src/lib/Orb/index.d.ts.map +1 -0
- package/dist/src/lib/Orb/types/Orb.types.d.ts +18 -0
- package/dist/src/lib/Orb/types/Orb.types.d.ts.map +1 -0
- package/dist/src/lib/Types/index.d.ts +8 -0
- package/dist/src/lib/Types/index.d.ts.map +1 -0
- package/package.json +5 -2
- package/CODE_OF_CONDUCT.md +0 -76
- package/commitlint.config.js +0 -1
- package/package-version.json +0 -1
- package/tsconfig.webpack.json +0 -4
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as YAML from 'yaml';
|
|
2
|
+
import { Generable } from '../Components';
|
|
3
|
+
import { ReusableExecutor } from '../Components/Executors/exports/ReusableExecutor';
|
|
4
|
+
import { Job } from '../Components/Job';
|
|
5
|
+
import { CustomParametersList } from '../Components/Parameters';
|
|
6
|
+
import { Parameterized } from '../Components/Parameters/exports/Parameterized';
|
|
7
|
+
import { PipelineParameterLiteral } from '../Components/Parameters/types/CustomParameterLiterals.types';
|
|
8
|
+
import { ReusableCommand } from '../Components/Reusable';
|
|
9
|
+
import { Workflow } from '../Components/Workflow/exports/Workflow';
|
|
10
|
+
import { OrbImport } from '../Orb/exports/OrbImport';
|
|
11
|
+
import { GenerableType } from './exports/Mapping';
|
|
12
|
+
import { Pipeline } from './Pipeline';
|
|
13
|
+
import { CircleCIConfigObject, CircleCIConfigShape, ConfigVersion } from './types';
|
|
14
|
+
/**
|
|
15
|
+
* A CircleCI configuration. Instantiate a new config and add CircleCI config elements.
|
|
16
|
+
*/
|
|
17
|
+
export declare class Config implements CircleCIConfigObject, Parameterized<PipelineParameterLiteral>, Generable {
|
|
18
|
+
/**
|
|
19
|
+
* The version field is intended to be used in order to issue warnings for deprecation or breaking changes.
|
|
20
|
+
*/
|
|
21
|
+
version: ConfigVersion;
|
|
22
|
+
/**
|
|
23
|
+
* Reusable executors to be referenced from jobs.
|
|
24
|
+
*/
|
|
25
|
+
executors?: ReusableExecutor[];
|
|
26
|
+
/**
|
|
27
|
+
* Jobs are collections of steps. All of the steps in the job are executed in a single unit, either within a fresh container or VM.
|
|
28
|
+
*/
|
|
29
|
+
jobs: Job[];
|
|
30
|
+
/**
|
|
31
|
+
* A command definition defines a sequence of steps as a map to be executed in a job, enabling you to reuse a single command definition across multiple jobs.
|
|
32
|
+
*/
|
|
33
|
+
commands?: ReusableCommand[];
|
|
34
|
+
/**
|
|
35
|
+
* A Workflow is comprised of one or more uniquely named jobs.
|
|
36
|
+
*/
|
|
37
|
+
workflows: Workflow[];
|
|
38
|
+
/**
|
|
39
|
+
* A parameter allows custom data to be passed to a pipeline.
|
|
40
|
+
*/
|
|
41
|
+
parameters?: CustomParametersList<PipelineParameterLiteral>;
|
|
42
|
+
/**
|
|
43
|
+
* Access information about the current pipeline.
|
|
44
|
+
*/
|
|
45
|
+
pipeline: Pipeline;
|
|
46
|
+
/**
|
|
47
|
+
* Designates the config.yaml for use of CircleCI’s dynamic configuration feature.
|
|
48
|
+
*/
|
|
49
|
+
setup: boolean;
|
|
50
|
+
orbs?: OrbImport[];
|
|
51
|
+
/**
|
|
52
|
+
* Instantiate a new CircleCI config. Build up your config by adding components.
|
|
53
|
+
* @param jobs - Instantiate with pre-defined Jobs.
|
|
54
|
+
* @param workflows - Instantiate with pre-defined Workflows.
|
|
55
|
+
* @param commands - Instantiate with pre-defined reusable Commands.
|
|
56
|
+
*/
|
|
57
|
+
constructor(setup?: boolean, jobs?: Job[], workflows?: Workflow[], executors?: ReusableExecutor[], commands?: ReusableCommand[], parameters?: CustomParametersList<PipelineParameterLiteral>, orbs?: OrbImport[]);
|
|
58
|
+
/**
|
|
59
|
+
* Add a Workflow to the current Config. Chainable
|
|
60
|
+
* @param workflow - Injectable Workflow
|
|
61
|
+
*/
|
|
62
|
+
addWorkflow(workflow: Workflow): this;
|
|
63
|
+
/**
|
|
64
|
+
* Add a Custom Command to the current Config. Chainable
|
|
65
|
+
* @param command - Injectable command
|
|
66
|
+
*/
|
|
67
|
+
addReusableCommand(command: ReusableCommand): this;
|
|
68
|
+
/**
|
|
69
|
+
* Add a Workflow to the current Config. Chainable
|
|
70
|
+
* @param workflow - Injectable Workflow
|
|
71
|
+
*/
|
|
72
|
+
addReusableExecutor(executor: ReusableExecutor): this;
|
|
73
|
+
/**
|
|
74
|
+
* Add a Job to the current Config. Chainable
|
|
75
|
+
* @param job - Injectable Job
|
|
76
|
+
*/
|
|
77
|
+
addJob(job: Job): this;
|
|
78
|
+
importOrb(orb: OrbImport): this;
|
|
79
|
+
/**
|
|
80
|
+
* Define a pipeline parameter for the current Config. Chainable
|
|
81
|
+
*
|
|
82
|
+
* @param name - The name of the parameter
|
|
83
|
+
* @param type - The type of parameter
|
|
84
|
+
* @param defaultValue - The default value of the parameter
|
|
85
|
+
* @param description - A description of the parameter
|
|
86
|
+
* @param enumValues - An array of possible values for parameters of enum type
|
|
87
|
+
*/
|
|
88
|
+
defineParameter(name: string, type: PipelineParameterLiteral, defaultValue?: unknown, description?: string, enumValues?: string[]): Config;
|
|
89
|
+
private _prependVersionComment;
|
|
90
|
+
/**
|
|
91
|
+
* @param flatten - Attempt to remove unnecessary parameters when possible.
|
|
92
|
+
* @returns the CircleCI config as a JSON string
|
|
93
|
+
*/
|
|
94
|
+
generate(flatten?: boolean): CircleCIConfigShape;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @param flatten - Attempt to remove unnecessary parameters when possible.
|
|
98
|
+
* @param options - Modify the YAML output options.
|
|
99
|
+
* @returns the CircleCI config as a YAML string
|
|
100
|
+
*/
|
|
101
|
+
stringify(flatten?: boolean, options?: YAML.ToStringOptions): string;
|
|
102
|
+
get generableType(): GenerableType;
|
|
103
|
+
/**
|
|
104
|
+
* Agnostic method to save a config file to disk via Node or the Browser.
|
|
105
|
+
* Note: If you are accessing this method from the browser, it must be triggered by a user action.
|
|
106
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Window/showSaveFilePicker#security}
|
|
107
|
+
* @param path - The path to write the config to. ONLY USED IN NODE.JS
|
|
108
|
+
*/
|
|
109
|
+
writeFile(path?: string): Promise<void>;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Config/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAEpF,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,qBAAa,MACX,YACE,oBAAoB,EACpB,aAAa,CAAC,wBAAwB,CAAC,EACvC,SAAS;IAEX;;OAEG;IACH,OAAO,EAAE,aAAa,CAAO;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B;;OAEG;IACH,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B;;OAEG;IACH,SAAS,EAAE,QAAQ,EAAE,CAAM;IAC3B;;OAEG;IACH,UAAU,CAA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CAAC,IAAI,CAAC,EAAE,MAAM;CA2B9B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Generable } from '../../Components';
|
|
2
|
+
import { GenerableType, ParameterizedComponent, ParameterSubtype } from '../exports/Mapping';
|
|
3
|
+
interface _SchemaObject {
|
|
4
|
+
$id?: string;
|
|
5
|
+
$schema?: string;
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface SchemaObject extends _SchemaObject {
|
|
9
|
+
$id?: string;
|
|
10
|
+
$schema?: string;
|
|
11
|
+
$async?: false;
|
|
12
|
+
[x: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export declare type GenerableSubtypes = ParameterSubtype | ParameterizedComponent;
|
|
15
|
+
export declare type GenerableSubTypesMap = {
|
|
16
|
+
[GenerableType.CUSTOM_PARAMETER]: {
|
|
17
|
+
[key in GenerableSubtypes]: SchemaObject;
|
|
18
|
+
};
|
|
19
|
+
[GenerableType.CUSTOM_PARAMETERS_LIST]: {
|
|
20
|
+
[key in ParameterizedComponent]: SchemaObject;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare type OneOrMoreGenerable = Generable | Generable[];
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=Mapping.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Mapping.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Config/types/Mapping.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAI5B,UAAU,aAAa;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,oBAAY,iBAAiB,GAAG,gBAAgB,GAAG,sBAAsB,CAAC;AAE1E,oBAAY,oBAAoB,GAAG;IACjC,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE;SAC/B,GAAG,IAAI,iBAAiB,GAAG,YAAY;KACzC,CAAC;IACF,CAAC,aAAa,CAAC,sBAAsB,CAAC,EAAE;SACrC,GAAG,IAAI,sBAAsB,GAAG,YAAY;KAC9C,CAAC;CACH,CAAC;AAEF,oBAAY,kBAAkB,GAAG,SAAS,GAAG,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ReusableCommandShape } from '../../Components/Commands/types/Command.types';
|
|
2
|
+
import { ReusableExecutor } from '../../Components/Executors/exports/ReusableExecutor';
|
|
3
|
+
import { ReusableExecutorsShape } from '../../Components/Executors/types/ReusableExecutor.types';
|
|
4
|
+
import { Job } from '../../Components/Job';
|
|
5
|
+
import { JobsShape } from '../../Components/Job/types/Job.types';
|
|
6
|
+
import { CustomParametersList } from '../../Components/Parameters';
|
|
7
|
+
import { ParameterShape } from '../../Components/Parameters/types';
|
|
8
|
+
import { AnyParameterLiteral } from '../../Components/Parameters/types/CustomParameterLiterals.types';
|
|
9
|
+
import { Workflow } from '../../Components/Workflow/exports/Workflow';
|
|
10
|
+
import { WorkflowsShape } from '../../Components/Workflow/types/Workflow.types';
|
|
11
|
+
import { OrbImport } from '../../Orb';
|
|
12
|
+
import { OrbImportsShape } from '../../Orb/types/Orb.types';
|
|
13
|
+
import { Generable } from '../../Components';
|
|
14
|
+
import { ReusableCommand } from '../../Components/Reusable';
|
|
15
|
+
import * as mapping from './Mapping.types';
|
|
16
|
+
/**
|
|
17
|
+
* Selected config version
|
|
18
|
+
*/
|
|
19
|
+
export declare type ConfigVersion = 2 | 2.1;
|
|
20
|
+
/**
|
|
21
|
+
* Orb import object
|
|
22
|
+
*/
|
|
23
|
+
export declare type ConfigOrbImport = Record<string, string>;
|
|
24
|
+
/**
|
|
25
|
+
* CircleCI configuration object
|
|
26
|
+
*/
|
|
27
|
+
export declare type CircleCIConfigObject = {
|
|
28
|
+
version: ConfigVersion;
|
|
29
|
+
jobs?: Job[];
|
|
30
|
+
executors?: ReusableExecutor[];
|
|
31
|
+
commands?: ReusableCommand[];
|
|
32
|
+
workflows?: Workflow[];
|
|
33
|
+
orbs?: OrbImport[];
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Generated Shape of the CircleCI config.
|
|
37
|
+
*/
|
|
38
|
+
export declare type CircleCIConfigShape = {
|
|
39
|
+
version: ConfigVersion;
|
|
40
|
+
setup: boolean;
|
|
41
|
+
parameters?: Record<string, ParameterShape>;
|
|
42
|
+
executors?: ReusableExecutorsShape;
|
|
43
|
+
orbs?: OrbImportsShape;
|
|
44
|
+
jobs: JobsShape;
|
|
45
|
+
commands?: ReusableCommandShape;
|
|
46
|
+
workflows: WorkflowsShape;
|
|
47
|
+
};
|
|
48
|
+
export declare type UnknownConfigShape = {
|
|
49
|
+
setup: boolean;
|
|
50
|
+
orbs?: Record<string, unknown>;
|
|
51
|
+
executors?: Record<string, unknown>;
|
|
52
|
+
jobs: Record<string, unknown>;
|
|
53
|
+
commands?: Record<string, unknown>;
|
|
54
|
+
parameters?: Record<string, unknown>;
|
|
55
|
+
workflows: Record<string, unknown>;
|
|
56
|
+
};
|
|
57
|
+
export declare type ConfigDependencies = {
|
|
58
|
+
jobList: Job[];
|
|
59
|
+
workflows: Workflow[];
|
|
60
|
+
executorList?: ReusableExecutor[];
|
|
61
|
+
commandList?: ReusableCommand[];
|
|
62
|
+
parameterList?: CustomParametersList<AnyParameterLiteral>;
|
|
63
|
+
};
|
|
64
|
+
export { mapping, Generable };
|
|
65
|
+
//# source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
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OrbDisplayMeta } from '../types/Orb.types';
|
|
2
|
+
export interface OrbDefinition {
|
|
3
|
+
/**
|
|
4
|
+
* The name of this orb.
|
|
5
|
+
*/
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* The namespace this orb belongs to.
|
|
9
|
+
*/
|
|
10
|
+
namespace: string;
|
|
11
|
+
/**
|
|
12
|
+
* The version of this orb.
|
|
13
|
+
*/
|
|
14
|
+
version: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The display metadata for this orb.
|
|
18
|
+
*/
|
|
19
|
+
display?: OrbDisplayMeta;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=OrbDefinition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrbDefinition.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Orb/exports/OrbDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAKhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Generable } from '../../Components';
|
|
2
|
+
import { CommandParameterLiteral, ExecutorParameterLiteral, JobParameterLiteral } from '../../Components/Parameters/types/CustomParameterLiterals.types';
|
|
3
|
+
import { GenerableType } from '../../Config/exports/Mapping';
|
|
4
|
+
import { OrbDisplayMeta, OrbImportManifest } from '../types/Orb.types';
|
|
5
|
+
import { OrbRef } from './OrbRef';
|
|
6
|
+
/**
|
|
7
|
+
* A reference to an imported Orb.
|
|
8
|
+
* {@label STATIC_2.1}
|
|
9
|
+
*/
|
|
10
|
+
export declare class OrbImport implements Generable {
|
|
11
|
+
alias: string;
|
|
12
|
+
namespace: string;
|
|
13
|
+
name: string;
|
|
14
|
+
version: string;
|
|
15
|
+
jobs: Record<string, OrbRef<JobParameterLiteral>>;
|
|
16
|
+
commands: Record<string, OrbRef<CommandParameterLiteral>>;
|
|
17
|
+
executors: Record<string, OrbRef<ExecutorParameterLiteral>>;
|
|
18
|
+
description?: string;
|
|
19
|
+
display?: OrbDisplayMeta;
|
|
20
|
+
constructor(alias: string, namespace: string, orb: string, version: string, description?: string, manifest?: OrbImportManifest, display?: OrbDisplayMeta);
|
|
21
|
+
generate(): Record<string, string>;
|
|
22
|
+
get generableType(): GenerableType;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=OrbImport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrbImport.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Orb/exports/OrbImport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAEL,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;;GAGG;AACH,qBAAa,SAAU,YAAW,SAAS;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAM;IACvD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,uBAAuB,CAAC,CAAC,CAAM;IAC/D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,wBAAwB,CAAC,CAAC,CAAM;IAEjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,cAAc,CAAC;gBAGvB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,iBAAiB,EAC5B,OAAO,CAAC,EAAE,cAAc;IAgB1B,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAMlC,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CustomParametersList } from '../../Components/Parameters';
|
|
2
|
+
import { AnyParameterLiteral } from '../../Components/Parameters/types/CustomParameterLiterals.types';
|
|
3
|
+
import { GenerableType } from '../../Config/exports/Mapping';
|
|
4
|
+
import { OrbImport } from './OrbImport';
|
|
5
|
+
/**
|
|
6
|
+
* An abstract reference to an orb component.
|
|
7
|
+
* {@label STATIC_2.1}
|
|
8
|
+
*/
|
|
9
|
+
export declare class OrbRef<Literal extends AnyParameterLiteral> {
|
|
10
|
+
private _parameters;
|
|
11
|
+
private _name;
|
|
12
|
+
private _orb;
|
|
13
|
+
constructor(name: string, parameters: CustomParametersList<Literal>, orb: OrbImport);
|
|
14
|
+
get generableType(): GenerableType;
|
|
15
|
+
get name(): string;
|
|
16
|
+
get parameters(): CustomParametersList<Literal>;
|
|
17
|
+
get orb(): OrbImport;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=OrbRef.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrbRef.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Orb/exports/OrbRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iEAAiE,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,qBAAa,MAAM,CAAC,OAAO,SAAS,mBAAmB;IACrD,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,IAAI,CAAY;gBAGtB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACzC,GAAG,EAAE,SAAS;IAOhB,IAAI,aAAa,IAAI,aAAa,CAEjC;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,UAAU,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAE9C;IAED,IAAI,GAAG,IAAI,SAAS,CAEnB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Orb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CustomParametersList } from '../../Components/Parameters';
|
|
2
|
+
import { Parameterized } from '../../Components/Parameters/exports/Parameterized';
|
|
3
|
+
import { AnyParameterLiteral, CommandParameterLiteral, ExecutorParameterLiteral, JobParameterLiteral } from '../../Components/Parameters/types/CustomParameterLiterals.types';
|
|
4
|
+
export declare type OrbDisplayMeta = {
|
|
5
|
+
home_url: string;
|
|
6
|
+
source_url: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type OrbImportShape = {
|
|
9
|
+
[importName: string]: string;
|
|
10
|
+
};
|
|
11
|
+
export declare type OrbImportsShape = Record<string, OrbImportShape>;
|
|
12
|
+
export declare type OrbComponent = Parameterized<AnyParameterLiteral>;
|
|
13
|
+
export declare type OrbImportManifest = {
|
|
14
|
+
jobs: Record<string, CustomParametersList<JobParameterLiteral>>;
|
|
15
|
+
executors: Record<string, CustomParametersList<ExecutorParameterLiteral>>;
|
|
16
|
+
commands: Record<string, CustomParametersList<CommandParameterLiteral>>;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Orb.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Orb.types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Orb/types/Orb.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,mDAAmD,CAAC;AAClF,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,iEAAiE,CAAC;AAEzE,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B,CAAC;AAEF,oBAAY,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAC7D,oBAAY,YAAY,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC;AAC9D,oBAAY,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAChE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC1E,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,uBAAuB,CAAC,CAAC,CAAC;CACzE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * as command from '../Components/Commands/types/Command.types';
|
|
2
|
+
export * as executors from '../Components/Executors/types';
|
|
3
|
+
export * as job from '../Components/Job/types/Job.types';
|
|
4
|
+
export * as parameter from '../Components/Parameters/types';
|
|
5
|
+
export * as workflow from '../Components/Workflow/types';
|
|
6
|
+
export * as config from '../Config/types';
|
|
7
|
+
export * as orb from '../Orb/types/Orb.types';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,4CAA4C,CAAC;AACtE,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,GAAG,MAAM,mCAAmC,CAAC;AACzD,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,GAAG,MAAM,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ambler/circleci-config-sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.16",
|
|
4
4
|
"description": "An SDK for building CircleCI Configuration files with JavaScript.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
11
|
"test": "npx jest",
|
|
9
12
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --max-warnings 0",
|
|
10
13
|
"prettier": "prettier --write .",
|
|
11
14
|
"prettier:ci": "prettier --check .",
|
|
12
|
-
"build": "rm -rf ./dist && npx webpack --mode production",
|
|
15
|
+
"build": "rm -rf ./dist && npx webpack --mode production && npx tsc -p tsconfig.build.json",
|
|
13
16
|
"build:docs": "typedoc --tsconfig ./tsconfig.json --logLevel Verbose --excludeInternal --internalNamespace internalTypes"
|
|
14
17
|
},
|
|
15
18
|
"repository": {
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
|
9
|
-
level of experience, education, socio-economic status, nationality, personal
|
|
10
|
-
appearance, race, religion, or sexual identity and orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
* Using welcoming and inclusive language
|
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
|
19
|
-
* Gracefully accepting constructive criticism
|
|
20
|
-
* Focusing on what is best for the community
|
|
21
|
-
* Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
* Public or private harassment
|
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
-
when an individual is representing the project or its community. Examples of
|
|
50
|
-
representing a project or community include using an official project e-mail
|
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at community-partner@circleci.com. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
72
|
-
|
|
73
|
-
[homepage]: https://www.contributor-covenant.org
|
|
74
|
-
|
|
75
|
-
For answers to common questions about this code of conduct, see
|
|
76
|
-
https://www.contributor-covenant.org/faq
|
package/commitlint.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = { extends: ['@commitlint/config-conventional'] };
|
package/package-version.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{ "version": "0.0.0-development" }
|
package/tsconfig.webpack.json
DELETED