@simplysf/simply-utam-core 0.0.0 → 0.1.1
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/LICENSE.txt +206 -0
- package/README.md +111 -12
- package/lib/discovery/index.d.ts +1 -0
- package/lib/discovery/index.js +17 -0
- package/lib/discovery/index.js.map +1 -0
- package/lib/discovery/project-discovery.d.ts +55 -0
- package/lib/discovery/project-discovery.js +141 -0
- package/lib/discovery/project-discovery.js.map +1 -0
- package/lib/discovery/sfdx-project.d.ts +14 -0
- package/lib/discovery/sfdx-project.js +65 -0
- package/lib/discovery/sfdx-project.js.map +1 -0
- package/lib/forceignore/forceignore-manager.d.ts +145 -0
- package/lib/forceignore/forceignore-manager.js +291 -0
- package/lib/forceignore/forceignore-manager.js.map +1 -0
- package/lib/forceignore/index.d.ts +1 -0
- package/lib/forceignore/index.js +17 -0
- package/lib/forceignore/index.js.map +1 -0
- package/lib/index.d.ts +9 -2
- package/lib/index.js +9 -2
- package/lib/index.js.map +1 -1
- package/lib/namespaces/index.d.ts +1 -0
- package/lib/namespaces/index.js +17 -0
- package/lib/namespaces/index.js.map +1 -0
- package/lib/namespaces/namespace-rewriter.d.ts +50 -0
- package/lib/namespaces/namespace-rewriter.js +223 -0
- package/lib/namespaces/namespace-rewriter.js.map +1 -0
- package/lib/navigator.d.ts +133 -5
- package/lib/navigator.js +224 -12
- package/lib/navigator.js.map +1 -1
- package/lib/overrides/index.d.ts +1 -0
- package/lib/overrides/index.js +17 -0
- package/lib/overrides/index.js.map +1 -0
- package/lib/overrides/overrides-merger.d.ts +63 -0
- package/lib/overrides/overrides-merger.js +280 -0
- package/lib/overrides/overrides-merger.js.map +1 -0
- package/lib/path-utils.d.ts +16 -0
- package/lib/path-utils.js +42 -0
- package/lib/path-utils.js.map +1 -0
- package/lib/rules/index.d.ts +1 -0
- package/lib/rules/index.js +17 -0
- package/lib/rules/index.js.map +1 -0
- package/lib/rules/rules-generator.d.ts +49 -0
- package/lib/rules/rules-generator.js +199 -0
- package/lib/rules/rules-generator.js.map +1 -0
- package/lib/scaffold/index.d.ts +1 -0
- package/lib/scaffold/index.js +17 -0
- package/lib/scaffold/index.js.map +1 -0
- package/lib/scaffold/project-scaffolder.d.ts +167 -0
- package/lib/scaffold/project-scaffolder.js +365 -0
- package/lib/scaffold/project-scaffolder.js.map +1 -0
- package/lib/steps/expression-matcher.d.ts +42 -0
- package/lib/steps/expression-matcher.js +106 -0
- package/lib/steps/expression-matcher.js.map +1 -0
- package/lib/steps/gherkin-parser.d.ts +27 -0
- package/lib/steps/gherkin-parser.js +98 -0
- package/lib/steps/gherkin-parser.js.map +1 -0
- package/lib/steps/index.d.ts +4 -0
- package/lib/steps/index.js +20 -0
- package/lib/steps/index.js.map +1 -0
- package/lib/steps/snippet-generator.d.ts +34 -0
- package/lib/steps/snippet-generator.js +101 -0
- package/lib/steps/snippet-generator.js.map +1 -0
- package/lib/steps/step-scaffolder.d.ts +49 -0
- package/lib/steps/step-scaffolder.js +225 -0
- package/lib/steps/step-scaffolder.js.map +1 -0
- package/lib/test-environment.d.ts +99 -4
- package/lib/test-environment.js +302 -4
- package/lib/test-environment.js.map +1 -1
- package/package.json +38 -4
- package/templates/generator.config.json +13 -0
- package/templates/hello.feature +4 -0
- package/templates/hello.steps.mjs +7 -0
- package/templates/namespace-map.json +3 -0
- package/templates/utam.config.json +9 -0
- package/templates/wdio.conf.mjs +68 -0
- package/templates/wireit.json +37 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2026, SimplySF.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import fs from 'node:fs';
|
|
17
|
+
import path from 'node:path';
|
|
18
|
+
/**
|
|
19
|
+
* Reads sfdx-project.json without scanning any source folders. Internal: not re-exported from the
|
|
20
|
+
* discovery barrel, so it isn't part of the public API.
|
|
21
|
+
*
|
|
22
|
+
* @param resolvedRoot - Absolute project root.
|
|
23
|
+
* @returns The sfdx-project.json path, namespace, and package directories.
|
|
24
|
+
*/
|
|
25
|
+
export function parseSfdxProject(resolvedRoot) {
|
|
26
|
+
let sfdxProjectFile = null;
|
|
27
|
+
let namespace = null;
|
|
28
|
+
const packageDirectories = [];
|
|
29
|
+
let defaultPackageDirectory = null;
|
|
30
|
+
const candidate = path.join(resolvedRoot, 'sfdx-project.json');
|
|
31
|
+
if (fs.existsSync(candidate)) {
|
|
32
|
+
sfdxProjectFile = candidate;
|
|
33
|
+
try {
|
|
34
|
+
const parsed = JSON.parse(fs.readFileSync(candidate, 'utf-8'));
|
|
35
|
+
if (typeof parsed.namespace === 'string' && parsed.namespace.trim()) {
|
|
36
|
+
namespace = parsed.namespace.trim();
|
|
37
|
+
}
|
|
38
|
+
if (Array.isArray(parsed.packageDirectories)) {
|
|
39
|
+
for (const pkgDir of parsed.packageDirectories) {
|
|
40
|
+
if (typeof pkgDir?.path === 'string') {
|
|
41
|
+
packageDirectories.push(pkgDir.path);
|
|
42
|
+
if (pkgDir.default === true && !defaultPackageDirectory) {
|
|
43
|
+
defaultPackageDirectory = pkgDir.path;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
// Continue with empty defaults on JSON read error
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (packageDirectories.length === 0) {
|
|
54
|
+
for (const fallback of ['force-app', 'sfdx-source', 'src']) {
|
|
55
|
+
if (fs.existsSync(path.join(resolvedRoot, fallback))) {
|
|
56
|
+
packageDirectories.push(fallback);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (!defaultPackageDirectory && packageDirectories.length > 0) {
|
|
61
|
+
defaultPackageDirectory = packageDirectories[0];
|
|
62
|
+
}
|
|
63
|
+
return { sfdxProjectFile, namespace, packageDirectories, defaultPackageDirectory };
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=sfdx-project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sfdx-project.js","sourceRoot":"","sources":["../../src/discovery/sfdx-project.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAU7B;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,YAAoB;IACnD,IAAI,eAAe,GAAkB,IAAI,CAAC;IAC1C,IAAI,SAAS,GAAkB,IAAI,CAAC;IACpC,MAAM,kBAAkB,GAAa,EAAE,CAAC;IACxC,IAAI,uBAAuB,GAAkB,IAAI,CAAC;IAElD,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;IAC/D,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC7B,eAAe,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAsB,CAAC;YACpF,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;gBACpE,SAAS,GAAG,MAAM,C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GNORE_FILE = ".forceignore";
|
|
5
|
+
/**
|
|
6
|
+
* Comment line that heads the UTAM rules in a .forceignore file. It has no closing marker.
|
|
7
|
+
*/
|
|
8
|
+
export declare const FORCEIGNORE_HEADER = "# Ignore UTAM";
|
|
9
|
+
/**
|
|
10
|
+
* Default markers of a project's customization region in .forceignore.
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_FORCEIGNORE_REGION: {
|
|
13
|
+
readonly start: "# -- START CUSTOMIZATION";
|
|
14
|
+
readonly end: "# -- END CUSTOMIZATION";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A required .forceignore rule, and the existing patterns accepted as already covering it.
|
|
18
|
+
*/
|
|
19
|
+
export interface ForceignoreRule {
|
|
20
|
+
/**
|
|
21
|
+
* The pattern written when the rule is missing.
|
|
22
|
+
*/
|
|
23
|
+
pattern: string;
|
|
24
|
+
/**
|
|
25
|
+
* Other patterns that, when present as an active line, count as covering the rule.
|
|
26
|
+
*/
|
|
27
|
+
alternatives: string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Rules that keep UTAM artifacts written inside LWC bundles out of Salesforce deploys.
|
|
31
|
+
*/
|
|
32
|
+
export declare const SIMPLY_UTAM_FORCEIGNORE_RULES: readonly ForceignoreRule[];
|
|
33
|
+
/**
|
|
34
|
+
* Options for merging UTAM rules into .forceignore content.
|
|
35
|
+
*/
|
|
36
|
+
export interface MergeForceignoreOptions {
|
|
37
|
+
/**
|
|
38
|
+
* Rules that must be present. Defaults to SIMPLY_UTAM_FORCEIGNORE_RULES.
|
|
39
|
+
*/
|
|
40
|
+
rules?: readonly ForceignoreRule[];
|
|
41
|
+
/**
|
|
42
|
+
* Exact line that starts the customization region. Defaults to DEFAULT_FORCEIGNORE_REGION.start.
|
|
43
|
+
*/
|
|
44
|
+
regionStart?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Exact line that ends the customization region. Defaults to DEFAULT_FORCEIGNORE_REGION.end.
|
|
47
|
+
*/
|
|
48
|
+
regionEnd?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Where missing rules were written: an existing `# Ignore UTAM` block, the customization region, or
|
|
52
|
+
* the end of the file.
|
|
53
|
+
*/
|
|
54
|
+
export type ForceignorePlacement = 'block' | 'region' | 'end';
|
|
55
|
+
/**
|
|
56
|
+
* Outcome of merging UTAM rules into .forceignore content.
|
|
57
|
+
*/
|
|
58
|
+
export interface MergeForceignoreResult {
|
|
59
|
+
/**
|
|
60
|
+
* The resulting content. Equal to the input when action is 'unchanged'.
|
|
61
|
+
*/
|
|
62
|
+
content: string;
|
|
63
|
+
/**
|
|
64
|
+
* 'appended' added rules to an existing block, 'inserted' added a new block, and 'unchanged' found
|
|
65
|
+
* every rule already covered.
|
|
66
|
+
*/
|
|
67
|
+
action: 'appended' | 'inserted' | 'unchanged';
|
|
68
|
+
/**
|
|
69
|
+
* Where missing rules were written, when any were.
|
|
70
|
+
*/
|
|
71
|
+
placement?: ForceignorePlacement;
|
|
72
|
+
/**
|
|
73
|
+
* Patterns that were added, in rule order.
|
|
74
|
+
*/
|
|
75
|
+
addedPatterns: string[];
|
|
76
|
+
/**
|
|
77
|
+
* Non-fatal problems, such as a malformed customization region.
|
|
78
|
+
*/
|
|
79
|
+
warnings: string[];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Options for ensuring a project's .forceignore covers UTAM artifacts.
|
|
83
|
+
*/
|
|
84
|
+
export interface EnsureForceignoreOptions extends MergeForceignoreOptions {
|
|
85
|
+
/**
|
|
86
|
+
* Root directory of the consumer project. Defaults to current working directory.
|
|
87
|
+
*/
|
|
88
|
+
projectDir?: string;
|
|
89
|
+
/**
|
|
90
|
+
* If true, computes the result without writing to disk.
|
|
91
|
+
*/
|
|
92
|
+
dryRun?: boolean;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Outcome of ensuring a project's .forceignore covers UTAM artifacts.
|
|
96
|
+
*/
|
|
97
|
+
export interface ForceignoreResult extends Omit<MergeForceignoreResult, 'content' | 'action'> {
|
|
98
|
+
/**
|
|
99
|
+
* Path of the .forceignore file, relative to the project root.
|
|
100
|
+
*/
|
|
101
|
+
path: string;
|
|
102
|
+
/**
|
|
103
|
+
* What happened to the file. 'created' wrote a new file, 'skipped' means there is no .forceignore
|
|
104
|
+
* and no sfdx-project.json, and 'failed' means the file could not be read or written (the reason is
|
|
105
|
+
* in warnings).
|
|
106
|
+
*/
|
|
107
|
+
action: 'created' | 'appended' | 'inserted' | 'unchanged' | 'skipped' | 'failed';
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Merges missing UTAM rules into .forceignore content without changing any existing line.
|
|
111
|
+
*
|
|
112
|
+
* Missing rules are added under the first `# Ignore UTAM` comment if one exists. Otherwise a new
|
|
113
|
+
* `# Ignore UTAM` block is inserted above the customization region's end marker, or appended at the
|
|
114
|
+
* end of the content when there is no valid region.
|
|
115
|
+
*
|
|
116
|
+
* @param content - The current .forceignore content. An empty string for a new file.
|
|
117
|
+
* @param options - Rules and customization region markers.
|
|
118
|
+
* @returns The merged content and a description of what changed.
|
|
119
|
+
*/
|
|
120
|
+
export declare function mergeForceignore(content: string, options?: MergeForceignoreOptions): MergeForceignoreResult;
|
|
121
|
+
/**
|
|
122
|
+
* Builds .forceignore rules for UTAM test folders that sit inside a Salesforce package directory.
|
|
123
|
+
*
|
|
124
|
+
* Each rule is the folder's path relative to the project root, with forward slashes and a trailing
|
|
125
|
+
* slash, so it matches only that folder. Characters .forceignore treats as special are escaped, so a
|
|
126
|
+
* folder such as `force-app[1]` is matched literally. Folders outside every package directory are never deployed
|
|
127
|
+
* and get no rule, and absolute paths or paths outside the project root get no rule because a
|
|
128
|
+
* .forceignore pattern can't reach them.
|
|
129
|
+
*
|
|
130
|
+
* @param testDirs - Test folders, relative to the project root.
|
|
131
|
+
* @param packageDirectories - Package directories from sfdx-project.json, relative to the project root.
|
|
132
|
+
* @returns One rule per test folder that needs one, without duplicates.
|
|
133
|
+
*/
|
|
134
|
+
export declare function resolveUtamTestIgnoreRules(testDirs: string[], packageDirectories: string[]): ForceignoreRule[];
|
|
135
|
+
/**
|
|
136
|
+
* Ensures a project's .forceignore covers UTAM artifacts, adding only the missing rules.
|
|
137
|
+
*
|
|
138
|
+
* Creates the file when it is missing and the project has an sfdx-project.json. Existing lines are
|
|
139
|
+
* never removed, rewritten, or reordered. A read or write error is reported as a 'failed' result
|
|
140
|
+
* rather than thrown, so a problem with a file the project owns doesn't abort the caller.
|
|
141
|
+
*
|
|
142
|
+
* @param options - Project directory, rules, region markers, and dry-run flag.
|
|
143
|
+
* @returns What happened to the file.
|
|
144
|
+
*/
|
|
145
|
+
export declare function ensureForceignore(options?: EnsureForceignoreOptions): ForceignoreResult;
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2026, SimplySF.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import * as fs from 'node:fs';
|
|
17
|
+
import * as path from 'node:path';
|
|
18
|
+
import { isAbsoluteOnAnyPlatform, toPosixRelative } from '../path-utils.js';
|
|
19
|
+
/**
|
|
20
|
+
* File name of the Salesforce ignore file, relative to the project root.
|
|
21
|
+
*/
|
|
22
|
+
export const FORCEIGNORE_FILE = '.forceignore';
|
|
23
|
+
/**
|
|
24
|
+
* Comment line that heads the UTAM rules in a .forceignore file. It has no closing marker.
|
|
25
|
+
*/
|
|
26
|
+
export const FORCEIGNORE_HEADER = '# Ignore UTAM';
|
|
27
|
+
/**
|
|
28
|
+
* Default markers of a project's customization region in .forceignore.
|
|
29
|
+
*/
|
|
30
|
+
export const DEFAULT_FORCEIGNORE_REGION = {
|
|
31
|
+
start: '# -- START CUSTOMIZATION',
|
|
32
|
+
end: '# -- END CUSTOMIZATION',
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Rules that keep UTAM artifacts written inside LWC bundles out of Salesforce deploys.
|
|
36
|
+
*/
|
|
37
|
+
export const SIMPLY_UTAM_FORCEIGNORE_RULES = [
|
|
38
|
+
{ pattern: '**/__utam__/**', alternatives: ['**/__utam__/', '**/__utam__', '__utam__/', '__utam__'] },
|
|
39
|
+
{ pattern: '**/lwc/**/*.rules.json', alternatives: ['**/*.rules.json', '*.rules.json'] },
|
|
40
|
+
{ pattern: '**/*.utam-overrides.json', alternatives: ['*.utam-overrides.json'] },
|
|
41
|
+
];
|
|
42
|
+
const BYTE_ORDER_MARK = String.fromCharCode(0xfeff);
|
|
43
|
+
function splitLines(body) {
|
|
44
|
+
const lines = [];
|
|
45
|
+
let index = 0;
|
|
46
|
+
while (index < body.length) {
|
|
47
|
+
const newline = body.indexOf('\n', index);
|
|
48
|
+
if (newline === -1) {
|
|
49
|
+
lines.push({ text: body.slice(index), eol: '' });
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
const raw = body.slice(index, newline);
|
|
53
|
+
lines.push(raw.endsWith('\r') ? { text: raw.slice(0, -1), eol: '\r\n' } : { text: raw, eol: '\n' });
|
|
54
|
+
index = newline + 1;
|
|
55
|
+
}
|
|
56
|
+
return lines;
|
|
57
|
+
}
|
|
58
|
+
function isActivePattern(text) {
|
|
59
|
+
const trimmed = text.trim();
|
|
60
|
+
return trimmed !== '' && !trimmed.startsWith('#') && !trimmed.startsWith('!');
|
|
61
|
+
}
|
|
62
|
+
function isBlockLine(text) {
|
|
63
|
+
const trimmed = text.trim();
|
|
64
|
+
return trimmed !== '' && !trimmed.startsWith('#');
|
|
65
|
+
}
|
|
66
|
+
function findMarker(lines, marker) {
|
|
67
|
+
return lines.flatMap((line, index) => (line.text.trim() === marker ? [index] : []));
|
|
68
|
+
}
|
|
69
|
+
function findBlockEnd(lines, headerIndex) {
|
|
70
|
+
let end = headerIndex + 1;
|
|
71
|
+
while (end < lines.length && isBlockLine(lines[end].text)) {
|
|
72
|
+
end++;
|
|
73
|
+
}
|
|
74
|
+
return end;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Finds the index of the region's end marker, or a warning when the region is malformed.
|
|
78
|
+
*/
|
|
79
|
+
function findRegionEnd(lines, regionStart, regionEnd) {
|
|
80
|
+
if (!regionStart || !regionEnd) {
|
|
81
|
+
// An empty marker would match every blank line.
|
|
82
|
+
return {
|
|
83
|
+
warning: `A customization region marker is empty, so UTAM rules were added at the end of ${FORCEIGNORE_FILE}.`,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
const starts = findMarker(lines, regionStart);
|
|
87
|
+
const ends = findMarker(lines, regionEnd);
|
|
88
|
+
if (starts.length === 0 && ends.length === 0) {
|
|
89
|
+
return {};
|
|
90
|
+
}
|
|
91
|
+
if (starts.length === 1 && ends.length === 1 && starts[0] < ends[0]) {
|
|
92
|
+
return { index: ends[0] };
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
warning: `The customization region ('${regionStart}' … '${regionEnd}') is malformed, so UTAM rules were added at the end of ${FORCEIGNORE_FILE}.`,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Picks the line ending for inserted lines: the one used by the line they follow, or else the one most
|
|
100
|
+
* lines in the file use.
|
|
101
|
+
*/
|
|
102
|
+
function pickEol(lines, insertAt) {
|
|
103
|
+
const previous = insertAt > 0 ? lines[insertAt - 1].eol : '';
|
|
104
|
+
if (previous) {
|
|
105
|
+
return previous;
|
|
106
|
+
}
|
|
107
|
+
const crlf = lines.filter((line) => line.eol === '\r\n').length;
|
|
108
|
+
const lf = lines.filter((line) => line.eol === '\n').length;
|
|
109
|
+
return crlf > lf ? '\r\n' : '\n';
|
|
110
|
+
}
|
|
111
|
+
function needsSeparator(lines, index) {
|
|
112
|
+
return index > 0 && lines[index - 1].text.trim() !== '';
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Merges missing UTAM rules into .forceignore content without changing any existing line.
|
|
116
|
+
*
|
|
117
|
+
* Missing rules are added under the first `# Ignore UTAM` comment if one exists. Otherwise a new
|
|
118
|
+
* `# Ignore UTAM` block is inserted above the customization region's end marker, or appended at the
|
|
119
|
+
* end of the content when there is no valid region.
|
|
120
|
+
*
|
|
121
|
+
* @param content - The current .forceignore content. An empty string for a new file.
|
|
122
|
+
* @param options - Rules and customization region markers.
|
|
123
|
+
* @returns The merged content and a description of what changed.
|
|
124
|
+
*/
|
|
125
|
+
export function mergeForceignore(content, options) {
|
|
126
|
+
const rules = options?.rules ?? SIMPLY_UTAM_FORCEIGNORE_RULES;
|
|
127
|
+
const regionStart = (options?.regionStart ?? DEFAULT_FORCEIGNORE_REGION.start).trim();
|
|
128
|
+
const regionEnd = (options?.regionEnd ?? DEFAULT_FORCEIGNORE_REGION.end).trim();
|
|
129
|
+
const bom = content.startsWith(BYTE_ORDER_MARK) ? BYTE_ORDER_MARK : '';
|
|
130
|
+
const body = content.slice(bom.length);
|
|
131
|
+
const lines = splitLines(body);
|
|
132
|
+
const active = new Set(lines.filter((line) => isActivePattern(line.text)).map((line) => line.text.trim()));
|
|
133
|
+
const addedPatterns = rules
|
|
134
|
+
.filter((rule) => ![rule.pattern, ...rule.alternatives].some((pattern) => active.has(pattern)))
|
|
135
|
+
.map((rule) => rule.pattern);
|
|
136
|
+
if (addedPatterns.length === 0) {
|
|
137
|
+
return { content, action: 'unchanged', addedPatterns, warnings: [] };
|
|
138
|
+
}
|
|
139
|
+
const warnings = [];
|
|
140
|
+
let insertAt;
|
|
141
|
+
let newLines;
|
|
142
|
+
let placement;
|
|
143
|
+
const headerIndex = lines.findIndex((line) => line.text.trim() === FORCEIGNORE_HEADER);
|
|
144
|
+
if (headerIndex === -1) {
|
|
145
|
+
const region = findRegionEnd(lines, regionStart, regionEnd);
|
|
146
|
+
if (region.warning) {
|
|
147
|
+
warnings.push(region.warning);
|
|
148
|
+
}
|
|
149
|
+
placement = region.index === undefined ? 'end' : 'region';
|
|
150
|
+
insertAt = region.index ?? lines.length;
|
|
151
|
+
newLines = [...(needsSeparator(lines, insertAt) ? [''] : []), FORCEIGNORE_HEADER, ...addedPatterns];
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
placement = 'block';
|
|
155
|
+
insertAt = findBlockEnd(lines, headerIndex);
|
|
156
|
+
newLines = addedPatterns;
|
|
157
|
+
}
|
|
158
|
+
const eol = pickEol(lines, insertAt);
|
|
159
|
+
if (insertAt > 0 && lines[insertAt - 1].eol === '') {
|
|
160
|
+
lines[insertAt - 1].eol = eol;
|
|
161
|
+
}
|
|
162
|
+
lines.splice(insertAt, 0, ...newLines.map((text) => ({ text, eol })));
|
|
163
|
+
return {
|
|
164
|
+
content: bom + lines.map((line) => line.text + line.eol).join(''),
|
|
165
|
+
action: placement === 'block' ? 'appended' : 'inserted',
|
|
166
|
+
placement,
|
|
167
|
+
addedPatterns,
|
|
168
|
+
warnings,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Escapes the characters that .forceignore would read as wildcards in a literal path: `[`, `]` and `*`.
|
|
173
|
+
* A `?` is left as is: the `ignore` 5.x library that Salesforce's deploy tooling uses can't escape it,
|
|
174
|
+
* and unescaped it still matches the literal character.
|
|
175
|
+
*/
|
|
176
|
+
function escapeIgnoreWildcards(literalPath) {
|
|
177
|
+
return literalPath.replace(/[[\]*]/g, '\\$&');
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Escapes a literal path for use as a whole .forceignore line: its wildcards, plus a leading `#` (a
|
|
181
|
+
* comment) or `!` (a negation).
|
|
182
|
+
*/
|
|
183
|
+
function escapeIgnorePattern(literalPath) {
|
|
184
|
+
return escapeIgnoreWildcards(literalPath).replace(/^[#!]/, '\\$&');
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Builds .forceignore rules for UTAM test folders that sit inside a Salesforce package directory.
|
|
188
|
+
*
|
|
189
|
+
* Each rule is the folder's path relative to the project root, with forward slashes and a trailing
|
|
190
|
+
* slash, so it matches only that folder. Characters .forceignore treats as special are escaped, so a
|
|
191
|
+
* folder such as `force-app[1]` is matched literally. Folders outside every package directory are never deployed
|
|
192
|
+
* and get no rule, and absolute paths or paths outside the project root get no rule because a
|
|
193
|
+
* .forceignore pattern can't reach them.
|
|
194
|
+
*
|
|
195
|
+
* @param testDirs - Test folders, relative to the project root.
|
|
196
|
+
* @param packageDirectories - Package directories from sfdx-project.json, relative to the project root.
|
|
197
|
+
* @returns One rule per test folder that needs one, without duplicates.
|
|
198
|
+
*/
|
|
199
|
+
export function resolveUtamTestIgnoreRules(testDirs, packageDirectories) {
|
|
200
|
+
const packages = packageDirectories.map(toPosixRelative);
|
|
201
|
+
const rules = [];
|
|
202
|
+
const seen = new Set();
|
|
203
|
+
for (const testDir of testDirs.map(toPosixRelative)) {
|
|
204
|
+
const insidePackage = packages.some((pkg) => pkg === '' || testDir === pkg || testDir.startsWith(`${pkg}/`));
|
|
205
|
+
const outsideProject = isAbsoluteOnAnyPlatform(testDir) || testDir === '..' || testDir.startsWith('../');
|
|
206
|
+
if (!testDir || outsideProject || !insidePackage || seen.has(testDir)) {
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
seen.add(testDir);
|
|
210
|
+
const literal = escapeIgnorePattern(testDir);
|
|
211
|
+
const rooted = `/${escapeIgnoreWildcards(testDir)}`;
|
|
212
|
+
rules.push({
|
|
213
|
+
pattern: `${literal}/`,
|
|
214
|
+
alternatives: [literal, `${literal}/**`, `${rooted}/`, rooted, `${rooted}/**`],
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
return rules;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Replaces a file's content by writing a temporary file next to it and renaming it into place, so an
|
|
221
|
+
* interrupted write can't leave the project's file truncated. A symlink is followed, an existing file's
|
|
222
|
+
* permissions are kept, and a read-only file is refused just as a plain write would refuse it.
|
|
223
|
+
*
|
|
224
|
+
* When that isn't possible (the folder doesn't allow new files, or on Windows another process briefly
|
|
225
|
+
* holds the file), the temporary file is removed and the file is written in place instead. An error
|
|
226
|
+
* from that write is thrown.
|
|
227
|
+
*/
|
|
228
|
+
function writeFileSafely(filePath, content) {
|
|
229
|
+
const exists = fs.existsSync(filePath);
|
|
230
|
+
const target = exists ? fs.realpathSync(filePath) : filePath;
|
|
231
|
+
if (exists) {
|
|
232
|
+
// A rename only needs permission on the folder, so check the file itself to respect a read-only
|
|
233
|
+
// .forceignore the same way a plain write would.
|
|
234
|
+
fs.accessSync(target, fs.constants.W_OK);
|
|
235
|
+
}
|
|
236
|
+
const temp = path.join(path.dirname(target), `.${path.basename(target)}.${process.pid}.tmp`);
|
|
237
|
+
try {
|
|
238
|
+
fs.writeFileSync(temp, content, 'utf-8');
|
|
239
|
+
if (exists) {
|
|
240
|
+
fs.chmodSync(temp, fs.statSync(target).mode);
|
|
241
|
+
}
|
|
242
|
+
fs.renameSync(temp, target);
|
|
243
|
+
}
|
|
244
|
+
catch {
|
|
245
|
+
fs.rmSync(temp, { force: true });
|
|
246
|
+
fs.writeFileSync(target, content, 'utf-8');
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Ensures a project's .forceignore covers UTAM artifacts, adding only the missing rules.
|
|
251
|
+
*
|
|
252
|
+
* Creates the file when it is missing and the project has an sfdx-project.json. Existing lines are
|
|
253
|
+
* never removed, rewritten, or reordered. A read or write error is reported as a 'failed' result
|
|
254
|
+
* rather than thrown, so a problem with a file the project owns doesn't abort the caller.
|
|
255
|
+
*
|
|
256
|
+
* @param options - Project directory, rules, region markers, and dry-run flag.
|
|
257
|
+
* @returns What happened to the file.
|
|
258
|
+
*/
|
|
259
|
+
export function ensureForceignore(options) {
|
|
260
|
+
const projectDir = path.resolve(options?.projectDir ?? process.cwd());
|
|
261
|
+
const filePath = path.join(projectDir, FORCEIGNORE_FILE);
|
|
262
|
+
const exists = fs.existsSync(filePath);
|
|
263
|
+
if (!exists && !fs.existsSync(path.join(projectDir, 'sfdx-project.json'))) {
|
|
264
|
+
return { path: FORCEIGNORE_FILE, action: 'skipped', addedPatterns: [], warnings: [] };
|
|
265
|
+
}
|
|
266
|
+
let merged;
|
|
267
|
+
try {
|
|
268
|
+
merged = mergeForceignore(exists ? fs.readFileSync(filePath, 'utf-8') : '', options);
|
|
269
|
+
if (merged.action !== 'unchanged' && !options?.dryRun) {
|
|
270
|
+
writeFileSafely(filePath, merged.content);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
catch (error) {
|
|
274
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
275
|
+
return {
|
|
276
|
+
path: FORCEIGNORE_FILE,
|
|
277
|
+
action: 'failed',
|
|
278
|
+
addedPatterns: [],
|
|
279
|
+
warnings: [`Could not update ${FORCEIGNORE_FILE}, so UTAM rules were not added: ${reason}`],
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
const action = exists || merged.action === 'unchanged' ? merged.action : 'created';
|
|
283
|
+
return {
|
|
284
|
+
path: FORCEIGNORE_FILE,
|
|
285
|
+
action,
|
|
286
|
+
placement: merged.placement,
|
|
287
|
+
addedPatterns: merged.addedPatterns,
|
|
288
|
+
warnings: merged.warnings,
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
//# sourceMappingURL=forceignore-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forceignore-manager.js","sourceRoot":"","sources":["../../src/forceignore/forceignore-manager.ts"],"names":[],"mappings":"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AAE,CAAC,oBAAoB,gBAAgB,mCAAmC,MAAM,EAAE,CAAC;SAC5F,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IAEnF,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,MAAM;QACN,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './forceignore-manager.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2026, SimplySF.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './forceignore-manager.js';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/forceignore/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
export { TestEnvironment, USERNAME_ENV, type EnvLike, type TestEnvironmentOptions } from './test-environment.js';
|
|
1
|
+
export { TestEnvironment, USERNAME_ENV, DEFAULT_ALLOWED_HOST_PATTERNS, isHostAllowed, validateAndParseSecureUrl, getTestEnvironment, setTestEnvironment, resetTestEnvironment, type EnvLike, type TestEnvironmentOptions, } from './test-environment.js';
|
|
2
2
|
export { applicationPath, lightningAppName, newRecordPath, recordPath, relatedListPath } from './lightning-paths.js';
|
|
3
|
-
export { LightningNavigator, type FrontdoorUrlSource, type LightningNavigatorOptions, type NavigableBrowser, } from './navigator.js';
|
|
3
|
+
export { LightningNavigator, goToLoginUrl, goToExperiencePage, loginAsUser, loginAsExperienceUser, goToApplication, goToCreateNewRecord, goToRecord, goToRelatedList, resolveBrowser, type FrontdoorUrlSource, type LightningNavigatorOptions, type NavigableBrowser, } from './navigator.js';
|
|
4
4
|
export { formatUtamHtml, getUtamHtml, logUtamHtml, type UtamElementLike, type UtamHtml } from './utam-html.js';
|
|
5
|
+
export { findLwcDirectories, discoverComponentsInPackageDir, discoverProject, type SfdxPackageDirectory, type SfdxProjectConfig, type DiscoveredLwcComponent, type DiscoveredProject, } from './discovery/index.js';
|
|
6
|
+
export { FORCEIGNORE_FILE, FORCEIGNORE_HEADER, DEFAULT_FORCEIGNORE_REGION, SIMPLY_UTAM_FORCEIGNORE_RULES, mergeForceignore, resolveUtamTestIgnoreRules, ensureForceignore, type ForceignoreRule, type ForceignorePlacement, type MergeForceignoreOptions, type MergeForceignoreResult, type EnsureForceignoreOptions, type ForceignoreResult, } from './forceignore/index.js';
|
|
7
|
+
export { ROOT_TARGETS, convertLwcNameToHtml, getTargetsFromMeta, generateLwcRules, type GenerateRulesOptions, type RuleAction, type GenerateRulesResult, } from './rules/index.js';
|
|
8
|
+
export { detectIndentation, findUtamOverridesFiles, walkElements, mergeElements, applyUtamOverrides, type ApplyOverridesOptions, type OverrideChange, type FileOverrideResult, type ApplyOverridesResult, type UtamOverrideItem, } from './overrides/index.js';
|
|
9
|
+
export { findUtamJsonFiles, updateValueWithMappings, rewriteUtamNamespaces, type RewriteNamespacesOptions, type NamespaceReplacement, type FileRewriteResult, type RewriteNamespacesResult, } from './namespaces/index.js';
|
|
10
|
+
export { parseGherkinDocument, extractStepsFromGherkin, normalizeExpression, extractStepExpressionsFromContent, compileStepExpressions, matchStepAgainstExpressions, formatParameterNames, generateStepSnippet, formatCode, resolveGlobs, resolveDefaultTargetOutput, generateCucumberSteps, type StepSemanticKeyword, type ParsedGherkinStep, type RawExtractedExpression, type CompiledStepExpression, type GeneratedStepSnippet, type GenerateStepsOptions, type GenerateStepsResult, } from './steps/index.js';
|
|
11
|
+
export { DEFAULT_TEMPLATES_DIR, DEFAULT_REQUIRED_DEV_DEPENDENCIES, loadTemplate, generateGeneratorConfig, generateUtamConfig, generateWdioConfig, generateNamespaceMap, generateHelloFeature, generateHelloSteps, injectWireitConfiguration, checkMissingDependencies, scaffoldProject, type ScaffoldOptions, type ScaffoldResult, } from './scaffold/index.js';
|
package/lib/index.js
CHANGED
|
@@ -20,8 +20,15 @@
|
|
|
20
20
|
//
|
|
21
21
|
// Nothing here depends on WebdriverIO or UTAM at runtime: the browser and UTAM objects are typed
|
|
22
22
|
// structurally, so consumers bring whichever versions their test project already uses.
|
|
23
|
-
export { TestEnvironment, USERNAME_ENV } from './test-environment.js';
|
|
23
|
+
export { TestEnvironment, USERNAME_ENV, DEFAULT_ALLOWED_HOST_PATTERNS, isHostAllowed, validateAndParseSecureUrl, getTestEnvironment, setTestEnvironment, resetTestEnvironment, } from './test-environment.js';
|
|
24
24
|
export { applicationPath, lightningAppName, newRecordPath, recordPath, relatedListPath } from './lightning-paths.js';
|
|
25
|
-
export { LightningNavigator, } from './navigator.js';
|
|
25
|
+
export { LightningNavigator, goToLoginUrl, goToExperiencePage, loginAsUser, loginAsExperienceUser, goToApplication, goToCreateNewRecord, goToRecord, goToRelatedList, resolveBrowser, } from './navigator.js';
|
|
26
26
|
export { formatUtamHtml, getUtamHtml, logUtamHtml } from './utam-html.js';
|
|
27
|
+
export { findLwcDirectories, discoverComponentsInPackageDir, discoverProject, } from './discovery/index.js';
|
|
28
|
+
export { FORCEIGNORE_FILE, FORCEIGNORE_HEADER, DEFAULT_FORCEIGNORE_REGION, SIMPLY_UTAM_FORCEIGNORE_RULES, mergeForceignore, resolveUtamTestIgnoreRules, ensureForceignore, } from './forceignore/index.js';
|
|
29
|
+
export { ROOT_TARGETS, convertLwcNameToHtml, getTargetsFromMeta, generateLwcRules, } from './rules/index.js';
|
|
30
|
+
export { detectIndentation, findUtamOverridesFiles, walkElements, mergeElements, applyUtamOverrides, } from './overrides/index.js';
|
|
31
|
+
export { findUtamJsonFiles, updateValueWithMappings, rewriteUtamNamespaces, } from './namespaces/index.js';
|
|
32
|
+
export { parseGherkinDocument, extractStepsFromGherkin, normalizeExpression, extractStepExpressionsFromContent, compileStepExpressions, matchStepAgainstExpressions, formatParameterNames, generateStepSnippet, formatCode, resolveGlobs, resolveDefaultTargetOutput, generateCucumberSteps, } from './steps/index.js';
|
|
33
|
+
export { DEFAULT_TEMPLATES_DIR, DEFAULT_REQUIRED_DEV_DEPENDENCIES, loadTemplate, generateGeneratorConfig, generateUtamConfig, generateWdioConfig, generateNamespaceMap, generateHelloFeature, generateHelloSteps, injectWireitConfiguration, checkMissingDependencies, scaffoldProject, } from './scaffold/index.js';
|
|
27
34
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gGAAgG;AAChG,+EAA+E;AAC/E,gGAAgG;AAChG,2CAA2C;AAC3C,EAAE;AACF,iGAAiG;AACjG,uFAAuF;AAEvF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,gGAAgG;AAChG,+EAA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AA0B,EAC1B,qBAAqB,GAQtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,qBAAqB,EACrB,iCAAiC,EACjC,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,EACxB,eAAe,GAGhB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './namespace-rewriter.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2026, SimplySF.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from './namespace-rewriter.js';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/namespaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,yBAAyB,CAAC"}
|