contensis-cli 1.0.0-beta.95 → 1.0.0-beta.96
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/localisation/en-GB.js +5 -4
- package/dist/localisation/en-GB.js.map +2 -2
- package/dist/mappers/DevInit-to-CIWorkflow.js +262 -149
- package/dist/mappers/DevInit-to-CIWorkflow.js.map +3 -3
- package/dist/models/DevService.d.js.map +1 -1
- package/dist/services/ContensisDevService.js +3 -2
- package/dist/services/ContensisDevService.js.map +2 -2
- package/dist/util/diff.js +3 -1
- package/dist/util/diff.js.map +2 -2
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/src/localisation/en-GB.ts +7 -3
- package/src/mappers/DevInit-to-CIWorkflow.ts +373 -209
- package/src/models/DevService.d.ts +12 -0
- package/src/services/ContensisDevService.ts +4 -2
- package/src/util/diff.ts +4 -1
- package/src/version.ts +1 -1
|
@@ -25,6 +25,8 @@ import { normaliseLineEndings, winSlash } from '~/util/os';
|
|
|
25
25
|
import { stringifyYaml } from '~/util/yaml';
|
|
26
26
|
|
|
27
27
|
class ContensisDev extends ContensisRole {
|
|
28
|
+
git!: GitHelper;
|
|
29
|
+
|
|
28
30
|
constructor(
|
|
29
31
|
args: string[],
|
|
30
32
|
outputOpts?: OutputOptionsConstructorArg,
|
|
@@ -52,7 +54,7 @@ class ContensisDev extends ContensisRole {
|
|
|
52
54
|
);
|
|
53
55
|
|
|
54
56
|
// Retrieve git info
|
|
55
|
-
const git = new GitHelper(projectHome);
|
|
57
|
+
const git = this.git = new GitHelper(projectHome);
|
|
56
58
|
|
|
57
59
|
// Retrieve ci workflow info
|
|
58
60
|
const workflowFiles = git.workflows;
|
|
@@ -117,7 +119,7 @@ class ContensisDev extends ContensisRole {
|
|
|
117
119
|
log.raw(log.infoText(messages.devinit.ciDetails(ciFileName)));
|
|
118
120
|
|
|
119
121
|
// Look at the workflow file content and make updates
|
|
120
|
-
const mappedWorkflow = await mapCIWorkflowContent(this
|
|
122
|
+
const mappedWorkflow = await mapCIWorkflowContent(this);
|
|
121
123
|
|
|
122
124
|
log.help(messages.devinit.ciIntro(git));
|
|
123
125
|
|
package/src/util/diff.ts
CHANGED
|
@@ -47,7 +47,10 @@ export const diffFileContent = (
|
|
|
47
47
|
const colour = part.added ? 'green' : part.removed ? 'red' : 'grey';
|
|
48
48
|
|
|
49
49
|
if (part.value !== '\n') {
|
|
50
|
-
if (needsNewLine)
|
|
50
|
+
if (needsNewLine) {
|
|
51
|
+
output.push('\n### --');
|
|
52
|
+
needsNewLine = false;
|
|
53
|
+
}
|
|
51
54
|
output.push(
|
|
52
55
|
`\n${part.value
|
|
53
56
|
.split('\n')
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "1.0.0-beta.
|
|
1
|
+
export const LIB_VERSION = "1.0.0-beta.96";
|