@teambit/snapping 1.0.650 → 1.0.652
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/index.d.ts +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/snap-cmd.d.ts +2 -1
- package/dist/snap-cmd.js +42 -38
- package/dist/snap-cmd.js.map +1 -1
- package/package.json +19 -19
- /package/dist/{preview-1752524063927.js → preview-1752588566113.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export default SnappingAspect;
|
|
|
5
5
|
export { SnappingAspect };
|
|
6
6
|
export { VersionMaker, BasicTagParams, VersionMakerParams, BasicTagSnapParams } from './version-maker';
|
|
7
7
|
export { AUTO_TAGGED_MSG, NOTHING_TO_TAG_MSG, tagCmdOptions, TagParams, validateOptions, tagResultOutput, outputIdsIfExists, } from './tag-cmd';
|
|
8
|
+
export { snapResultOutput } from './snap-cmd';
|
package/dist/index.js
CHANGED
|
@@ -58,6 +58,12 @@ Object.defineProperty(exports, "outputIdsIfExists", {
|
|
|
58
58
|
return _tagCmd().outputIdsIfExists;
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
+
Object.defineProperty(exports, "snapResultOutput", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () {
|
|
64
|
+
return _snapCmd().snapResultOutput;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
61
67
|
Object.defineProperty(exports, "tagCmdOptions", {
|
|
62
68
|
enumerable: true,
|
|
63
69
|
get: function () {
|
|
@@ -97,6 +103,13 @@ function _tagCmd() {
|
|
|
97
103
|
};
|
|
98
104
|
return data;
|
|
99
105
|
}
|
|
106
|
+
function _snapCmd() {
|
|
107
|
+
const data = require("./snap-cmd");
|
|
108
|
+
_snapCmd = function () {
|
|
109
|
+
return data;
|
|
110
|
+
};
|
|
111
|
+
return data;
|
|
112
|
+
}
|
|
100
113
|
var _default = exports.default = _snapping().SnappingAspect;
|
|
101
114
|
|
|
102
115
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_snapping","data","require","_versionMaker","_tagCmd","_default","exports","default","SnappingAspect"],"sources":["index.ts"],"sourcesContent":["import { SnappingAspect } from './snapping.aspect';\n\nexport type { BitCloudUser } from './version-maker';\nexport type {\n SnappingMain,\n TagResults,\n SnapResults,\n SnapFromScopeResults,\n SnapDataParsed,\n SnapDataPerCompRaw,\n} from './snapping.main.runtime';\nexport default SnappingAspect;\nexport { SnappingAspect };\nexport { VersionMaker, BasicTagParams, VersionMakerParams, BasicTagSnapParams } from './version-maker';\nexport {\n AUTO_TAGGED_MSG,\n NOTHING_TO_TAG_MSG,\n tagCmdOptions,\n TagParams,\n validateOptions,\n tagResultOutput,\n outputIdsIfExists,\n} from './tag-cmd';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_snapping","data","require","_versionMaker","_tagCmd","_snapCmd","_default","exports","default","SnappingAspect"],"sources":["index.ts"],"sourcesContent":["import { SnappingAspect } from './snapping.aspect';\n\nexport type { BitCloudUser } from './version-maker';\nexport type {\n SnappingMain,\n TagResults,\n SnapResults,\n SnapFromScopeResults,\n SnapDataParsed,\n SnapDataPerCompRaw,\n} from './snapping.main.runtime';\nexport default SnappingAspect;\nexport { SnappingAspect };\nexport { VersionMaker, BasicTagParams, VersionMakerParams, BasicTagSnapParams } from './version-maker';\nexport {\n AUTO_TAGGED_MSG,\n NOTHING_TO_TAG_MSG,\n tagCmdOptions,\n TagParams,\n validateOptions,\n tagResultOutput,\n outputIdsIfExists,\n} from './tag-cmd';\n\nexport { snapResultOutput } from './snap-cmd';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAaA,SAAAE,cAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,aAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAUA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8C,IAAAK,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAb/BC,0BAAc","ignoreList":[]}
|
package/dist/snap-cmd.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
2
|
import { Logger } from '@teambit/logger';
|
|
3
|
-
import { SnappingMain } from './snapping.main.runtime';
|
|
3
|
+
import { SnappingMain, SnapResults } from './snapping.main.runtime';
|
|
4
4
|
import { BasicTagSnapParams } from './version-maker';
|
|
5
5
|
import { ConfigStoreMain } from '@teambit/config-store';
|
|
6
6
|
export declare class SnapCmd implements Command {
|
|
@@ -30,3 +30,4 @@ export declare class SnapCmd implements Command {
|
|
|
30
30
|
failFast?: boolean;
|
|
31
31
|
} & BasicTagSnapParams): Promise<string>;
|
|
32
32
|
}
|
|
33
|
+
export declare function snapResultOutput(results: SnapResults): string;
|
package/dist/snap-cmd.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SnapCmd = void 0;
|
|
7
|
+
exports.snapResultOutput = snapResultOutput;
|
|
7
8
|
function _chalk() {
|
|
8
9
|
const data = _interopRequireDefault(require("chalk"));
|
|
9
10
|
_chalk = function () {
|
|
@@ -98,46 +99,49 @@ to ignore multiple issues, separate them by a comma and wrap with quotes. to ign
|
|
|
98
99
|
loose
|
|
99
100
|
});
|
|
100
101
|
if (!results) return _chalk().default.yellow(_legacy().NOTHING_TO_SNAP_MSG);
|
|
101
|
-
|
|
102
|
-
snappedComponents,
|
|
103
|
-
autoSnappedResults,
|
|
104
|
-
warnings,
|
|
105
|
-
newComponents,
|
|
106
|
-
laneName,
|
|
107
|
-
removedComponents
|
|
108
|
-
} = results;
|
|
109
|
-
const changedComponents = snappedComponents.filter(component => {
|
|
110
|
-
return !newComponents.searchWithoutVersion(component.id) && !removedComponents?.searchWithoutVersion(component.id);
|
|
111
|
-
});
|
|
112
|
-
const addedComponents = snappedComponents.filter(component => newComponents.searchWithoutVersion(component.id));
|
|
113
|
-
const autoTaggedCount = autoSnappedResults ? autoSnappedResults.length : 0;
|
|
114
|
-
const warningsOutput = warnings && warnings.length ? `${_chalk().default.yellow(warnings.join('\n'))}\n\n` : '';
|
|
115
|
-
const snapExplanation = `\n(use "bit export" to push these components to a remote")
|
|
116
|
-
(use "bit reset --all" to unstage all local versions, or "bit reset --head" to only unstage the latest local snap)`;
|
|
117
|
-
const compInBold = id => {
|
|
118
|
-
const version = id.hasVersion() ? `@${id.version}` : '';
|
|
119
|
-
return `${_chalk().default.bold(id.toStringWithoutVersion())}${version}`;
|
|
120
|
-
};
|
|
121
|
-
const outputComponents = comps => {
|
|
122
|
-
return comps.map(component => {
|
|
123
|
-
let componentOutput = ` > ${compInBold(component.id)}`;
|
|
124
|
-
const autoTag = autoSnappedResults.filter(result => result.triggeredBy.searchWithoutVersion(component.id));
|
|
125
|
-
if (autoTag.length) {
|
|
126
|
-
const autoTagComp = autoTag.map(a => compInBold(a.component.id));
|
|
127
|
-
componentOutput += `\n ${_legacy().AUTO_SNAPPED_MSG} (${autoTagComp.length} total):
|
|
128
|
-
${autoTagComp.join('\n ')}`;
|
|
129
|
-
}
|
|
130
|
-
return componentOutput;
|
|
131
|
-
}).join('\n');
|
|
132
|
-
};
|
|
133
|
-
const outputIfExists = (label, explanation, components) => {
|
|
134
|
-
if (!components.length) return '';
|
|
135
|
-
return `\n${_chalk().default.underline(label)}\n(${explanation})\n${outputComponents(components)}\n`;
|
|
136
|
-
};
|
|
137
|
-
const laneStr = laneName ? ` on "${laneName}" lane` : '';
|
|
138
|
-
return outputIfExists('new components', 'first version for components', addedComponents) + outputIfExists('changed components', 'components that got a version bump', changedComponents) + (0, _tagCmd().outputIdsIfExists)('removed components', removedComponents) + warningsOutput + _chalk().default.green(`\n${snappedComponents.length + autoTaggedCount} component(s) snapped${laneStr}`) + snapExplanation;
|
|
102
|
+
return snapResultOutput(results);
|
|
139
103
|
}
|
|
140
104
|
}
|
|
141
105
|
exports.SnapCmd = SnapCmd;
|
|
106
|
+
function snapResultOutput(results) {
|
|
107
|
+
const {
|
|
108
|
+
snappedComponents,
|
|
109
|
+
autoSnappedResults,
|
|
110
|
+
warnings,
|
|
111
|
+
newComponents,
|
|
112
|
+
laneName,
|
|
113
|
+
removedComponents
|
|
114
|
+
} = results;
|
|
115
|
+
const changedComponents = snappedComponents.filter(component => {
|
|
116
|
+
return !newComponents.searchWithoutVersion(component.id) && !removedComponents?.searchWithoutVersion(component.id);
|
|
117
|
+
});
|
|
118
|
+
const addedComponents = snappedComponents.filter(component => newComponents.searchWithoutVersion(component.id));
|
|
119
|
+
const autoTaggedCount = autoSnappedResults ? autoSnappedResults.length : 0;
|
|
120
|
+
const warningsOutput = warnings && warnings.length ? `${_chalk().default.yellow(warnings.join('\n'))}\n\n` : '';
|
|
121
|
+
const snapExplanation = `\n(use "bit export" to push these components to a remote")
|
|
122
|
+
(use "bit reset --all" to unstage all local versions, or "bit reset --head" to only unstage the latest local snap)`;
|
|
123
|
+
const compInBold = id => {
|
|
124
|
+
const version = id.hasVersion() ? `@${id.version}` : '';
|
|
125
|
+
return `${_chalk().default.bold(id.toStringWithoutVersion())}${version}`;
|
|
126
|
+
};
|
|
127
|
+
const outputComponents = comps => {
|
|
128
|
+
return comps.map(component => {
|
|
129
|
+
let componentOutput = ` > ${compInBold(component.id)}`;
|
|
130
|
+
const autoTag = autoSnappedResults.filter(result => result.triggeredBy.searchWithoutVersion(component.id));
|
|
131
|
+
if (autoTag.length) {
|
|
132
|
+
const autoTagComp = autoTag.map(a => compInBold(a.component.id));
|
|
133
|
+
componentOutput += `\n ${_legacy().AUTO_SNAPPED_MSG} (${autoTagComp.length} total):
|
|
134
|
+
${autoTagComp.join('\n ')}`;
|
|
135
|
+
}
|
|
136
|
+
return componentOutput;
|
|
137
|
+
}).join('\n');
|
|
138
|
+
};
|
|
139
|
+
const outputIfExists = (label, explanation, components) => {
|
|
140
|
+
if (!components.length) return '';
|
|
141
|
+
return `\n${_chalk().default.underline(label)}\n(${explanation})\n${outputComponents(components)}\n`;
|
|
142
|
+
};
|
|
143
|
+
const laneStr = laneName ? ` on "${laneName}" lane` : '';
|
|
144
|
+
return outputIfExists('new components', 'first version for components', addedComponents) + outputIfExists('changed components', 'components that got a version bump', changedComponents) + (0, _tagCmd().outputIdsIfExists)('removed components', removedComponents) + warningsOutput + _chalk().default.green(`\n${snappedComponents.length + autoTaggedCount} component(s) snapped${laneStr}`) + snapExplanation;
|
|
145
|
+
}
|
|
142
146
|
|
|
143
147
|
//# sourceMappingURL=snap-cmd.js.map
|
package/dist/snap-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_componentIssues","_legacy","_tagCmd","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SnapCmd","constructor","snapping","logger","configStore","name","description","COMPONENT_PATTERN_HELP","keys","IssuesClasses","join","report","pattern","message","unmerged","editor","ignoreIssues","build","skipTests","skipTasks","skipAutoSnap","disableSnapPipeline","ignoreBuildErrors","rebuildDepsGraph","unmodified","failFast","detachHead","loose","getConfigBoolean","CFG_FORCE_LOCAL_BUILD","Boolean","disableTagAndSnapPipelines","consoleWarning","results","snap","exitOnFirstFailedTask","chalk","yellow","NOTHING_TO_SNAP_MSG","snappedComponents","autoSnappedResults","warnings","newComponents","laneName","removedComponents","changedComponents","filter","component","searchWithoutVersion","id","addedComponents","autoTaggedCount","length","warningsOutput","snapExplanation","compInBold","version","hasVersion","bold","toStringWithoutVersion","outputComponents","comps","map","componentOutput","autoTag","result","triggeredBy","autoTagComp","a","AUTO_SNAPPED_MSG","outputIfExists","label","explanation","components","underline","laneStr","outputIdsIfExists","green","exports"],"sources":["snap-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { ComponentID } from '@teambit/component-id';\nimport { ConsumerComponent } from '@teambit/legacy.consumer-component';\nimport { IssuesClasses } from '@teambit/component-issues';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport {\n NOTHING_TO_SNAP_MSG,\n AUTO_SNAPPED_MSG,\n COMPONENT_PATTERN_HELP,\n CFG_FORCE_LOCAL_BUILD,\n} from '@teambit/legacy.constants';\nimport { Logger } from '@teambit/logger';\nimport { SnappingMain, SnapResults } from './snapping.main.runtime';\nimport { outputIdsIfExists } from './tag-cmd';\nimport { BasicTagSnapParams } from './version-maker';\nimport { ConfigStoreMain } from '@teambit/config-store';\n\nexport class SnapCmd implements Command {\n name = 'snap [component-pattern]';\n description = 'create an immutable and exportable component snapshot (non-release version)';\n extendedDescription: string;\n group = 'version-control';\n arguments = [\n {\n name: 'component-pattern',\n description: `${COMPONENT_PATTERN_HELP}. By default, only new and modified components are snapped (add --unmodified to snap all components in the workspace).`,\n },\n ];\n helpUrl = 'reference/components/snaps';\n alias = '';\n options = [\n ['m', 'message <message>', 'snap message describing the latest changes - will appear in component history log'],\n ['u', 'unmodified', 'include unmodified components (by default, only new and modified components are snapped)'],\n ['', 'unmerged', 'complete a merge process by snapping the unmerged components'],\n ['b', 'build', 'locally run the build pipeline (i.e. not via rippleCI) and complete the snap'],\n [\n '',\n 'editor [editor]',\n 'open an editor to write a snap message per component. optionally specify the editor-name (defaults to vim).',\n ],\n ['', 'skip-tests', 'skip running component tests during snap process'],\n [\n '',\n 'skip-tasks <string>',\n `skip the given tasks. for multiple tasks, separate by a comma and wrap with quotes.\nspecify the task-name (e.g. \"TypescriptCompiler\") or the task-aspect-id (e.g. teambit.compilation/compiler)`,\n ],\n ['', 'skip-auto-snap', 'skip auto snapping dependents'],\n [\n '',\n 'disable-snap-pipeline',\n 'skip the snap pipeline. this will for instance skip packing and publishing component version for install, and app deployment',\n ],\n ['', 'ignore-build-errors', 'proceed to snap pipeline even when build pipeline fails'],\n ['', 'loose', 'allow snap --build to succeed even if tasks like tests or lint fail'],\n ['', 'rebuild-deps-graph', 'do not reuse the saved dependencies graph, instead build it from scratch'],\n [\n 'i',\n 'ignore-issues <issues>',\n `ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[${Object.keys(IssuesClasses).join(', ')}]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\".`,\n ],\n [\n '',\n 'fail-fast',\n 'stop pipeline execution on the first failed task (by default a task is skipped only when its dependency failed)',\n ],\n [\n '',\n 'detach-head',\n 'UNSUPPORTED YET. in case a component is checked out to an older version, snap it without changing the head',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(\n private snapping: SnappingMain,\n private logger: Logger,\n private configStore: ConfigStoreMain\n ) {}\n\n async report(\n [pattern]: string[],\n {\n message = '',\n unmerged = false,\n editor = '',\n ignoreIssues,\n build,\n skipTests = false,\n skipTasks,\n skipAutoSnap = false,\n disableSnapPipeline = false,\n ignoreBuildErrors = false,\n rebuildDepsGraph,\n unmodified = false,\n failFast = false,\n detachHead,\n loose = false,\n }: {\n unmerged?: boolean;\n editor?: string;\n ignoreIssues?: string;\n skipAutoSnap?: boolean;\n disableSnapPipeline?: boolean;\n unmodified?: boolean;\n failFast?: boolean;\n } & BasicTagSnapParams\n ) {\n build = this.configStore.getConfigBoolean(CFG_FORCE_LOCAL_BUILD) || Boolean(build);\n const disableTagAndSnapPipelines = disableSnapPipeline;\n if (!message && !editor) {\n this.logger.consoleWarning(\n `--message will be mandatory in the next few releases. make sure to add a message with your snap, will be displayed in the version history`\n );\n }\n\n const results = await this.snapping.snap({\n pattern,\n message,\n unmerged,\n editor,\n ignoreIssues,\n build,\n skipTests,\n skipTasks,\n skipAutoSnap,\n disableTagAndSnapPipelines,\n ignoreBuildErrors,\n rebuildDepsGraph,\n unmodified,\n exitOnFirstFailedTask: failFast,\n detachHead,\n loose,\n });\n\n if (!results) return chalk.yellow(NOTHING_TO_SNAP_MSG);\n const { snappedComponents, autoSnappedResults, warnings, newComponents, laneName, removedComponents }: SnapResults =\n results;\n const changedComponents = snappedComponents.filter((component) => {\n return (\n !newComponents.searchWithoutVersion(component.id) && !removedComponents?.searchWithoutVersion(component.id)\n );\n });\n const addedComponents = snappedComponents.filter((component) => newComponents.searchWithoutVersion(component.id));\n const autoTaggedCount = autoSnappedResults ? autoSnappedResults.length : 0;\n\n const warningsOutput = warnings && warnings.length ? `${chalk.yellow(warnings.join('\\n'))}\\n\\n` : '';\n const snapExplanation = `\\n(use \"bit export\" to push these components to a remote\")\n(use \"bit reset --all\" to unstage all local versions, or \"bit reset --head\" to only unstage the latest local snap)`;\n\n const compInBold = (id: ComponentID) => {\n const version = id.hasVersion() ? `@${id.version}` : '';\n return `${chalk.bold(id.toStringWithoutVersion())}${version}`;\n };\n\n const outputComponents = (comps: ConsumerComponent[]) => {\n return comps\n .map((component) => {\n let componentOutput = ` > ${compInBold(component.id)}`;\n const autoTag = autoSnappedResults.filter((result) => result.triggeredBy.searchWithoutVersion(component.id));\n if (autoTag.length) {\n const autoTagComp = autoTag.map((a) => compInBold(a.component.id));\n componentOutput += `\\n ${AUTO_SNAPPED_MSG} (${autoTagComp.length} total):\n ${autoTagComp.join('\\n ')}`;\n }\n return componentOutput;\n })\n .join('\\n');\n };\n\n const outputIfExists = (label, explanation, components) => {\n if (!components.length) return '';\n return `\\n${chalk.underline(label)}\\n(${explanation})\\n${outputComponents(components)}\\n`;\n };\n const laneStr = laneName ? ` on \"${laneName}\" lane` : '';\n\n return (\n outputIfExists('new components', 'first version for components', addedComponents) +\n outputIfExists('changed components', 'components that got a version bump', changedComponents) +\n outputIdsIfExists('removed components', removedComponents) +\n warningsOutput +\n chalk.green(`\\n${snappedComponents.length + autoTaggedCount} component(s) snapped${laneStr}`) +\n snapExplanation\n );\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAG,iBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,gBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAQA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8C,SAAAC,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,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AC,oBAAoB,EAAE,oCAAoC,EAAEzB,iBAAiB,CAAC,GAC7F,IAAA+B,2BAAiB,EAAC,oBAAoB,EAAEhC,iBAAiB,CAAC,GAC1DS,cAAc,GACdjB,gBAAK,CAACyC,KAAK,CAAC,KAAKtC,iBAAiB,CAACa,MAAM,GAAGD,eAAe,wBAAwBwB,OAAO,EAAE,CAAC,GAC7FrB,eAAe;EAEnB;AACF;AAACwB,OAAA,CAAA9E,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_componentIssues","_legacy","_tagCmd","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SnapCmd","constructor","snapping","logger","configStore","name","description","COMPONENT_PATTERN_HELP","keys","IssuesClasses","join","report","pattern","message","unmerged","editor","ignoreIssues","build","skipTests","skipTasks","skipAutoSnap","disableSnapPipeline","ignoreBuildErrors","rebuildDepsGraph","unmodified","failFast","detachHead","loose","getConfigBoolean","CFG_FORCE_LOCAL_BUILD","Boolean","disableTagAndSnapPipelines","consoleWarning","results","snap","exitOnFirstFailedTask","chalk","yellow","NOTHING_TO_SNAP_MSG","snapResultOutput","exports","snappedComponents","autoSnappedResults","warnings","newComponents","laneName","removedComponents","changedComponents","filter","component","searchWithoutVersion","id","addedComponents","autoTaggedCount","length","warningsOutput","snapExplanation","compInBold","version","hasVersion","bold","toStringWithoutVersion","outputComponents","comps","map","componentOutput","autoTag","result","triggeredBy","autoTagComp","a","AUTO_SNAPPED_MSG","outputIfExists","label","explanation","components","underline","laneStr","outputIdsIfExists","green"],"sources":["snap-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { ComponentID } from '@teambit/component-id';\nimport { ConsumerComponent } from '@teambit/legacy.consumer-component';\nimport { IssuesClasses } from '@teambit/component-issues';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport {\n NOTHING_TO_SNAP_MSG,\n AUTO_SNAPPED_MSG,\n COMPONENT_PATTERN_HELP,\n CFG_FORCE_LOCAL_BUILD,\n} from '@teambit/legacy.constants';\nimport { Logger } from '@teambit/logger';\nimport { SnappingMain, SnapResults } from './snapping.main.runtime';\nimport { outputIdsIfExists } from './tag-cmd';\nimport { BasicTagSnapParams } from './version-maker';\nimport { ConfigStoreMain } from '@teambit/config-store';\n\nexport class SnapCmd implements Command {\n name = 'snap [component-pattern]';\n description = 'create an immutable and exportable component snapshot (non-release version)';\n extendedDescription: string;\n group = 'version-control';\n arguments = [\n {\n name: 'component-pattern',\n description: `${COMPONENT_PATTERN_HELP}. By default, only new and modified components are snapped (add --unmodified to snap all components in the workspace).`,\n },\n ];\n helpUrl = 'reference/components/snaps';\n alias = '';\n options = [\n ['m', 'message <message>', 'snap message describing the latest changes - will appear in component history log'],\n ['u', 'unmodified', 'include unmodified components (by default, only new and modified components are snapped)'],\n ['', 'unmerged', 'complete a merge process by snapping the unmerged components'],\n ['b', 'build', 'locally run the build pipeline (i.e. not via rippleCI) and complete the snap'],\n [\n '',\n 'editor [editor]',\n 'open an editor to write a snap message per component. optionally specify the editor-name (defaults to vim).',\n ],\n ['', 'skip-tests', 'skip running component tests during snap process'],\n [\n '',\n 'skip-tasks <string>',\n `skip the given tasks. for multiple tasks, separate by a comma and wrap with quotes.\nspecify the task-name (e.g. \"TypescriptCompiler\") or the task-aspect-id (e.g. teambit.compilation/compiler)`,\n ],\n ['', 'skip-auto-snap', 'skip auto snapping dependents'],\n [\n '',\n 'disable-snap-pipeline',\n 'skip the snap pipeline. this will for instance skip packing and publishing component version for install, and app deployment',\n ],\n ['', 'ignore-build-errors', 'proceed to snap pipeline even when build pipeline fails'],\n ['', 'loose', 'allow snap --build to succeed even if tasks like tests or lint fail'],\n ['', 'rebuild-deps-graph', 'do not reuse the saved dependencies graph, instead build it from scratch'],\n [\n 'i',\n 'ignore-issues <issues>',\n `ignore component issues (shown in \"bit status\" as \"issues found\"), issues to ignore:\n[${Object.keys(IssuesClasses).join(', ')}]\nto ignore multiple issues, separate them by a comma and wrap with quotes. to ignore all issues, specify \"*\".`,\n ],\n [\n '',\n 'fail-fast',\n 'stop pipeline execution on the first failed task (by default a task is skipped only when its dependency failed)',\n ],\n [\n '',\n 'detach-head',\n 'UNSUPPORTED YET. in case a component is checked out to an older version, snap it without changing the head',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(\n private snapping: SnappingMain,\n private logger: Logger,\n private configStore: ConfigStoreMain\n ) {}\n\n async report(\n [pattern]: string[],\n {\n message = '',\n unmerged = false,\n editor = '',\n ignoreIssues,\n build,\n skipTests = false,\n skipTasks,\n skipAutoSnap = false,\n disableSnapPipeline = false,\n ignoreBuildErrors = false,\n rebuildDepsGraph,\n unmodified = false,\n failFast = false,\n detachHead,\n loose = false,\n }: {\n unmerged?: boolean;\n editor?: string;\n ignoreIssues?: string;\n skipAutoSnap?: boolean;\n disableSnapPipeline?: boolean;\n unmodified?: boolean;\n failFast?: boolean;\n } & BasicTagSnapParams\n ) {\n build = this.configStore.getConfigBoolean(CFG_FORCE_LOCAL_BUILD) || Boolean(build);\n const disableTagAndSnapPipelines = disableSnapPipeline;\n if (!message && !editor) {\n this.logger.consoleWarning(\n `--message will be mandatory in the next few releases. make sure to add a message with your snap, will be displayed in the version history`\n );\n }\n\n const results = await this.snapping.snap({\n pattern,\n message,\n unmerged,\n editor,\n ignoreIssues,\n build,\n skipTests,\n skipTasks,\n skipAutoSnap,\n disableTagAndSnapPipelines,\n ignoreBuildErrors,\n rebuildDepsGraph,\n unmodified,\n exitOnFirstFailedTask: failFast,\n detachHead,\n loose,\n });\n\n if (!results) return chalk.yellow(NOTHING_TO_SNAP_MSG);\n return snapResultOutput(results);\n }\n}\n\nexport function snapResultOutput(results: SnapResults): string {\n const { snappedComponents, autoSnappedResults, warnings, newComponents, laneName, removedComponents }: SnapResults =\n results;\n const changedComponents = snappedComponents.filter((component) => {\n return !newComponents.searchWithoutVersion(component.id) && !removedComponents?.searchWithoutVersion(component.id);\n });\n const addedComponents = snappedComponents.filter((component) => newComponents.searchWithoutVersion(component.id));\n const autoTaggedCount = autoSnappedResults ? autoSnappedResults.length : 0;\n\n const warningsOutput = warnings && warnings.length ? `${chalk.yellow(warnings.join('\\n'))}\\n\\n` : '';\n const snapExplanation = `\\n(use \"bit export\" to push these components to a remote\")\n(use \"bit reset --all\" to unstage all local versions, or \"bit reset --head\" to only unstage the latest local snap)`;\n\n const compInBold = (id: ComponentID) => {\n const version = id.hasVersion() ? `@${id.version}` : '';\n return `${chalk.bold(id.toStringWithoutVersion())}${version}`;\n };\n\n const outputComponents = (comps: ConsumerComponent[]) => {\n return comps\n .map((component) => {\n let componentOutput = ` > ${compInBold(component.id)}`;\n const autoTag = autoSnappedResults.filter((result) => result.triggeredBy.searchWithoutVersion(component.id));\n if (autoTag.length) {\n const autoTagComp = autoTag.map((a) => compInBold(a.component.id));\n componentOutput += `\\n ${AUTO_SNAPPED_MSG} (${autoTagComp.length} total):\n ${autoTagComp.join('\\n ')}`;\n }\n return componentOutput;\n })\n .join('\\n');\n };\n\n const outputIfExists = (label, explanation, components) => {\n if (!components.length) return '';\n return `\\n${chalk.underline(label)}\\n(${explanation})\\n${outputComponents(components)}\\n`;\n };\n const laneStr = laneName ? ` on \"${laneName}\" lane` : '';\n\n return (\n outputIfExists('new components', 'first version for components', addedComponents) +\n outputIfExists('changed components', 'components that got a version bump', changedComponents) +\n outputIdsIfExists('removed components', removedComponents) +\n warningsOutput +\n chalk.green(`\\n${snappedComponents.length + autoTaggedCount} component(s) snapped${laneStr}`) +\n snapExplanation\n );\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAG,iBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,g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
4
4
|
"homepage": "https://bit.cloud/teambit/component/snapping",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "snapping",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.652"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphlib": "2.1.8",
|
|
@@ -25,35 +25,35 @@
|
|
|
25
25
|
"@teambit/harmony": "0.4.7",
|
|
26
26
|
"@teambit/component-version": "1.0.4",
|
|
27
27
|
"@teambit/lane-id": "0.0.312",
|
|
28
|
-
"@teambit/graph": "1.0.
|
|
28
|
+
"@teambit/graph": "1.0.652",
|
|
29
29
|
"@teambit/legacy.consumer-component": "0.0.56",
|
|
30
|
-
"@teambit/logger": "0.0.
|
|
31
|
-
"@teambit/objects": "0.0.
|
|
32
|
-
"@teambit/scope": "1.0.
|
|
30
|
+
"@teambit/logger": "0.0.1322",
|
|
31
|
+
"@teambit/objects": "0.0.159",
|
|
32
|
+
"@teambit/scope": "1.0.652",
|
|
33
33
|
"@teambit/toolbox.promise.map-pool": "0.0.6",
|
|
34
34
|
"@teambit/component.sources": "0.0.107",
|
|
35
|
-
"@teambit/component": "1.0.
|
|
36
|
-
"@teambit/dependencies": "1.0.
|
|
37
|
-
"@teambit/dependency-resolver": "1.0.
|
|
35
|
+
"@teambit/component": "1.0.652",
|
|
36
|
+
"@teambit/dependencies": "1.0.652",
|
|
37
|
+
"@teambit/dependency-resolver": "1.0.652",
|
|
38
38
|
"@teambit/legacy.consumer-config": "0.0.55",
|
|
39
39
|
"@teambit/legacy.extension-data": "0.0.57",
|
|
40
40
|
"@teambit/legacy.logger": "0.0.21",
|
|
41
41
|
"@teambit/legacy.scope": "0.0.55",
|
|
42
42
|
"@teambit/legacy.loader": "0.0.7",
|
|
43
|
-
"@teambit/cli": "0.0.
|
|
43
|
+
"@teambit/cli": "0.0.1229",
|
|
44
44
|
"@teambit/legacy.constants": "0.0.12",
|
|
45
45
|
"@teambit/legacy.component-list": "0.0.109",
|
|
46
46
|
"@teambit/legacy.consumer": "0.0.55",
|
|
47
47
|
"@teambit/legacy.dependency-graph": "0.0.58",
|
|
48
|
-
"@teambit/remove": "1.0.
|
|
49
|
-
"@teambit/workspace": "1.0.
|
|
48
|
+
"@teambit/remove": "1.0.652",
|
|
49
|
+
"@teambit/workspace": "1.0.652",
|
|
50
50
|
"@teambit/component-issues": "0.0.159",
|
|
51
|
-
"@teambit/config-store": "0.0.
|
|
52
|
-
"@teambit/application": "1.0.
|
|
53
|
-
"@teambit/builder": "1.0.
|
|
54
|
-
"@teambit/export": "1.0.
|
|
51
|
+
"@teambit/config-store": "0.0.109",
|
|
52
|
+
"@teambit/application": "1.0.652",
|
|
53
|
+
"@teambit/builder": "1.0.652",
|
|
54
|
+
"@teambit/export": "1.0.652",
|
|
55
55
|
"@teambit/harmony.modules.concurrency": "0.0.13",
|
|
56
|
-
"@teambit/importer": "1.0.
|
|
56
|
+
"@teambit/importer": "1.0.652",
|
|
57
57
|
"@teambit/lanes.modules.create-lane": "0.0.89",
|
|
58
58
|
"@teambit/legacy.scope-api": "0.0.110",
|
|
59
59
|
"@teambit/pkg.modules.semver-helper": "0.0.11",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"@types/uuid": "8.3.4",
|
|
70
70
|
"@types/mocha": "9.1.0",
|
|
71
71
|
"@teambit/harmony.envs.core-aspect-env": "0.0.69",
|
|
72
|
-
"@teambit/compiler": "1.0.
|
|
72
|
+
"@teambit/compiler": "1.0.652",
|
|
73
73
|
"@teambit/component.testing.mock-components": "0.0.319",
|
|
74
74
|
"@teambit/harmony.testing.load-aspect": "0.0.314",
|
|
75
|
-
"@teambit/issues": "1.0.
|
|
75
|
+
"@teambit/issues": "1.0.652",
|
|
76
76
|
"@teambit/workspace.testing.mock-workspace": "0.0.94"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
File without changes
|