@teambit/aspect 1.0.225 → 1.0.227
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/env-template/public/{310.4e2689c2808691b6504b.js → 310.a2e4e6f5da2c890d0762.js} +1 -1
- package/artifacts/env-template/public/{65.8ab2faa05ed74c4fb9fd.js → 533.462509fb3a9e2c01ca1d.js} +2 -2
- package/artifacts/env-template/public/assets-manifest.json +12 -12
- package/artifacts/env-template/public/{compositions.090b502a6dcfdd4dc76d.js → compositions.26faf0ea10cb4ccf52af.js} +3 -3
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.a75b66a6b13c45ba4478.js → overview.595ea0802ca7d2db0104.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/peers.d647d896cc28c7ecfea8.js +1 -0
- package/artifacts/env-template/public/{preview-root.5cfd2554540be30af800.js → preview-root.9cc4b09fe76b39f972d2.js} +1 -1
- package/artifacts/preview/teambit_harmony_aspect-preview.js +1 -1
- package/artifacts/schema.json +81 -367
- package/dist/{preview-1712546198033.js → preview-1712719054377.js} +2 -2
- package/package.json +27 -27
- package/tsconfig.json +61 -1
- package/artifacts/env-template/public/peers.36c13125d5584191714a.js +0 -1
- package/dist/aspect.aspect.d.ts +0 -3
- package/dist/aspect.cmd.d.ts +0 -90
- package/dist/aspect.composition.d.ts +0 -1
- package/dist/aspect.env.d.ts +0 -63
- package/dist/aspect.main.runtime.d.ts +0 -89
- package/dist/aspect.templates.d.ts +0 -3
- package/dist/aspect.ui.runtime.d.ts +0 -9
- package/dist/babel/babel-config.d.ts +0 -13
- package/dist/core-exporter.task.d.ts +0 -17
- package/dist/eslint/eslintrc.d.ts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/jest/jest.config.d.ts +0 -20
- package/dist/prettier/prettier.config.d.ts +0 -3
- package/dist/templates/aspect/files/aspect-file.d.ts +0 -2
- package/dist/templates/aspect/files/config-file.d.ts +0 -2
- package/dist/templates/aspect/files/index.d.ts +0 -2
- package/dist/templates/aspect/files/main-runtime.d.ts +0 -2
- package/dist/templates/aspect/index.d.ts +0 -2
- /package/{compositions-1712546198033.js → compositions-1712719054377.js} +0 -0
- /package/{overview-1712546198033.js → overview-1712719054377.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@1.0.227/dist/aspect.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect@1.0.227/dist/aspect.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/aspect",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.227",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/aspect",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "aspect",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.227"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -33,39 +33,39 @@
|
|
|
33
33
|
"@bitdev/symphony.generators.symphony-templates": "0.0.11",
|
|
34
34
|
"@teambit/design.ui.empty-box": "0.0.363",
|
|
35
35
|
"@teambit/cli-table": "0.0.48",
|
|
36
|
-
"@teambit/cli": "0.0.
|
|
37
|
-
"@teambit/aspect-loader": "1.0.
|
|
38
|
-
"@teambit/builder": "1.0.
|
|
39
|
-
"@teambit/bundler": "1.0.
|
|
40
|
-
"@teambit/compiler": "1.0.
|
|
41
|
-
"@teambit/envs": "1.0.
|
|
42
|
-
"@teambit/logger": "0.0.
|
|
43
|
-
"@teambit/pkg": "1.0.
|
|
44
|
-
"@teambit/preview": "1.0.
|
|
45
|
-
"@teambit/react": "1.0.
|
|
46
|
-
"@teambit/tester": "1.0.
|
|
47
|
-
"@teambit/webpack": "1.0.
|
|
48
|
-
"@teambit/workspace-config-files": "1.0.
|
|
49
|
-
"@teambit/component": "1.0.
|
|
50
|
-
"@teambit/dependency-resolver": "1.0.
|
|
51
|
-
"@teambit/generator": "1.0.
|
|
52
|
-
"@teambit/worker": "0.0.
|
|
53
|
-
"@teambit/workspace": "1.0.
|
|
54
|
-
"@teambit/compositions": "1.0.
|
|
55
|
-
"@teambit/ui": "1.0.
|
|
56
|
-
"@teambit/isolator": "1.0.
|
|
57
|
-
"@teambit/
|
|
58
|
-
"@teambit/
|
|
36
|
+
"@teambit/cli": "0.0.860",
|
|
37
|
+
"@teambit/aspect-loader": "1.0.227",
|
|
38
|
+
"@teambit/builder": "1.0.227",
|
|
39
|
+
"@teambit/bundler": "1.0.227",
|
|
40
|
+
"@teambit/compiler": "1.0.227",
|
|
41
|
+
"@teambit/envs": "1.0.227",
|
|
42
|
+
"@teambit/logger": "0.0.953",
|
|
43
|
+
"@teambit/pkg": "1.0.227",
|
|
44
|
+
"@teambit/preview": "1.0.227",
|
|
45
|
+
"@teambit/react": "1.0.227",
|
|
46
|
+
"@teambit/tester": "1.0.227",
|
|
47
|
+
"@teambit/webpack": "1.0.227",
|
|
48
|
+
"@teambit/workspace-config-files": "1.0.227",
|
|
49
|
+
"@teambit/component": "1.0.227",
|
|
50
|
+
"@teambit/dependency-resolver": "1.0.227",
|
|
51
|
+
"@teambit/generator": "1.0.228",
|
|
52
|
+
"@teambit/worker": "0.0.1164",
|
|
53
|
+
"@teambit/workspace": "1.0.227",
|
|
54
|
+
"@teambit/compositions": "1.0.227",
|
|
55
|
+
"@teambit/ui": "1.0.227",
|
|
56
|
+
"@teambit/isolator": "1.0.227",
|
|
57
|
+
"@teambit/react.eslint-config-bit-react": "1.0.148",
|
|
58
|
+
"@teambit/node": "1.0.227"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/lodash": "4.14.165",
|
|
62
62
|
"@types/fs-extra": "9.0.7",
|
|
63
63
|
"@types/mocha": "10.0.1",
|
|
64
64
|
"chai": "4.3.0",
|
|
65
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
65
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.30"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@teambit/legacy": "1.0.
|
|
68
|
+
"@teambit/legacy": "1.0.682",
|
|
69
69
|
"@types/react": "^17.0.73"
|
|
70
70
|
},
|
|
71
71
|
"license": "Apache-2.0",
|
package/tsconfig.json
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"emitDeclarationOnly": true,
|
|
21
21
|
"strict": true,
|
|
22
22
|
"strictPropertyInitialization": false,
|
|
23
|
-
"noImplicitAny": false
|
|
23
|
+
"noImplicitAny": false,
|
|
24
|
+
"composite": true
|
|
24
25
|
},
|
|
25
26
|
"exclude": [
|
|
26
27
|
"artifacts",
|
|
@@ -35,5 +36,64 @@
|
|
|
35
36
|
"include": [
|
|
36
37
|
"**/*",
|
|
37
38
|
"**/*.json"
|
|
39
|
+
],
|
|
40
|
+
"references": [
|
|
41
|
+
{
|
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.227"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@1.0.227"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_bundler@1.0.227"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_compiler@1.0.227"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.envs_envs@1.0.227"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.953"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pkg_pkg@1.0.227"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.preview_preview@1.0.227"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.defender_tester@1.0.227"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.webpack_webpack@1.0.227"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace-config-files@1.0.227"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.generator_generator@1.0.228"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_worker@0.0.1164"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.227"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compositions_compositions@1.0.227"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.227"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_isolator@1.0.227"
|
|
97
|
+
}
|
|
38
98
|
]
|
|
39
99
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var __webpack_modules__={14655:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__2)=>{var react__WEBPACK_IMPORTED_MODULE_2___namespace_cache,react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache,_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__2(81846),_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__2(49613),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__2(59496),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__2(87995),globalObj=window;guard("TeambitMdxUiMdxScopeContext",_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__),guard("MdxJsReact",_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__),guard("React",react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_2__,2))),guard("ReactDom",react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_3__,2))),globalObj.TeambitMdxUiMdxScopeContext=_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__,globalObj.MdxJsReact=_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__,globalObj.React=react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_2__,2)),globalObj.ReactDom=react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_3__,2));function guard(property,expected){var existing=globalObj[property];if(existing===expected&&expected!==void 0)console.warn('[expose-peers] "'+property+'" already exists in global scope, but with correct value');else if(existing!==void 0)throw new Error('[expose-peers] "'+property+'" already exists in the global scope, cannot overwrite')}}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,(()=>{var deferred=[];__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(chunkIds){priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(priority&!1||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();r!==void 0&&(result=r)}}return result}})(),__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},(()=>{var getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,leafPrototypes;__webpack_require__.t=function(value,mode){if(mode&1&&(value=this(value)),mode&8||typeof value=="object"&&value&&(mode&4&&value.__esModule||mode&16&&typeof value.then=="function"))return value;var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=mode&2&&value;typeof current=="object"&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns}})(),__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),(()=>{var installedChunks={703:0};__webpack_require__.O.j=chunkId=>installedChunks[chunkId]===0;var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var[chunkIds,moreModules,runtime]=data,moduleId,chunkId,i=0;if(chunkIds.some(id=>installedChunks[id]!==0)){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})();var __webpack_exports__=__webpack_require__.O(void 0,[851],()=>__webpack_require__(14655));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
|
package/dist/aspect.aspect.d.ts
DELETED
package/dist/aspect.cmd.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
|
2
|
-
import { AspectMain } from './aspect.main.runtime';
|
|
3
|
-
export declare class ListAspectCmd implements Command {
|
|
4
|
-
private aspect;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
arguments: {
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
}[];
|
|
11
|
-
options: CommandOptions;
|
|
12
|
-
group: string;
|
|
13
|
-
constructor(aspect: AspectMain);
|
|
14
|
-
report([name]: [string], { debug }: {
|
|
15
|
-
debug: boolean;
|
|
16
|
-
}): Promise<string>;
|
|
17
|
-
}
|
|
18
|
-
export type SetAspectOptions = {
|
|
19
|
-
merge?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare class SetAspectCmd implements Command {
|
|
22
|
-
private aspect;
|
|
23
|
-
name: string;
|
|
24
|
-
description: string;
|
|
25
|
-
arguments: {
|
|
26
|
-
name: string;
|
|
27
|
-
description: string;
|
|
28
|
-
}[];
|
|
29
|
-
options: CommandOptions;
|
|
30
|
-
group: string;
|
|
31
|
-
constructor(aspect: AspectMain);
|
|
32
|
-
report([pattern, aspectId, config]: [string, string, string], options: SetAspectOptions): Promise<string>;
|
|
33
|
-
}
|
|
34
|
-
export declare class UpdateAspectCmd implements Command {
|
|
35
|
-
private aspect;
|
|
36
|
-
name: string;
|
|
37
|
-
description: string;
|
|
38
|
-
arguments: {
|
|
39
|
-
name: string;
|
|
40
|
-
description: string;
|
|
41
|
-
}[];
|
|
42
|
-
examples: {
|
|
43
|
-
cmd: string;
|
|
44
|
-
description: string;
|
|
45
|
-
}[];
|
|
46
|
-
options: never[];
|
|
47
|
-
group: string;
|
|
48
|
-
constructor(aspect: AspectMain);
|
|
49
|
-
report([aspectId, pattern]: [string, string]): Promise<string>;
|
|
50
|
-
}
|
|
51
|
-
export declare class UnsetAspectCmd implements Command {
|
|
52
|
-
private aspect;
|
|
53
|
-
name: string;
|
|
54
|
-
description: string;
|
|
55
|
-
arguments: {
|
|
56
|
-
name: string;
|
|
57
|
-
description: string;
|
|
58
|
-
}[];
|
|
59
|
-
options: never[];
|
|
60
|
-
group: string;
|
|
61
|
-
constructor(aspect: AspectMain);
|
|
62
|
-
report([pattern, aspectId]: [string, string]): Promise<string>;
|
|
63
|
-
}
|
|
64
|
-
export declare class GetAspectCmd implements Command {
|
|
65
|
-
private aspect;
|
|
66
|
-
name: string;
|
|
67
|
-
description: string;
|
|
68
|
-
arguments: {
|
|
69
|
-
name: string;
|
|
70
|
-
description: string;
|
|
71
|
-
}[];
|
|
72
|
-
options: CommandOptions;
|
|
73
|
-
group: string;
|
|
74
|
-
constructor(aspect: AspectMain);
|
|
75
|
-
report([componentName]: [string], { debug }: {
|
|
76
|
-
debug: boolean;
|
|
77
|
-
}): Promise<string>;
|
|
78
|
-
json([componentName]: [string], { debug }: {
|
|
79
|
-
debug: boolean;
|
|
80
|
-
}): Promise<{}>;
|
|
81
|
-
}
|
|
82
|
-
export declare class AspectCmd implements Command {
|
|
83
|
-
name: string;
|
|
84
|
-
alias: string;
|
|
85
|
-
description: string;
|
|
86
|
-
options: never[];
|
|
87
|
-
group: string;
|
|
88
|
-
commands: Command[];
|
|
89
|
-
report([unrecognizedSubcommand]: [string]): Promise<string>;
|
|
90
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/aspect.env.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@teambit/compiler';
|
|
2
|
-
import type { DependenciesEnv, PackageEnv, PreviewEnv } from '@teambit/envs';
|
|
3
|
-
import { PackageJsonProps } from '@teambit/pkg';
|
|
4
|
-
import { TsConfigSourceFile } from 'typescript';
|
|
5
|
-
import { ReactEnv } from '@teambit/react';
|
|
6
|
-
import type { AspectLoaderMain } from '@teambit/aspect-loader';
|
|
7
|
-
import { Bundler, BundlerContext } from '@teambit/bundler';
|
|
8
|
-
import { WebpackConfigTransformer } from '@teambit/webpack';
|
|
9
|
-
import { Tester } from '@teambit/tester';
|
|
10
|
-
import { PreviewStrategyName } from '@teambit/preview';
|
|
11
|
-
import { ConfigWriterEntry } from '@teambit/workspace-config-files';
|
|
12
|
-
import { Logger } from '@teambit/logger';
|
|
13
|
-
export declare const AspectEnvType = "aspect";
|
|
14
|
-
/**
|
|
15
|
-
* a component environment built for Aspects .
|
|
16
|
-
*/
|
|
17
|
-
export declare class AspectEnv implements DependenciesEnv, PackageEnv, PreviewEnv {
|
|
18
|
-
private reactEnv;
|
|
19
|
-
private aspectLoader;
|
|
20
|
-
private logger;
|
|
21
|
-
constructor(reactEnv: ReactEnv, aspectLoader: AspectLoaderMain, logger: Logger);
|
|
22
|
-
icon: string;
|
|
23
|
-
__getDescriptor(): Promise<{
|
|
24
|
-
type: string;
|
|
25
|
-
}>;
|
|
26
|
-
getTsConfig(tsConfig: TsConfigSourceFile): any;
|
|
27
|
-
createTsCompiler(tsConfig: TsConfigSourceFile): Compiler;
|
|
28
|
-
/**
|
|
29
|
-
* returns a component tester.
|
|
30
|
-
*/
|
|
31
|
-
getTester(jestConfigPath: string, jestModulePath?: string): Tester;
|
|
32
|
-
getTemplateBundler(context: BundlerContext, transformers?: WebpackConfigTransformer[]): Promise<Bundler>;
|
|
33
|
-
createTemplateWebpackBundler(context: BundlerContext, transformers?: WebpackConfigTransformer[]): Promise<Bundler>;
|
|
34
|
-
getPackageJsonProps(): PackageJsonProps;
|
|
35
|
-
getNpmIgnore(): string[];
|
|
36
|
-
getPreviewConfig(): {
|
|
37
|
-
strategyName: PreviewStrategyName;
|
|
38
|
-
splitComponentBundle: boolean;
|
|
39
|
-
};
|
|
40
|
-
getDependencies(): Promise<{
|
|
41
|
-
dependencies: {
|
|
42
|
-
react: string;
|
|
43
|
-
'react-dom': string;
|
|
44
|
-
'core-js': string;
|
|
45
|
-
'@babel/runtime': string;
|
|
46
|
-
};
|
|
47
|
-
devDependencies: {
|
|
48
|
-
react: string;
|
|
49
|
-
'react-dom': string;
|
|
50
|
-
'@types/mocha': string;
|
|
51
|
-
'@types/node': string;
|
|
52
|
-
'@types/react': string;
|
|
53
|
-
'@types/react-dom': string;
|
|
54
|
-
'@types/jest': string;
|
|
55
|
-
'@types/testing-library__jest-dom': string;
|
|
56
|
-
};
|
|
57
|
-
peerDependencies: {
|
|
58
|
-
react: string;
|
|
59
|
-
'react-dom': string;
|
|
60
|
-
};
|
|
61
|
-
}>;
|
|
62
|
-
workspaceConfig(): ConfigWriterEntry[];
|
|
63
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Harmony } from '@teambit/harmony';
|
|
2
|
-
import { AspectLoaderMain } from '@teambit/aspect-loader';
|
|
3
|
-
import { LoggerMain } from '@teambit/logger';
|
|
4
|
-
import { BuilderMain } from '@teambit/builder';
|
|
5
|
-
import { EnvPolicyConfigObject } from '@teambit/dependency-resolver';
|
|
6
|
-
import { CLIMain } from '@teambit/cli';
|
|
7
|
-
import { Environment, EnvsMain, EnvTransformer } from '@teambit/envs';
|
|
8
|
-
import { ReactMain } from '@teambit/react';
|
|
9
|
-
import { GeneratorMain } from '@teambit/generator';
|
|
10
|
-
import { ComponentID } from '@teambit/component-id';
|
|
11
|
-
import { AspectList } from '@teambit/component';
|
|
12
|
-
import { WorkerMain } from '@teambit/worker';
|
|
13
|
-
import { ExtensionsOrigin, Workspace } from '@teambit/workspace';
|
|
14
|
-
import { CompilerMain } from '@teambit/compiler';
|
|
15
|
-
import { AspectEnv } from './aspect.env';
|
|
16
|
-
import { SetAspectOptions } from './aspect.cmd';
|
|
17
|
-
export type AspectSource = {
|
|
18
|
-
aspectName: string;
|
|
19
|
-
source: string;
|
|
20
|
-
level: string;
|
|
21
|
-
};
|
|
22
|
-
export declare class AspectMain {
|
|
23
|
-
readonly aspectEnv: AspectEnv;
|
|
24
|
-
private envs;
|
|
25
|
-
private workspace;
|
|
26
|
-
constructor(aspectEnv: AspectEnv, envs: EnvsMain, workspace: Workspace);
|
|
27
|
-
/**
|
|
28
|
-
* compose your own aspect environment.
|
|
29
|
-
*/
|
|
30
|
-
compose(transformers?: EnvTransformer[], targetEnv?: Environment): Environment;
|
|
31
|
-
listAspectsOfComponent(pattern?: string): Promise<{
|
|
32
|
-
[component: string]: AspectSource[];
|
|
33
|
-
}>;
|
|
34
|
-
get babelConfig(): {
|
|
35
|
-
presets: (string | (string | {
|
|
36
|
-
targets: {
|
|
37
|
-
node: number;
|
|
38
|
-
};
|
|
39
|
-
})[])[];
|
|
40
|
-
plugins: (string | (string | {
|
|
41
|
-
lazy: () => boolean;
|
|
42
|
-
})[] | (string | {
|
|
43
|
-
legacy: boolean;
|
|
44
|
-
})[])[];
|
|
45
|
-
sourceMaps: boolean;
|
|
46
|
-
};
|
|
47
|
-
private getAspectNamesForComponent;
|
|
48
|
-
private getLevelBySourceOrigin;
|
|
49
|
-
setAspectsToComponents(pattern: string, aspectId: string, config?: Record<string, any>, options?: SetAspectOptions): Promise<ComponentID[]>;
|
|
50
|
-
unsetAspectsFromComponents(pattern: string, aspectIdStr: string): Promise<ComponentID[]>;
|
|
51
|
-
/**
|
|
52
|
-
* returns all aspects info of a component, include the config and the data.
|
|
53
|
-
*/
|
|
54
|
-
getAspectsOfComponent(id: string | ComponentID): Promise<AspectList>;
|
|
55
|
-
/**
|
|
56
|
-
* helps debugging why/how an aspect was set to a component
|
|
57
|
-
*/
|
|
58
|
-
getAspectsOfComponentForDebugging(id: string | ComponentID): Promise<{
|
|
59
|
-
aspects: AspectList;
|
|
60
|
-
extensions: import("@teambit/legacy/dist/consumer/config").ExtensionDataList;
|
|
61
|
-
beforeMerge: {
|
|
62
|
-
extensions: import("@teambit/legacy/dist/consumer/config").ExtensionDataList;
|
|
63
|
-
origin: ExtensionsOrigin;
|
|
64
|
-
extraData: any;
|
|
65
|
-
}[];
|
|
66
|
-
}>;
|
|
67
|
-
updateAspectsToComponents(aspectId: string, pattern?: string): Promise<{
|
|
68
|
-
updated: ComponentID[];
|
|
69
|
-
alreadyUpToDate: ComponentID[];
|
|
70
|
-
}>;
|
|
71
|
-
/**
|
|
72
|
-
* override the dependency configuration of the component environment.
|
|
73
|
-
*/
|
|
74
|
-
overrideDependencies(dependencyPolicy: EnvPolicyConfigObject): EnvTransformer;
|
|
75
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
76
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
|
77
|
-
static provider([react, envs, builder, aspectLoader, compiler, generator, workspace, cli, loggerMain, workerMain]: [
|
|
78
|
-
ReactMain,
|
|
79
|
-
EnvsMain,
|
|
80
|
-
BuilderMain,
|
|
81
|
-
AspectLoaderMain,
|
|
82
|
-
CompilerMain,
|
|
83
|
-
GeneratorMain,
|
|
84
|
-
Workspace,
|
|
85
|
-
CLIMain,
|
|
86
|
-
LoggerMain,
|
|
87
|
-
WorkerMain
|
|
88
|
-
], config: any, slots: any, harmony: Harmony): Promise<AspectMain>;
|
|
89
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CompositionsUI } from '@teambit/compositions';
|
|
2
|
-
import { TesterUI } from '@teambit/tester';
|
|
3
|
-
export declare class AspectEnvUI {
|
|
4
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
5
|
-
static slots: never[];
|
|
6
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
|
7
|
-
static provider([compositionsUI, testerUi]: [CompositionsUI, TesterUI]): Promise<AspectEnvUI>;
|
|
8
|
-
}
|
|
9
|
-
export default AspectEnvUI;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BuildContext, BuiltTaskResult, BuildTask, TaskLocation } from '@teambit/builder';
|
|
2
|
-
import { AspectLoaderMain } from '@teambit/aspect-loader';
|
|
3
|
-
import { Environment } from '@teambit/envs';
|
|
4
|
-
export declare class CoreExporterTask implements BuildTask {
|
|
5
|
-
private env;
|
|
6
|
-
private aspectLoader;
|
|
7
|
-
constructor(env: Environment, aspectLoader: AspectLoaderMain);
|
|
8
|
-
location: TaskLocation;
|
|
9
|
-
readonly aspectId = "teambit.harmony/aspect";
|
|
10
|
-
readonly name = "CoreExporter";
|
|
11
|
-
readonly description = "export all core aspects via the main aspects";
|
|
12
|
-
execute(context: BuildContext): Promise<BuiltTaskResult>;
|
|
13
|
-
private addFolderForAllCoreAspects;
|
|
14
|
-
private addFolderForNonAspectCorePackages;
|
|
15
|
-
private addFolderForHarmony;
|
|
16
|
-
private addFolderForLegacy;
|
|
17
|
-
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const _exports: {
|
|
2
|
-
testEnvironment: string;
|
|
3
|
-
setupFiles: never[];
|
|
4
|
-
transform: {
|
|
5
|
-
'^.+\\.(js|jsx|ts|tsx|cjs)$': string;
|
|
6
|
-
'^.+\\.css$': string;
|
|
7
|
-
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': string;
|
|
8
|
-
};
|
|
9
|
-
setupFilesAfterEnv: string[];
|
|
10
|
-
transformIgnorePatterns: string[];
|
|
11
|
-
modulePaths: never[];
|
|
12
|
-
moduleNameMapper: {
|
|
13
|
-
'\\.(css|less|scss|sass)$': string;
|
|
14
|
-
'^react-native$': string;
|
|
15
|
-
'^.+\\.module\\.(css|sass|scss)$': string;
|
|
16
|
-
};
|
|
17
|
-
moduleFileExtensions: string[];
|
|
18
|
-
testTimeout: number;
|
|
19
|
-
};
|
|
20
|
-
export = _exports;
|
|
File without changes
|
|
File without changes
|