@teambit/dev-files 1.0.277 → 1.0.279
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +2 -2
- package/artifacts/preview/teambit_component_dev_files-preview.js +1 -1
- package/artifacts/schema.json +678 -163
- package/dist/dev-files.main.runtime.d.ts +8 -1
- package/dist/dev-files.main.runtime.js +14 -17
- package/dist/dev-files.main.runtime.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{preview-1716261484299.js → preview-1716347860768.js} +2 -2
- package/package.json +7 -8
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ScopeMain } from '@teambit/scope';
|
2
2
|
import { SlotRegistry } from '@teambit/harmony';
|
3
3
|
import { Workspace } from '@teambit/workspace';
|
4
|
-
import { EnvsMain } from '@teambit/envs';
|
4
|
+
import type { EnvJsonc, EnvsMain } from '@teambit/envs';
|
5
5
|
import LegacyComponent from '@teambit/legacy/dist/consumer/component';
|
6
6
|
import { Component, ComponentMain } from '@teambit/component';
|
7
7
|
import { GraphqlMain } from '@teambit/graphql';
|
@@ -21,6 +21,12 @@ type DevPattern = string[] | DevPatternDescriptor;
|
|
21
21
|
* dev pattern is a list of strings or a function that returns a list of strings. an example to a pattern can be "[*.spec.ts]"
|
22
22
|
*/
|
23
23
|
export type DevPatterns = ((component: Component) => DevPattern) | DevPattern;
|
24
|
+
export type EnvJsoncPatterns = {
|
25
|
+
compositions?: string[];
|
26
|
+
docs?: string[];
|
27
|
+
tests?: string[];
|
28
|
+
[key: string]: string[] | undefined;
|
29
|
+
};
|
24
30
|
/**
|
25
31
|
* slot for dev file patterns.
|
26
32
|
*/
|
@@ -55,6 +61,7 @@ export declare class DevFilesMain {
|
|
55
61
|
}>;
|
56
62
|
private computeDevPatternsFromSlot;
|
57
63
|
private computeDevPatternsFromEnv;
|
64
|
+
mergeEnvManifestPatterns(parent: EnvJsonc, child: EnvJsonc): Partial<EnvJsonc>;
|
58
65
|
private computeDevPatternsFromEnvJsoncFile;
|
59
66
|
/**
|
60
67
|
* get all dev files configured on a component.
|
@@ -11,13 +11,6 @@ function _cli() {
|
|
11
11
|
};
|
12
12
|
return data;
|
13
13
|
}
|
14
|
-
function _commentJson() {
|
15
|
-
const data = require("comment-json");
|
16
|
-
_commentJson = function () {
|
17
|
-
return data;
|
18
|
-
};
|
19
|
-
return data;
|
20
|
-
}
|
21
14
|
function _scope() {
|
22
15
|
const data = require("@teambit/scope");
|
23
16
|
_scope = function () {
|
@@ -95,6 +88,8 @@ function _devFiles4() {
|
|
95
88
|
};
|
96
89
|
return data;
|
97
90
|
}
|
91
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
92
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
98
93
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
99
94
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
100
95
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
@@ -183,23 +178,24 @@ class DevFilesMain {
|
|
183
178
|
}, {});
|
184
179
|
return envPatternsObject;
|
185
180
|
}
|
181
|
+
mergeEnvManifestPatterns(parent, child) {
|
182
|
+
const merged = {
|
183
|
+
patterns: _objectSpread(_objectSpread({}, parent.patterns || {}), child.patterns || {})
|
184
|
+
};
|
185
|
+
return merged;
|
186
|
+
}
|
186
187
|
async computeDevPatternsFromEnvJsoncFile(envId, legacyFiles) {
|
187
188
|
const isCoreEnv = this.envs.isCoreEnv(envId);
|
188
189
|
if (isCoreEnv) return undefined;
|
189
|
-
let
|
190
|
+
let envJsonc;
|
190
191
|
if (legacyFiles) {
|
191
|
-
|
192
|
-
return file.relative === 'env.jsonc' || file.relative === 'env.json';
|
193
|
-
});
|
192
|
+
envJsonc = this.envs.getEnvManifest(undefined, legacyFiles);
|
194
193
|
} else {
|
195
194
|
const envComponent = await this.envs.getEnvComponentByEnvId(envId, envId);
|
196
|
-
|
197
|
-
return file.relative === 'env.jsonc' || file.relative === 'env.json';
|
198
|
-
});
|
195
|
+
envJsonc = this.envs.getEnvManifest(envComponent, undefined);
|
199
196
|
}
|
200
|
-
if (!
|
201
|
-
|
202
|
-
return object.patterns;
|
197
|
+
if (!envJsonc) return undefined;
|
198
|
+
return envJsonc.patterns;
|
203
199
|
}
|
204
200
|
|
205
201
|
/**
|
@@ -263,6 +259,7 @@ class DevFilesMain {
|
|
263
259
|
static async provider([envs, workspace, componentAspect, graphql, scope], config, [devPatternSlot]) {
|
264
260
|
const devFiles = new DevFilesMain(envs, workspace, devPatternSlot, config);
|
265
261
|
componentAspect.registerShowFragments([new (_devFiles3().DevFilesFragment)(devFiles)]);
|
262
|
+
envs.registerEnvJsoncMergeCustomizer(devFiles.mergeEnvManifestPatterns.bind(devFiles));
|
266
263
|
const calcDevOnLoad = async component => {
|
267
264
|
return {
|
268
265
|
devPatterns: await devFiles.computeDevPatterns(component),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_commentJson","_scope","_lodash","_harmony","_workspace","_envs","_component","_graphql","_devFiles","_devFiles2","_devFiles3","_devFiles4","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","DevFilesMain","constructor","envs","workspace","devPatternSlot","config","computeDevPatterns","component","entry","state","aspects","get","DevFilesAspect","id","configuredPatterns","devFilePatterns","fromSlot","computeDevPatternsFromSlot","fromEnv","computeDevPatternsFromEnv","names","res","assign","patterns","patternSlot","toArray","getPatterns","devPatterns","isFunction","reduce","acc","current","aspectId","patternsOrDescriptor","patternsArray","Array","isArray","pattern","name","undefined","concat","patternNames","envId","getEnvId","fromEnvJsonFile","computeDevPatternsFromEnvJsoncFile","fromEnvFunc","envDef","calculateEnv","skipWarnings","inInstallContext","env","getDevPatterns","envPatterns","envPatternsObject","entries","legacyFiles","isCoreEnv","envJson","find","file","relative","envComponent","getEnvComponentByEnvId","filesystem","files","object","parse","contents","toString","flatten","values","isDevFile","filePath","devFiles","getDevFiles","includes","registerDevPattern","register","rawDevFiles","DevFiles","getDevFilesForConsumerComp","consumerComponent","componentId","loadExtensions","Error","computedDevFiles","computeDevFiles","list","keys","byGlob","map","provider","componentAspect","graphql","scope","registerShowFragments","DevFilesFragment","calcDevOnLoad","toObject","registerOnComponentLoad","registerOnCompAspectReCalc","devFilesSchema","exports","Slot","withType","MainRuntime","EnvsAspect","WorkspaceAspect","ComponentAspect","GraphqlAspect","ScopeAspect","addRuntime"],"sources":["dev-files.main.runtime.ts"],"sourcesContent":["import { SourceFile } from '@teambit/legacy/dist/consumer/component/sources';\nimport { MainRuntime } from '@teambit/cli';\nimport { parse } from 'comment-json';\nimport { ScopeAspect, ScopeMain } from '@teambit/scope';\nimport { flatten, isFunction } from 'lodash';\nimport { SlotRegistry, Slot } from '@teambit/harmony';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { EnvsAspect, EnvsMain } from '@teambit/envs';\nimport LegacyComponent from '@teambit/legacy/dist/consumer/component';\nimport { Component, ComponentMain, ComponentAspect } from '@teambit/component';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { DevFilesAspect } from './dev-files.aspect';\nimport { DevFiles } from './dev-files';\nimport { DevFilesFragment } from './dev-files.fragment';\nimport { devFilesSchema } from './dev-files.graphql';\n\ntype DevPatternDescriptor = {\n /**\n * Name of the dev pattern\n */\n name: string;\n\n /**\n * Glob pattern to select dev files\n */\n pattern: string[];\n};\n\ntype DevPattern = string[] | DevPatternDescriptor;\n\n/**\n * dev pattern is a list of strings or a function that returns a list of strings. an example to a pattern can be \"[*.spec.ts]\"\n */\nexport type DevPatterns = ((component: Component) => DevPattern) | DevPattern;\n\n/**\n * slot for dev file patterns.\n */\nexport type DevPatternSlot = SlotRegistry<DevPatterns>;\n\nexport type DevFilesConfig = {\n patterns: string[];\n};\n\nexport class DevFilesMain {\n constructor(\n private envs: EnvsMain,\n\n private workspace: Workspace,\n\n private devPatternSlot: DevPatternSlot,\n\n /**\n * configuration loaded into the dev files aspect.\n */\n readonly config: DevFilesConfig\n ) {}\n\n /**\n * compute all dev patterns on a component.\n * computing of dev patterns is a merge of the configuration, the env (env.getDevPatterns(component)) and\n * the registering aspects (through registerDevPattern()).\n */\n async computeDevPatterns(component: Component) {\n const entry = component.state.aspects.get(DevFilesAspect.id);\n const configuredPatterns = entry?.config.devFilePatterns || [];\n\n const fromSlot = await this.computeDevPatternsFromSlot(component);\n const fromEnv = await this.computeDevPatternsFromEnv(component, fromSlot.names);\n\n const res = Object.assign(\n {\n config: configuredPatterns,\n },\n fromSlot.patterns,\n fromEnv\n );\n return res;\n }\n\n private async computeDevPatternsFromSlot(\n component: Component\n ): Promise<{ patterns: { [id: string]: string[] }; names: { [name: string]: string } }> {\n const patternSlot = this.devPatternSlot.toArray();\n const getPatterns = (devPatterns: DevPatterns) => {\n if (isFunction(devPatterns)) {\n return devPatterns(component);\n }\n return devPatterns;\n };\n const fromSlot = patternSlot.reduce(\n (acc, current) => {\n const [aspectId, patterns] = current;\n // if (component.state.aspects.get(aspectId)) acc[aspectId] = acc[aspectId].concat(patterns);\n const patternsOrDescriptor = getPatterns(patterns);\n const patternsArray = Array.isArray(patternsOrDescriptor) ? patternsOrDescriptor : patternsOrDescriptor.pattern;\n const name = Array.isArray(patternsOrDescriptor) ? undefined : patternsOrDescriptor.name;\n if (!acc.patterns[aspectId]) acc.patterns[aspectId] = [];\n acc.patterns[aspectId] = acc.patterns[aspectId].concat(patternsArray);\n if (name) {\n acc.names[name] = aspectId;\n }\n return acc;\n },\n { patterns: {}, names: {} }\n );\n return fromSlot;\n }\n\n private async computeDevPatternsFromEnv(\n component: Component,\n patternNames: { [name: string]: string }\n ): Promise<{ [id: string]: string[] }> {\n const envId = this.envs.getEnvId(component);\n const fromEnvJsonFile = await this.computeDevPatternsFromEnvJsoncFile(envId);\n let fromEnvFunc;\n if (!fromEnvJsonFile) {\n const envDef = await this.envs.calculateEnv(component, { skipWarnings: !!this.workspace?.inInstallContext });\n fromEnvFunc = envDef.env?.getDevPatterns ? envDef.env.getDevPatterns(component) : [];\n }\n const envPatterns = fromEnvJsonFile || fromEnvFunc || {};\n if (Array.isArray(envPatterns)) {\n return { [envId]: envPatterns };\n }\n const envPatternsObject = Object.entries(envPatterns).reduce((acc, [name, pattern]) => {\n const aspectId = patternNames[name] || envId;\n if (!acc[aspectId]) acc[aspectId] = [];\n acc[aspectId] = acc[aspectId].concat(pattern);\n return acc;\n }, {});\n return envPatternsObject;\n }\n\n private async computeDevPatternsFromEnvJsoncFile(\n envId: string,\n legacyFiles?: SourceFile[]\n ): Promise<string[] | undefined> {\n const isCoreEnv = this.envs.isCoreEnv(envId);\n if (isCoreEnv) return undefined;\n let envJson;\n if (legacyFiles) {\n envJson = legacyFiles.find((file) => {\n return file.relative === 'env.jsonc' || file.relative === 'env.json';\n });\n } else {\n const envComponent = await this.envs.getEnvComponentByEnvId(envId, envId);\n envJson = envComponent.filesystem.files.find((file) => {\n return file.relative === 'env.jsonc' || file.relative === 'env.json';\n });\n }\n\n if (!envJson) return undefined;\n\n const object = parse(envJson.contents.toString('utf8'));\n return object.patterns;\n }\n\n /**\n * get all dev files configured on a component.\n */\n getDevPatterns(component: Component, aspectId?: string): string[] {\n const entry = component.state.aspects.get(DevFilesAspect.id);\n const devPatterns = entry?.data.devPatterns || {};\n return aspectId ? devPatterns[aspectId] : flatten(Object.values(devPatterns));\n }\n\n /**\n * determine whether a file of a component is a dev file.\n */\n isDevFile(component: Component, filePath: string): boolean {\n const devFiles = this.getDevFiles(component);\n return devFiles.includes(filePath);\n }\n\n /**\n * register a new dev pattern.\n * @param regex dev pattern\n */\n registerDevPattern(pattern: DevPatterns) {\n return this.devPatternSlot.register(pattern);\n }\n\n /**\n * get all dev patterns registered.\n * If you want to use this during onLoad event you might need to use computeDevFiles instead, since the component might not include this data yet\n */\n getDevFiles(component: Component): DevFiles {\n const entry = component.state.aspects.get(DevFilesAspect.id);\n const rawDevFiles = entry?.data.devFiles || {};\n return new DevFiles(rawDevFiles);\n }\n\n async getDevFilesForConsumerComp(consumerComponent: LegacyComponent): Promise<string[]> {\n const componentId = consumerComponent.id;\n // Do not change the storeInCache=false arg. if you think you need to change it, please talk to Gilad first\n const component = await this.workspace.get(componentId, consumerComponent, true, false, { loadExtensions: false });\n if (!component) throw Error(`failed to transform component ${consumerComponent.id.toString()} in harmony`);\n const computedDevFiles = await this.computeDevFiles(component);\n return computedDevFiles.list();\n }\n\n /**\n * compute all dev files of a component.\n */\n async computeDevFiles(component: Component): Promise<DevFiles> {\n const devPatterns = await this.computeDevPatterns(component);\n const rawDevFiles = Object.keys(devPatterns).reduce((acc, aspectId) => {\n if (!acc[aspectId]) acc[aspectId] = [];\n const patterns = devPatterns[aspectId];\n acc[aspectId] = component.state.filesystem.byGlob(patterns).map((file) => file.relative);\n return acc;\n }, {});\n\n return new DevFiles(rawDevFiles);\n }\n\n static slots = [Slot.withType<DevPatterns>()];\n\n static defaultConfig = {\n patterns: [],\n };\n\n static runtime = MainRuntime;\n\n static dependencies = [EnvsAspect, WorkspaceAspect, ComponentAspect, GraphqlAspect, ScopeAspect];\n\n static async provider(\n [envs, workspace, componentAspect, graphql, scope]: [EnvsMain, Workspace, ComponentMain, GraphqlMain, ScopeMain],\n config: DevFilesConfig,\n [devPatternSlot]: [DevPatternSlot]\n ) {\n const devFiles = new DevFilesMain(envs, workspace, devPatternSlot, config);\n componentAspect.registerShowFragments([new DevFilesFragment(devFiles)]);\n\n const calcDevOnLoad = async (component: Component) => {\n return {\n devPatterns: await devFiles.computeDevPatterns(component),\n devFiles: (await devFiles.computeDevFiles(component)).toObject(),\n };\n };\n\n if (workspace) {\n workspace.registerOnComponentLoad(calcDevOnLoad);\n }\n if (scope) {\n scope.registerOnCompAspectReCalc(calcDevOnLoad);\n }\n\n graphql.register(devFilesSchema(devFiles));\n return devFiles;\n }\n}\n\nDevFilesAspect.addRuntime(DevFilesMain);\n"],"mappings":";;;;;;AACA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,aAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,YAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,WAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;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,CAAC;IAClD;IACA,IAAIH,KAAK,EAAE;MACTA,KAAK,CAACM,0BAA0B,CAACH,aAAa,CAAC;IACjD;IAEAJ,OAAO,CAAChB,QAAQ,CAAC,IAAAwB,2BAAc,EAAC5B,QAAQ,CAAC,CAAC;IAC1C,OAAOA,QAAQ;EACjB;AACF;AAAC6B,OAAA,CAAAvG,YAAA,GAAAA,YAAA;AAAArB,eAAA,CA/MYqB,YAAY,WA4KR,CAACwG,eAAI,CAACC,QAAQ,CAAc,CAAC,CAAC;AAAA9H,eAAA,CA5KlCqB,YAAY,mBA8KA;EACrBuB,QAAQ,EAAE;AACZ,CAAC;AAAA5C,eAAA,CAhLUqB,YAAY,aAkLN0G,kBAAW;AAAA/H,eAAA,CAlLjBqB,YAAY,kBAoLD,CAAC2G,kBAAU,EAAEC,4BAAe,EAAEC,4BAAe,EAAEC,wBAAa,EAAEC,oBAAW,CAAC;AA6BlGnG,0BAAc,CAACoG,UAAU,CAAChH,YAAY,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_cli","data","require","_scope","_lodash","_harmony","_workspace","_envs","_component","_graphql","_devFiles","_devFiles2","_devFiles3","_devFiles4","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","key","value","_toPropertyKey","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DevFilesMain","constructor","envs","workspace","devPatternSlot","config","computeDevPatterns","component","entry","state","aspects","get","DevFilesAspect","id","configuredPatterns","devFilePatterns","fromSlot","computeDevPatternsFromSlot","fromEnv","computeDevPatternsFromEnv","names","res","assign","patterns","patternSlot","toArray","getPatterns","devPatterns","isFunction","reduce","acc","current","aspectId","patternsOrDescriptor","patternsArray","Array","isArray","pattern","name","undefined","concat","patternNames","envId","getEnvId","fromEnvJsonFile","computeDevPatternsFromEnvJsoncFile","fromEnvFunc","envDef","calculateEnv","skipWarnings","inInstallContext","env","getDevPatterns","envPatterns","envPatternsObject","entries","mergeEnvManifestPatterns","parent","child","merged","legacyFiles","isCoreEnv","envJsonc","getEnvManifest","envComponent","getEnvComponentByEnvId","flatten","values","isDevFile","filePath","devFiles","getDevFiles","includes","registerDevPattern","register","rawDevFiles","DevFiles","getDevFilesForConsumerComp","consumerComponent","componentId","loadExtensions","Error","toString","computedDevFiles","computeDevFiles","list","filesystem","byGlob","map","file","relative","provider","componentAspect","graphql","scope","registerShowFragments","DevFilesFragment","registerEnvJsoncMergeCustomizer","bind","calcDevOnLoad","toObject","registerOnComponentLoad","registerOnCompAspectReCalc","devFilesSchema","exports","Slot","withType","MainRuntime","EnvsAspect","WorkspaceAspect","ComponentAspect","GraphqlAspect","ScopeAspect","addRuntime"],"sources":["dev-files.main.runtime.ts"],"sourcesContent":["import { SourceFile } from '@teambit/legacy/dist/consumer/component/sources';\nimport { MainRuntime } from '@teambit/cli';\nimport { ScopeAspect, ScopeMain } from '@teambit/scope';\nimport { flatten, isFunction } from 'lodash';\nimport { SlotRegistry, Slot } from '@teambit/harmony';\nimport { WorkspaceAspect, Workspace } from '@teambit/workspace';\nimport { EnvsAspect } from '@teambit/envs';\nimport type { EnvJsonc, EnvsMain } from '@teambit/envs';\nimport LegacyComponent from '@teambit/legacy/dist/consumer/component';\nimport { Component, ComponentMain, ComponentAspect } from '@teambit/component';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { DevFilesAspect } from './dev-files.aspect';\nimport { DevFiles } from './dev-files';\nimport { DevFilesFragment } from './dev-files.fragment';\nimport { devFilesSchema } from './dev-files.graphql';\n\ntype DevPatternDescriptor = {\n /**\n * Name of the dev pattern\n */\n name: string;\n\n /**\n * Glob pattern to select dev files\n */\n pattern: string[];\n};\n\ntype DevPattern = string[] | DevPatternDescriptor;\n\n/**\n * dev pattern is a list of strings or a function that returns a list of strings. an example to a pattern can be \"[*.spec.ts]\"\n */\nexport type DevPatterns = ((component: Component) => DevPattern) | DevPattern;\n\nexport type EnvJsoncPatterns = {\n compositions?: string[];\n docs?: string[];\n tests?: string[];\n [key: string]: string[] | undefined;\n};\n\n/**\n * slot for dev file patterns.\n */\nexport type DevPatternSlot = SlotRegistry<DevPatterns>;\n\nexport type DevFilesConfig = {\n patterns: string[];\n};\n\nexport class DevFilesMain {\n constructor(\n private envs: EnvsMain,\n\n private workspace: Workspace,\n\n private devPatternSlot: DevPatternSlot,\n\n /**\n * configuration loaded into the dev files aspect.\n */\n readonly config: DevFilesConfig\n ) {}\n\n /**\n * compute all dev patterns on a component.\n * computing of dev patterns is a merge of the configuration, the env (env.getDevPatterns(component)) and\n * the registering aspects (through registerDevPattern()).\n */\n async computeDevPatterns(component: Component) {\n const entry = component.state.aspects.get(DevFilesAspect.id);\n const configuredPatterns = entry?.config.devFilePatterns || [];\n\n const fromSlot = await this.computeDevPatternsFromSlot(component);\n const fromEnv = await this.computeDevPatternsFromEnv(component, fromSlot.names);\n\n const res = Object.assign(\n {\n config: configuredPatterns,\n },\n fromSlot.patterns,\n fromEnv\n );\n return res;\n }\n\n private async computeDevPatternsFromSlot(\n component: Component\n ): Promise<{ patterns: { [id: string]: string[] }; names: { [name: string]: string } }> {\n const patternSlot = this.devPatternSlot.toArray();\n const getPatterns = (devPatterns: DevPatterns) => {\n if (isFunction(devPatterns)) {\n return devPatterns(component);\n }\n return devPatterns;\n };\n const fromSlot = patternSlot.reduce(\n (acc, current) => {\n const [aspectId, patterns] = current;\n // if (component.state.aspects.get(aspectId)) acc[aspectId] = acc[aspectId].concat(patterns);\n const patternsOrDescriptor = getPatterns(patterns);\n const patternsArray = Array.isArray(patternsOrDescriptor) ? patternsOrDescriptor : patternsOrDescriptor.pattern;\n const name = Array.isArray(patternsOrDescriptor) ? undefined : patternsOrDescriptor.name;\n if (!acc.patterns[aspectId]) acc.patterns[aspectId] = [];\n acc.patterns[aspectId] = acc.patterns[aspectId].concat(patternsArray);\n if (name) {\n acc.names[name] = aspectId;\n }\n return acc;\n },\n { patterns: {}, names: {} }\n );\n return fromSlot;\n }\n\n private async computeDevPatternsFromEnv(\n component: Component,\n patternNames: { [name: string]: string }\n ): Promise<{ [id: string]: string[] }> {\n const envId = this.envs.getEnvId(component);\n const fromEnvJsonFile = await this.computeDevPatternsFromEnvJsoncFile(envId);\n let fromEnvFunc;\n if (!fromEnvJsonFile) {\n const envDef = await this.envs.calculateEnv(component, { skipWarnings: !!this.workspace?.inInstallContext });\n fromEnvFunc = envDef.env?.getDevPatterns ? envDef.env.getDevPatterns(component) : [];\n }\n const envPatterns = fromEnvJsonFile || fromEnvFunc || {};\n if (Array.isArray(envPatterns)) {\n return { [envId]: envPatterns };\n }\n const envPatternsObject = Object.entries(envPatterns).reduce((acc, [name, pattern]) => {\n const aspectId = patternNames[name] || envId;\n if (!acc[aspectId]) acc[aspectId] = [];\n acc[aspectId] = acc[aspectId].concat(pattern);\n return acc;\n }, {});\n return envPatternsObject;\n }\n\n mergeEnvManifestPatterns(parent: EnvJsonc, child: EnvJsonc): Partial<EnvJsonc> {\n const merged: Partial<EnvJsonc> = {\n patterns: { ...(parent.patterns || {}), ...(child.patterns || {}) },\n };\n return merged;\n }\n\n private async computeDevPatternsFromEnvJsoncFile(\n envId: string,\n legacyFiles?: SourceFile[]\n ): Promise<string[] | undefined> {\n const isCoreEnv = this.envs.isCoreEnv(envId);\n if (isCoreEnv) return undefined;\n let envJsonc;\n if (legacyFiles) {\n envJsonc = this.envs.getEnvManifest(undefined, legacyFiles);\n } else {\n const envComponent = await this.envs.getEnvComponentByEnvId(envId, envId);\n envJsonc = this.envs.getEnvManifest(envComponent, undefined);\n }\n\n if (!envJsonc) return undefined;\n\n return envJsonc.patterns;\n }\n\n /**\n * get all dev files configured on a component.\n */\n getDevPatterns(component: Component, aspectId?: string): string[] {\n const entry = component.state.aspects.get(DevFilesAspect.id);\n const devPatterns = entry?.data.devPatterns || {};\n return aspectId ? devPatterns[aspectId] : flatten(Object.values(devPatterns));\n }\n\n /**\n * determine whether a file of a component is a dev file.\n */\n isDevFile(component: Component, filePath: string): boolean {\n const devFiles = this.getDevFiles(component);\n return devFiles.includes(filePath);\n }\n\n /**\n * register a new dev pattern.\n * @param regex dev pattern\n */\n registerDevPattern(pattern: DevPatterns) {\n return this.devPatternSlot.register(pattern);\n }\n\n /**\n * get all dev patterns registered.\n * If you want to use this during onLoad event you might need to use computeDevFiles instead, since the component might not include this data yet\n */\n getDevFiles(component: Component): DevFiles {\n const entry = component.state.aspects.get(DevFilesAspect.id);\n const rawDevFiles = entry?.data.devFiles || {};\n return new DevFiles(rawDevFiles);\n }\n\n async getDevFilesForConsumerComp(consumerComponent: LegacyComponent): Promise<string[]> {\n const componentId = consumerComponent.id;\n // Do not change the storeInCache=false arg. if you think you need to change it, please talk to Gilad first\n const component = await this.workspace.get(componentId, consumerComponent, true, false, { loadExtensions: false });\n if (!component) throw Error(`failed to transform component ${consumerComponent.id.toString()} in harmony`);\n const computedDevFiles = await this.computeDevFiles(component);\n return computedDevFiles.list();\n }\n\n /**\n * compute all dev files of a component.\n */\n async computeDevFiles(component: Component): Promise<DevFiles> {\n const devPatterns = await this.computeDevPatterns(component);\n const rawDevFiles = Object.keys(devPatterns).reduce((acc, aspectId) => {\n if (!acc[aspectId]) acc[aspectId] = [];\n const patterns = devPatterns[aspectId];\n acc[aspectId] = component.state.filesystem.byGlob(patterns).map((file) => file.relative);\n return acc;\n }, {});\n\n return new DevFiles(rawDevFiles);\n }\n\n static slots = [Slot.withType<DevPatterns>()];\n\n static defaultConfig = {\n patterns: [],\n };\n\n static runtime = MainRuntime;\n\n static dependencies = [EnvsAspect, WorkspaceAspect, ComponentAspect, GraphqlAspect, ScopeAspect];\n\n static async provider(\n [envs, workspace, componentAspect, graphql, scope]: [EnvsMain, Workspace, ComponentMain, GraphqlMain, ScopeMain],\n config: DevFilesConfig,\n [devPatternSlot]: [DevPatternSlot]\n ) {\n const devFiles = new DevFilesMain(envs, workspace, devPatternSlot, config);\n componentAspect.registerShowFragments([new DevFilesFragment(devFiles)]);\n envs.registerEnvJsoncMergeCustomizer(devFiles.mergeEnvManifestPatterns.bind(devFiles));\n\n const calcDevOnLoad = async (component: Component) => {\n return {\n devPatterns: await devFiles.computeDevPatterns(component),\n devFiles: (await devFiles.computeDevFiles(component)).toObject(),\n };\n };\n\n if (workspace) {\n workspace.registerOnComponentLoad(calcDevOnLoad);\n }\n if (scope) {\n scope.registerOnCompAspectReCalc(calcDevOnLoad);\n }\n\n graphql.register(devFilesSchema(devFiles));\n return devFiles;\n }\n}\n\nDevFilesAspect.addRuntime(DevFilesMain);\n"],"mappings":";;;;;;AACA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,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;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,WAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,MAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,KAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAO,WAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,UAAA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AACZ,CAAC;AAAAzC,eAAA,CAlLUkB,YAAY,aAoLN2G,kBAAW;AAAA7H,eAAA,CApLjBkB,YAAY,kBAsLD,CAAC4G,kBAAU,EAAEC,4BAAe,EAAEC,4BAAe,EAAEC,wBAAa,EAAEC,oBAAW,CAAC;AA8BlGpG,0BAAc,CAACqG,UAAU,CAACjH,YAAY,CAAC","ignoreList":[]}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_devFiles","data","require","_default","exports","default","DevFilesAspect"],"sources":["index.ts"],"sourcesContent":["import { DevFilesAspect } from './dev-files.aspect';\n\nexport { DevFilesAspect };\nexport type { DevFilesMain } from './dev-files.main.runtime';\nexport default DevFilesAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAoD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAIrCC,0BAAc","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_devFiles","data","require","_default","exports","default","DevFilesAspect"],"sources":["index.ts"],"sourcesContent":["import { DevFilesAspect } from './dev-files.aspect';\n\nexport { DevFilesAspect };\nexport type { DevFilesMain, EnvJsoncPatterns } from './dev-files.main.runtime';\nexport default DevFilesAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,UAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,SAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAoD,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAIrCC,0BAAc","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.279/dist/dev-files.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.279/dist/dev-files.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,24 +1,23 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/dev-files",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.279",
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/dev-files",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "dev-files",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.279"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"graphql-tag": "2.12.1",
|
13
|
-
"comment-json": "3.0.3",
|
14
13
|
"lodash": "4.17.21",
|
15
14
|
"@teambit/harmony": "0.4.6",
|
16
|
-
"@teambit/component": "1.0.
|
17
|
-
"@teambit/graphql": "1.0.
|
15
|
+
"@teambit/component": "1.0.279",
|
16
|
+
"@teambit/graphql": "1.0.279",
|
18
17
|
"@teambit/cli": "0.0.865",
|
19
|
-
"@teambit/envs": "1.0.
|
20
|
-
"@teambit/scope": "1.0.
|
21
|
-
"@teambit/workspace": "1.0.
|
18
|
+
"@teambit/envs": "1.0.279",
|
19
|
+
"@teambit/scope": "1.0.279",
|
20
|
+
"@teambit/workspace": "1.0.279"
|
22
21
|
},
|
23
22
|
"devDependencies": {
|
24
23
|
"@types/lodash": "4.14.165",
|