@jayree/sfdx-plugin-manifest 2.6.3 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +48 -53
  3. package/lib/SDR-extra/collections/componentSetExtra.d.ts +2 -3
  4. package/lib/SDR-extra/collections/componentSetExtra.js +32 -15
  5. package/lib/SDR-extra/collections/componentSetExtra.js.map +1 -1
  6. package/lib/SDR-extra/collections/index.d.ts +1 -0
  7. package/lib/SDR-extra/collections/index.js +8 -0
  8. package/lib/SDR-extra/collections/index.js.map +1 -0
  9. package/lib/SDR-extra/index.d.ts +3 -0
  10. package/lib/SDR-extra/index.js +10 -0
  11. package/lib/SDR-extra/index.js.map +1 -0
  12. package/lib/SDR-extra/resolve/gitDiffResolver.d.ts +9 -4
  13. package/lib/SDR-extra/resolve/gitDiffResolver.js +88 -79
  14. package/lib/SDR-extra/resolve/gitDiffResolver.js.map +1 -1
  15. package/lib/SDR-extra/resolve/index.d.ts +2 -0
  16. package/lib/SDR-extra/resolve/index.js +9 -0
  17. package/lib/SDR-extra/resolve/index.js.map +1 -0
  18. package/lib/SDR-extra/resolve/treeContainersExtra.d.ts +2 -1
  19. package/lib/SDR-extra/resolve/treeContainersExtra.js +9 -7
  20. package/lib/SDR-extra/resolve/treeContainersExtra.js.map +1 -1
  21. package/lib/SDR-extra/utils/index.d.ts +1 -0
  22. package/lib/SDR-extra/utils/index.js +8 -0
  23. package/lib/SDR-extra/utils/index.js.map +1 -0
  24. package/lib/SDR-extra/utils/localGitRepo.d.ts +39 -0
  25. package/lib/SDR-extra/utils/localGitRepo.js +239 -0
  26. package/lib/SDR-extra/utils/localGitRepo.js.map +1 -0
  27. package/lib/commands/jayree/manifest/beta/git/diff.d.ts +18 -14
  28. package/lib/commands/jayree/manifest/beta/git/diff.js +44 -35
  29. package/lib/commands/jayree/manifest/beta/git/diff.js.map +1 -1
  30. package/lib/commands/jayree/manifest/cleanup.d.ts +1 -2
  31. package/lib/commands/jayree/manifest/cleanup.js +1 -1
  32. package/lib/commands/jayree/manifest/cleanup.js.map +1 -1
  33. package/lib/commands/jayree/manifest/git/diff.d.ts +5 -2
  34. package/lib/commands/jayree/manifest/git/diff.js.map +1 -1
  35. package/lib/utils/gitdiff.js +10 -2
  36. package/lib/utils/gitdiff.js.map +1 -1
  37. package/messages/gitdiffbeta.md +67 -0
  38. package/oclif.manifest.json +1 -1
  39. package/package.json +9 -5
  40. package/schemas/jayree-manifest-beta-git-diff.json +38 -0
  41. package/schemas/jayree-manifest-generate.json +51 -0
  42. package/schemas/jayree-manifest-git-diff.json +19 -0
  43. package/lib/SDR-extra/utils/git-extra.d.ts +0 -65
  44. package/lib/SDR-extra/utils/git-extra.js +0 -198
  45. package/lib/SDR-extra/utils/git-extra.js.map +0 -1
  46. package/messages/gitdiffbeta.json +0 -17
