Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 723e4c7

Browse files
authored
Open source (#3)
1 parent 136b9ea commit 723e4c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+24423
-5
lines changed

.azext/changelog-cache.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"issues": [],
3+
"pullRequests": []
4+
}

.azext/changelog-config.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"repository": "joachimdalen/azdevops-env-transform",
3+
"changelogTitle": {
4+
"size": "h1",
5+
"format": "Changelog"
6+
},
7+
"releaseTitleFormat": {
8+
"size": "h2",
9+
"format": "{{version}} ({{publishDate}})"
10+
},
11+
"moduleTitleFormat": {
12+
"size": "h4",
13+
"format": "`{{name}}@{{version}}`"
14+
},
15+
"moduleChangesTitle": {
16+
"size": "h3",
17+
"format": ":package: Module changes"
18+
},
19+
"typeSize": "h3",
20+
"typeMapping": {
21+
"feature": ":rocket: Features ({{changeCount}})",
22+
"fix": ":bug: Fixes ({{changeCount}})",
23+
"tests": ":test_tube: Tests ({{changeCount}})",
24+
"other": ":speech_balloon: Other ({{changeCount}})",
25+
"docs": ":memo: Documentation ({{changeCount}})",
26+
"maint": ":hammer_and_wrench: Maintenance ({{changeCount}})",
27+
"enhancement": ":mega: Enhancements ({{changeCount}})"
28+
},
29+
"typeResourcePrefixMapping": {
30+
"feature": {
31+
"issue": "Suggested in",
32+
"pullRequest": "Added in"
33+
},
34+
"fix": {
35+
"issue": "Reported in",
36+
"pullRequest": "Fixed in"
37+
},
38+
"docs": {
39+
"issue": "Changed needed",
40+
"pullRequest": "Changed in"
41+
},
42+
"maint": {
43+
"pullRequest": "Changed in"
44+
},
45+
"enhancement": {
46+
"issue": "Suggested in",
47+
"pullRequest": "Improved in"
48+
}
49+
},
50+
"sections": {
51+
"summary": {
52+
"title": {
53+
"size": "h4",
54+
"format": ":speech_balloon: Summary"
55+
}
56+
}
57+
},
58+
"attributionTitleFormat": {
59+
"size": "h2",
60+
"format": ":star2: Contributors"
61+
},
62+
"attributionSubTitle": {
63+
"format": "Thank you to the following for contributing to the latest release"
64+
},
65+
"attributionLinkTextFormat": {
66+
"format": "@{{ghUsername}}"
67+
},
68+
"knownAuthors": ["joachimdalen"],
69+
"useDescriptiveIssues": true,
70+
"useDescriptivePullRequests": true,
71+
"replaceEmojis": {
72+
"types": true,
73+
"changelogTitle": true,
74+
"releaseTitle": true,
75+
"moduleTitle": true,
76+
"attributionTitle": true,
77+
"attributionSubTitle": true,
78+
"moduleChangesTitle": true,
79+
"githubIssues": false,
80+
"githubPullRequests": false,
81+
"sectionContent": true,
82+
"sectionTitle": true
83+
}
84+
}

.azext/changelog.json

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
[
2+
{
3+
"publishDate": "2022-03-13",
4+
"version": "1.3.0",
5+
"modules": [
6+
{
7+
"name": "EnvTransform",
8+
"version": "0.4.0",
9+
"changes": [
10+
{
11+
"description": "Update dependencies",
12+
"type": "maint"
13+
},
14+
{
15+
"description": "Update docs",
16+
"type": "docs"
17+
}
18+
]
19+
}
20+
]
21+
},
22+
{
23+
"publishDate": "2021-12-17",
24+
"version": "1.2.3",
25+
"modules": [
26+
{
27+
"name": "EnvTransform",
28+
"version": "0.3.3",
29+
"changes": [
30+
{
31+
"type": "maint",
32+
"description": "Updated dependencies"
33+
}
34+
]
35+
}
36+
]
37+
},
38+
{
39+
"publishDate": "2021-07-03",
40+
"version": "1.2.2",
41+
"modules": [
42+
{
43+
"name": "EnvTransform",
44+
"version": "0.3.2",
45+
"changes": [
46+
{
47+
"type": "maint",
48+
"description": "Updated dependencies"
49+
}
50+
]
51+
}
52+
]
53+
},
54+
{
55+
"publishDate": "2021-04-01",
56+
"version": "1.2.1",
57+
"modules": [
58+
{
59+
"name": "EnvTransform",
60+
"version": "0.3.1",
61+
"changes": [
62+
{
63+
"type": "maint",
64+
"description": "Updated dependencies"
65+
}
66+
]
67+
}
68+
]
69+
},
70+
{
71+
"publishDate": "2021-01-23",
72+
"version": "1.2.0",
73+
"modules": [
74+
{
75+
"name": "EnvTransform",
76+
"version": "0.3.0",
77+
"changes": [
78+
{
79+
"type": "fix",
80+
"description": "Fixed `Cannot read property 'trim' of undefined` being thrown when file contains a key without a value [#3](https://github.com/joachimdalen/AzureDevOpsExtensions/issues/3)"
81+
}
82+
]
83+
}
84+
]
85+
},
86+
{
87+
"publishDate": "2021-01-11",
88+
"version": "1.1.2",
89+
"modules": [
90+
{
91+
"name": "EnvTransform",
92+
"version": "0.2.1",
93+
"changes": [
94+
{
95+
"type": "maint",
96+
"description": "Updated dependencies"
97+
}
98+
]
99+
}
100+
]
101+
},
102+
{
103+
"publishDate": "2020-11-23",
104+
"version": "1.1.1",
105+
"changes": [
106+
{
107+
"type": "docs",
108+
"description": "Fixed a typo in docs"
109+
}
110+
]
111+
},
112+
{
113+
"publishDate": "2020-11-23",
114+
"version": "1.1.0",
115+
"modules": [
116+
{
117+
"name": "EnvTransform",
118+
"version": "0.2.0",
119+
"changes": [
120+
{
121+
"type": "maint",
122+
"description": "Updated dependencies"
123+
}
124+
]
125+
}
126+
]
127+
},
128+
{
129+
"publishDate": "2020-10-17",
130+
"version": "1.0.1",
131+
"changes": [
132+
{
133+
"type": "feature",
134+
"description": "Added support for preserving comments. This option is **off by default**. Enabled it by setting `preserveComments` to `true`"
135+
},
136+
{
137+
"type": "fix",
138+
"description": "Fixed a mixup in README where the requirement between `inputType` and `content` were swapped"
139+
}
140+
]
141+
},
142+
{
143+
"publishDate": "2020-09-09",
144+
"version": "0.0.9",
145+
"changes": [
146+
{
147+
"type": "docs",
148+
"description": "Fixed link to GitHub issues"
149+
}
150+
]
151+
},
152+
{
153+
"publishDate": "2020-09-06",
154+
"version": "0.0.8",
155+
"changes": [
156+
{
157+
"type": "docs",
158+
"description": "Update docs"
159+
},
160+
{
161+
"type": "other",
162+
"description": "Refactoring"
163+
}
164+
]
165+
}
166+
]