@@ -1,65 +0,0 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- import { CallbackFsClient, PromiseFsClient } from 'isomorphic-git';
3
- import Debug from 'debug';
4
- export declare const debug: Debug.Debugger;
5
- export interface GetCommitLogOptions {
6
- /**
7
- * File paths or directory paths to resolve components against
8
- */
9
- ref: string;
10
- /**
11
- * File paths or directory paths to resolve components against
12
- */
13
- dir: string;
14
- /**
15
- * File paths or directory paths to resolve components against
16
- */
17
- fs: CallbackFsClient | PromiseFsClient;
18
- }
19
- interface MultiRefStringOptions {
20
- /**
21
- * File paths or directory paths to resolve components against
22
- */
23
- ref: string;
24
- /**
25
- * File paths or directory paths to resolve components against
26
- */
27
- dir: string;
28
- /**
29
- * File paths or directory paths to resolve components against
30
- */
31
- fs: CallbackFsClient | PromiseFsClient;
32
- }
33
- export declare function resolveMultiRefString(options: MultiRefStringOptions): Promise<{
34
- ref1: string;
35
- ref2: string;
36
- }>;
37
- interface SingleRefStringOptions {
38
- /**
39
- * File paths or directory paths to resolve components against
40
- */
41
- ref: string;
42
- /**
43
- * File paths or directory paths to resolve components against
44
- */
45
- dir: string;
46
- /**
47
- * File paths or directory paths to resolve components against
48
- */
49
- fs: CallbackFsClient | PromiseFsClient;
50
- }
51
- export declare function resolveSingleRefString(options: SingleRefStringOptions): Promise<string>;
52
- export declare function getFileState(commitHash1: string, commitHash2: string, dir: string): Promise<[
53
- {
54
- path: string;
55
- status: string;
56
- }
57
- ]>;
58
- export declare function getStatus(dir: string, ref: string): Promise<Array<{
59
- path: string;
60
- status: string;
61
- }>>;
62
- export declare function listFullPathFiles(dir: string, ref: string): Promise<string[]>;
63
- export declare function getOid(dir: string, ref: string): Promise<string>;
64
- export declare function readBlobAsBuffer(dir: string, oid: string, filename: string): Promise<Buffer>;
65
- export {};
@@ -1,198 +0,0 @@
1
- /*
2
- * Copyright (c) 2022, jayree
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import util from 'util';
8
- import path from 'path';
9
- import git from 'isomorphic-git';
10
- import fs from 'fs-extra';
11
- import Debug from 'debug';
12
- export const debug = Debug('sf:gitDiff:extra');
13
- async function getCommitLog(options) {
14
- try {
15
- const [log] = await git.log({
16
- fs: options.fs,
17
- dir: options.dir,
18
- ref: options.ref,
19
- depth: 1,
20
- });
21
- return { oid: log.oid, parents: log.commit.parent };
22
- }
23
- catch (error) {
24
- throw new Error(`ambiguous argument '${options.ref}': unknown revision or path not in the working tree.
25
- See more help with --help`);
26
- }
27
- }
28
- export async function resolveMultiRefString(options) {
29
- const a = options.ref.split('.');
30
- let ref1;
31
- let ref2;
32
- if (a.length === 3 || a.length === 4) {
33
- ref1 = a[0];
34
- ref2 = a[a.length - 1];
35
- }
36
- else if (a.length === 1) {
37
- ref1 = a[0];
38
- ref2 = undefined;
39
- }
40
- else {
41
- throw new Error(`Ambiguous ${util.format('argument%s', options.ref.length === 1 ? '' : 's')}: ${options.ref}
42
- See more help with --help`);
43
- }
44
- if (a.length === 4) {
45
- ref1 = (await git.findMergeBase({
46
- fs: options.fs,
47
- dir: options.dir,
48
- oids: [ref2, ref1],
49
- }))[0];
50
- }
51
- else {
52
- ref1 = await resolveSingleRefString({ ref: ref1, dir: options.dir, fs: options.fs });
53
- }
54
- ref2 = await resolveSingleRefString({ ref: ref2, dir: options.dir, fs: options.fs });
55
- return { ref1, ref2 };
56
- }
57
- export async function resolveSingleRefString(options) {
58
- if (options.ref === undefined) {
59
- return '';
60
- }
61
- if (!['~', '^'].some((el) => options.ref.includes(el))) {
62
- return (await getCommitLog({ ref: options.ref, fs: options.fs, dir: options.dir })).oid;
63
- }
64
- const firstIndex = [options.ref.indexOf('^'), options.ref.indexOf('~')]
65
- .filter((a) => a >= 0)
66
- .reduce((a, b) => Math.min(a, b));
67
- let ipath = options.ref.substring(firstIndex);
68
- let resolvedRef = options.ref.substring(0, firstIndex);
69
- while (ipath.length && resolvedRef !== undefined) {
70
- if (ipath.startsWith('^')) {
71
- ipath = ipath.substring(1);
72
- let next = Number(ipath.substring(0, 1));
73
- ipath = next ? ipath.substring(1) : ipath;
74
- next = next ? next : 1;
75
- // eslint-disable-next-line no-await-in-loop
76
- resolvedRef = (await getCommitLog({ ref: resolvedRef, fs: options.fs, dir: options.dir })).parents[next - 1];
77
- }
78
- else if (ipath.startsWith('~')) {
79
- ipath = ipath.substring(1);
80
- let next = Number(ipath.substring(0, 1));
81
- ipath = next ? ipath.substring(1) : ipath;
82
- next = next ? next : 1;
83
- for (let index = 0; index <= next - 1; index++) {
84
- // eslint-disable-next-line no-await-in-loop
85
- resolvedRef = (await getCommitLog({ ref: resolvedRef, fs: options.fs, dir: options.dir })).parents[0];
86
- }
87
- }
88
- else {
89
- resolvedRef = undefined;
90
- }
91
- }
92
- if (resolvedRef === undefined) {
93
- throw new Error(`ambiguous argument '${options.ref}': unknown revision or path not in the working tree.`);
94
- }
95
- return resolvedRef;
96
- }
97
- export async function getFileState(commitHash1, commitHash2, dir) {
98
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
99
- return git.walk({
100
- fs,
101
- dir,
102
- trees: [git.TREE({ ref: commitHash1 }), git.TREE({ ref: commitHash2 })],
103
- async map(filepath, [A, B]) {
104
- if (filepath === '.' || (await A?.type()) === 'tree' || (await B?.type()) === 'tree') {
105
- return;
106
- }
107
- const Aoid = await A?.oid();
108
- const Boid = await B?.oid();
109
- let type = 'EQ';
110
- if (Aoid !== Boid) {
111
- type = 'M';
112
- }
113
- if (Aoid === undefined) {
114
- type = 'A';
115
- }
116
- if (Boid === undefined) {
117
- type = 'D';
118
- }
119
- if (type !== 'EQ') {
120
- return {
121
- path: path.join(dir, ensureOSPath(filepath)),
122
- status: type,
123
- };
124
- }
125
- },
126
- });
127
- }
128
- export async function getStatus(dir, ref) {
129
- const getStatusText = (row) => {
130
- if ([
131
- [0, 2, 2],
132
- [0, 2, 3], // added, staged, with unstaged changes
133
- ].some((a) => a.every((val, index) => val === row[index]))) {
134
- return 'A';
135
- }
136
- if ([
137
- [1, 0, 0],
138
- [1, 0, 1],
139
- [1, 1, 0],
140
- [1, 2, 0],
141
- [1, 0, 3], // modified, staged, with unstaged deletion
142
- ].some((a) => a.every((val, index) => val === row[index]))) {
143
- return 'D';
144
- }
145
- if ([
146
- [1, 2, 1],
147
- [1, 2, 2],
148
- [1, 2, 3], // modified, staged, with unstaged changes
149
- ].some((a) => a.every((val, index) => val === row[index]))) {
150
- return 'M';
151
- }
152
- };
153
- const statusMatrix = await git.statusMatrix({ fs, dir, ref });
154
- const unstaged = statusMatrix
155
- .filter((row) => [
156
- [0, 2, 0],
157
- [0, 0, 3],
158
- [0, 2, 3],
159
- [1, 2, 1],
160
- [1, 0, 3],
161
- [1, 1, 3],
162
- [1, 2, 3],
163
- [1, 1, 0],
164
- [1, 2, 0],
165
- [1, 0, 1], // deleted, unstaged
166
- ].some((a) => a.every((val, index) => val === row.slice(1)[index])))
167
- .map((row) => path.join(dir, ensureOSPath(row[0])));
168
- debug({ unstaged });
169
- const gitlines = statusMatrix
170
- .filter((row) => ![
171
- [0, 0, 0],
172
- [1, 1, 1],
173
- [0, 0, 3],
174
- [0, 2, 0],
175
- [1, 1, 3], // modified, staged, with unstaged original file
176
- ].some((a) => a.every((val, index) => val === row.slice(1)[index])))
177
- .map((row) => ({
178
- path: path.join(dir, ensureOSPath(row[0])),
179
- status: getStatusText(row.slice(1)),
180
- }));
181
- return gitlines;
182
- }
183
- function ensureOSPath(fpath) {
184
- return fpath.split(path.posix.sep).join(path.sep);
185
- }
186
- function ensureGitRelPath(dir, fpath) {
187
- return path.relative(dir, fpath).split(path.sep).join(path.posix.sep);
188
- }
189
- export async function listFullPathFiles(dir, ref) {
190
- return (await git.listFiles({ fs, dir, ref })).map((p) => path.join(dir, ensureOSPath(p)));
191
- }
192
- export async function getOid(dir, ref) {
193
- return ref ? git.resolveRef({ fs, dir, ref }) : '';
194
- }
195
- export async function readBlobAsBuffer(dir, oid, filename) {
196
- return Buffer.from((await git.readBlob({ fs, dir, oid, filepath: ensureGitRelPath(dir, filename) })).blob);
197
- }
198
- //# sourceMappingURL=git-extra.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-extra.js","sourceRoot":"","sources":["../../../src/SDR-extra/utils/git-extra.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAA0C,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAiB/C,KAAK,UAAU,YAAY,CAAC,OAA4B;IACtD,IAAI;QACF,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC;YAC1B,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,KAAK,EAAE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AC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,gBAAgB,CAAC,GAAW,EAAE,KAAa;IAClD,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,GAAW,EAAE,GAAW;IAC9D,OAAO,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7F,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,GAAW,EAAE,GAAW;IACnD,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACrD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,GAAW,EAAE,GAAW,EAAE,QAAgB;IAC/E,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,gBAAgB,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC7G,CAAC"}
@@ -1,17 +0,0 @@
1
- {
2
- "description": "create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or delete based on changes in your git history\nUse this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two git refs.\n\nYou can use all ways to spell <commit> which are valid for 'git diff'.\n(See https://git-scm.com/docs/git-diff)",
3
- "examples": [
4
- "$ sfdx jayree:manifest:beta:git:diff <commit> <commit>\n$ sfdx jayree:manifest:git:diff <commit>..<commit>\nuses the changes between two arbitrary <commit>",
5
- "$ sfdx jayree:manifest:beta:git:diff <commit>...<commit>\nuses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both <commit>.",
6
- "$ sfdx jayree:manifest:beta:git:diff branchA..branchB\nuses the diff of what is unique in branchB (REF2) and unique in branchA (REF1)",
7
- "$ sfdx jayree:manifest:beta:git:diff branchA...branchB\nuses the diff of what is unique in branchB (REF2)"
8
- ],
9
- "flags": {
10
- "outputdir": "directory to save the created manifest files",
11
- "sourcepath": "comma-separated list of paths to the local source files to include in the manifest",
12
- "destructivechangesonly": "create a destructiveChanges manifest only (package.xml will be empty)"
13
- },
14
- "success": "successfully wrote %s",
15
- "successOutputDir": "successfully wrote %s to %s",
16
- "nocomponents": "no source-backed components present"
17
- }