.azext/mappings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"tasks": {
3+
"transform": "../tasks/env-transform/task.json"
4+
}
5+
}

.azext/readme.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"partials": {
3+
"env-transform": { "file": "../tasks/env-transform/docs/README.md" },
4+
"replace-inline": { "file": "../tasks/env-transform/docs/examples/replace-inline.md" },
5+
"replace-file": { "file": "../tasks/env-transform/docs/examples/replace-file.md" },
6+
"substitute-inline": { "file": "../tasks/env-transform/docs/examples/substitue-inline.md" }
7+
},
8+
"profiles": [
9+
{
10+
"name": "github",
11+
"imageFolder": "marketplace/docs/images",
12+
"relative": true
13+
},
14+
{
15+
"name": "marketplace",
16+
"imageFolder": "marketplace/docs/images",
17+
"relative": false
18+
},
19+
{
20+
"name": "doc-site",
21+
"imageFolder": "/img/env-transform/",
22+
"relative": false
23+
}
24+
]
25+
}

.ci/build-docs.template.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
parameters:
2+
- name: extensionEnv
3+
default: dev
4+
values:
5+
- dev
6+
- qa
7+
- prod
8+
- name: taskVersion
9+
displayName: 'Task Version'
10+
type: string
11+
default: $(Task.Extension.Version)
12+
- name: generateVersionChangelog
13+
type: boolean
14+
default: true
15+
jobs:
16+
- job: 'build_docs_${{ parameters.extensionEnv }}'
17+
displayName: 'Build docs'
18+
steps:
19+
- task: TfxInstaller@3
20+
displayName: 'Install Tfx'
21+
inputs:
22+
version: 'v0.10.0'
23+
- task: QueryAzureDevOpsExtensionVersion@3
24+
displayName: 'Query existing version'
25+
inputs:
26+
connectTo: 'VsTeam'
27+
connectedServiceName: $(marketplaceServiceConnection)
28+
publisherId: '$(PublisherID)'
29+
extensionId: '$(ExtensionID)'
30+
versionAction: 'Patch'
31+
outputVariable: 'Task.Extension.Version'
32+
- template: install-and-build.template.yml
33+
parameters:
34+
nodeVersion: '16.x'
35+
- task: Npm@1
36+
displayName: 'Build changelog'
37+
inputs:
38+
command: custom
39+
customCommand: run changelog:prod
40+
- task: Npm@1
41+
displayName: 'Build single version changelog'
42+
condition: eq(${{ parameters.generateVersionChangelog }}, true)
43+
inputs:
44+
command: custom
45+
customCommand: run changelog:prod:version -- --version ${{ parameters.taskVersion }}
46+
- task: Npm@1
47+
displayName: 'Build readme'
48+
inputs:
49+
command: custom
50+
customCommand: run docs:build
51+
- task: Bash@3
52+
displayName: 'Move artifacts'
53+
inputs:
54+
targetType: inline
55+
script: |
56+
mkdir $(Build.ArtifactStagingDirectory)/docs/
57+
cp $(Build.SourcesDirectory)/marketplace/docs/CHANGELOG.md $(Build.ArtifactStagingDirectory)/docs/
58+
cp $(Build.SourcesDirectory)/marketplace/docs/README.md $(Build.ArtifactStagingDirectory)/docs/
59+
- task: Bash@3
60+
displayName: 'Move version changelog'
61+
condition: eq(${{ parameters.generateVersionChangelog }}, true)
62+
inputs:
63+
targetType: inline
64+
script: |
65+
mv $(Build.SourcesDirectory)/marketplace/docs/CHANGELOG-RELEASE.md $(Build.ArtifactStagingDirectory)/docs/
66+
- task: PublishPipelineArtifact@1
67+
displayName: 'Publish docs artifact'
68+
inputs:
69+
targetPath: '$(Build.ArtifactStagingDirectory)/docs'
70+
artifactName: 'docs'
71+
publishLocation: pipeline

0 commit comments

Comments
 (0)