@teambit/dev-files 1.0.499 → 1.0.500

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.
@@ -1,8 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="3" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/dev-files@1.0.499" tests="3" failures="0" errors="0" skipped="0">
3
+ <testsuite name="teambit.component/dev-files@1.0.500" tests="3" failures="0" errors="0" skipped="0">
4
4
  <testcase classname="dist/dev-files.spec.js" name="get all dev files of the docs aspect" time="0.001"/>
5
5
  <testcase classname="dist/dev-files.spec.js" name="should get undefined as there are no files for aspect id"/>
6
- <testcase classname="dist/dev-files.spec.js" name="should list all dev files" time="0.012"/>
6
+ <testcase classname="dist/dev-files.spec.js" name="should list all dev files" time="0.001"/>
7
7
  </testsuite>
8
8
  </testsuites>
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.component/dev-files-preview"]=n():e["teambit.component/dev-files-preview"]=n()}(self,(()=>(()=>{"use strict";var e={94911:(e,n,t)=>{var o={id:"teambit.component/content/dev-files@1.95.9",homepage:"https://bit.dev/teambit/component/content/dev-files",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,s(t(41594));var r=t(5016),a=t(65682),i=["components"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},d.apply(this,arguments)}function p(e,n){if(null==e)return{};var t,o,r=l(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function l(e,n){if(null==e)return{};var t,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||(r[t]=e[t]);return r}s.__bit_component=o,d.__bit_component=o,p.__bit_component=o,l.__bit_component=o;var c={},m="wrapper";function u(e){var n=e.components,t=p(e,i);return(0,r.mdx)(m,d({},c,t,{components:n,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("h1",null,"Dev Files"),(0,r.mdx)("p",null,"Dev files are component files used for development and not for production. Dev files are determined as such by the Dev Files Aspect."),(0,r.mdx)("p",null,"Categorizing files as dev files is especially useful in dependency resolution, as dependencies can be inferred to be of type ",(0,r.mdx)("inlineCode",{parentName:"p"},"devDependencies")," by looking at the type of files that use them (if 'package-a' is only used by the component's dev files, then it is a dev dependency of that component)."),(0,r.mdx)("p",null,"For example, the ",(0,r.mdx)("inlineCode",{parentName:"p"},"ui/card")," component has the following file structure:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"└── card\n ├── card.composition.tsx\n ├── card.docs.mdx\n ├── card.spec.tsx\n ├── card.tsx\n └── index.ts\n")),(0,r.mdx)("p",null,"To examine it:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"$ bit show ui/card\n\n┌───────────────────┬──────────────────────────────────────────────────────────┐\n│ id │ company.scope/ui/card │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ ... │ │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ files │ card.composition.tsx │\n│ │ card.docs.mdx │\n│ │ card.spec.tsx │\n│ │ card.stories.tsx │\n│ │ card.tsx │\n│ │ index.ts │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dev files │ card.spec.tsx (teambit.defender/tester) │\n│ │ card.composition.tsx (teambit.compositions/compositions) │\n│ │ card.docs.mdx (teambit.docs/docs) │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ extensions │ ... │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dependencies │ ... │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dev dependencies │ @company/scope.envs.my-react@0.0.1----- (component) │\n│ │ @types/testing-library__jest-dom@5.9.5- (package) │\n│ │ @babel/runtime@7.12.18----------------- (package) │\n│ │ @types/jest@^26.0.0-------------------- (package) │\n│ │ @types/react-dom@^17.0.5--------------- (package) │\n│ │ @types/react@^17.0.8------------------- (package) │\n│ │ @types/node@12.20.4-------------------- (package) │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ peer dependencies │ ... │\n└───────────────────┴──────────────────────────────────────────────────────────┘\n")),(0,r.mdx)("p",null,"The component's compositions, documentation and test files are categorized as 'dev files'.\nTo the side of each listed dev file, you'll find the Aspect that registered it as such (via the Dev Files Aspect)."),(0,r.mdx)("p",null,"If, for example, ",(0,r.mdx)("inlineCode",{parentName:"p"},"@testing-library/react")," will be used by the test file, ",(0,r.mdx)("inlineCode",{parentName:"p"},"card.spec.tsx")," (and no other production file), it will be inferred as a dev dependency of that component."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-tsx"},"// card.spec.tsx\n\nimport React from 'react';\nimport { render } from '@testing-library/react';\nimport { BasicCard } from './card.composition';\n\nit('should render a Heading', () => {\n const { getByText } = render(<BasicCard />);\n const rendered = getByText('Self Host');\n expect(rendered).toBeTruthy();\n});\n")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-bash"},"$ bit show ui/card\n\n┌───────────────────┬──────────────────────────────────────────────────────────┐\n│ dev dependencies │ @company/scope.envs.my-react@0.0.1----- (component) │\n│ │ @types/testing-library__jest-dom@5.9.5- (package) │\n│ │ @babel/runtime@7.12.18----------------- (package) │\n│ │ @types/jest@^26.0.0-------------------- (package) │\n│ │ @types/react-dom@^17.0.5--------------- (package) │\n│ │ @types/react@^17.0.8------------------- (package) │\n│ │ @types/node@12.20.4-------------------- (package) │\n│ │ @testing-library/react@12.0.0---------- (package) │\n└───────────────────┴──────────────────────────────────────────────────────────┘\n")),(0,r.mdx)("h2",null,"Configuring Dev Files"),(0,r.mdx)("p",null,"Dev files are configured by setting glob patterns that match the files' names."),(0,r.mdx)("h3",null,"Setting Glob Patterns via ",(0,r.mdx)("inlineCode",{parentName:"h3"},"workspace.jsonc")),(0,r.mdx)("p",null,"Use the ",(0,r.mdx)("inlineCode",{parentName:"p"},"devFilePatterns")," property in ",(0,r.mdx)("inlineCode",{parentName:"p"},"teambit.component/dev-files")," to manually set a glob pattern for dev files."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-json"},'{\n "teambit.workspace/variants": {\n "{ui/**}": {\n "teambit.component/dev-files": {\n "devFilePatterns": ["**/*.story.+(js|ts|jsx|tsx)"]\n }\n }\n }\n}\n')),(0,r.mdx)("h3",null,"Setting Glob Patterns via the Dev Files API"),(0,r.mdx)("p",null,"Update your extension or create an new one to register glob patterns for dev files, using the Dev Files ",(0,r.mdx)("inlineCode",{parentName:"p"},"registerDevPattern")," API."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"bit create aspect extensions/my-dev-files\n")),(0,r.mdx)("h4",null,"registerDevPattern"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"registerDevPattern: (pattern: string[]) : void\n")),(0,r.mdx)("p",null,"Use the ",(0,r.mdx)("inlineCode",{parentName:"p"},"registerDevPattern")," API to register an array of glob patterns."),(0,r.mdx)("p",null,"For example:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"import { MainRuntime } from '@teambit/cli';\nimport { DevFilesAspect, DevFilesMain } from '@teambit/dev-files';\nimport { MyDevFilesAspect } from './my-dev-files.aspect';\n\nexport class MyDevFilesMain {\n constructor(private devFiles: DevFilesMain) {}\n\n static slots = [];\n\n static dependencies = [DevFilesAspect];\n\n static runtime = MainRuntime;\n\n static async provider([devFiles]: [DevFilesMain]) {\n devFiles.registerDevPattern(['**/*.my-dev.*']);\n\n return new MyDevFilesMain(devFiles);\n }\n}\n\nMyDevFilesAspect.addRuntime(MyDevFilesMain);\n")),(0,r.mdx)("p",null,"Configure the workspace config with that aspect to apply it on all components in the workspace:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-json"},'// workspace.jsonc\n{\n "company.scope/extensions/my-dev-files": {}\n}\n'))))}u.__bit_component=o,u.isMDXComponent=!0},4543:function(e,n,t){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.DevFiles=void 0;var r=t(94911);Object.defineProperty(n,"DevFiles",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o(r).default}})},86421:(e,n,t)=>{var o={id:"teambit.component/dev-files@1.0.499",homepage:"https://bit.cloud/teambit/component/dev-files",exported:!0};function r(){const e=a(t(41594));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,r.__bit_component=o,a.__bit_component=o;const i=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/dev-files.svg"}));i.__bit_component=o,n.Logo=i},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(o){var r=n[o];if(void 0!==r)return r.exports;var a=n[o]={exports:{}};return e[o].call(a.exports,a,a.exports,t),a.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{compositions:()=>v,compositions_metadata:()=>y,overview:()=>x});var r={};t.r(r),t.d(r,{default:()=>f});var a=t(86421),i=(t(41594),t(5016)),s=t(65682),d=t(4543),p=t.n(d),l=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},c.apply(null,arguments)}var m={},u="wrapper";function f(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,o,r=function(e,n){if(null==e)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(n.includes(o))continue;t[o]=e[o]}return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}(e,l);return(0,i.mdx)(u,c({},m,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(s.MDXScopeProvider,{components:{DevFiles:p()},mdxType:"MDXScopeProvider"},(0,i.mdx)(p(),{mdxType:"DevFiles"})))}f.isMDXComponent=!0;const v=[a],x=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
1
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.component/dev-files-preview"]=n():e["teambit.component/dev-files-preview"]=n()}(self,(()=>(()=>{"use strict";var e={4911:(e,n,t)=>{var o={id:"teambit.component/content/dev-files@1.95.9",homepage:"https://bit.dev/teambit/component/content/dev-files",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,s(t(1594));var r=t(5016),a=t(5682),i=["components"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},d.apply(this,arguments)}function p(e,n){if(null==e)return{};var t,o,r=l(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function l(e,n){if(null==e)return{};var t,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||(r[t]=e[t]);return r}s.__bit_component=o,d.__bit_component=o,p.__bit_component=o,l.__bit_component=o;var c={},m="wrapper";function u(e){var n=e.components,t=p(e,i);return(0,r.mdx)(m,d({},c,t,{components:n,mdxType:"MDXLayout"}),(0,r.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("h1",null,"Dev Files"),(0,r.mdx)("p",null,"Dev files are component files used for development and not for production. Dev files are determined as such by the Dev Files Aspect."),(0,r.mdx)("p",null,"Categorizing files as dev files is especially useful in dependency resolution, as dependencies can be inferred to be of type ",(0,r.mdx)("inlineCode",{parentName:"p"},"devDependencies")," by looking at the type of files that use them (if 'package-a' is only used by the component's dev files, then it is a dev dependency of that component)."),(0,r.mdx)("p",null,"For example, the ",(0,r.mdx)("inlineCode",{parentName:"p"},"ui/card")," component has the following file structure:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"└── card\n ├── card.composition.tsx\n ├── card.docs.mdx\n ├── card.spec.tsx\n ├── card.tsx\n └── index.ts\n")),(0,r.mdx)("p",null,"To examine it:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"$ bit show ui/card\n\n┌───────────────────┬──────────────────────────────────────────────────────────┐\n│ id │ company.scope/ui/card │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ ... │ │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ files │ card.composition.tsx │\n│ │ card.docs.mdx │\n│ │ card.spec.tsx │\n│ │ card.stories.tsx │\n│ │ card.tsx │\n│ │ index.ts │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dev files │ card.spec.tsx (teambit.defender/tester) │\n│ │ card.composition.tsx (teambit.compositions/compositions) │\n│ │ card.docs.mdx (teambit.docs/docs) │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ extensions │ ... │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dependencies │ ... │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ dev dependencies │ @company/scope.envs.my-react@0.0.1----- (component) │\n│ │ @types/testing-library__jest-dom@5.9.5- (package) │\n│ │ @babel/runtime@7.12.18----------------- (package) │\n│ │ @types/jest@^26.0.0-------------------- (package) │\n│ │ @types/react-dom@^17.0.5--------------- (package) │\n│ │ @types/react@^17.0.8------------------- (package) │\n│ │ @types/node@12.20.4-------------------- (package) │\n├───────────────────┼──────────────────────────────────────────────────────────┤\n│ peer dependencies │ ... │\n└───────────────────┴──────────────────────────────────────────────────────────┘\n")),(0,r.mdx)("p",null,"The component's compositions, documentation and test files are categorized as 'dev files'.\nTo the side of each listed dev file, you'll find the Aspect that registered it as such (via the Dev Files Aspect)."),(0,r.mdx)("p",null,"If, for example, ",(0,r.mdx)("inlineCode",{parentName:"p"},"@testing-library/react")," will be used by the test file, ",(0,r.mdx)("inlineCode",{parentName:"p"},"card.spec.tsx")," (and no other production file), it will be inferred as a dev dependency of that component."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-tsx"},"// card.spec.tsx\n\nimport React from 'react';\nimport { render } from '@testing-library/react';\nimport { BasicCard } from './card.composition';\n\nit('should render a Heading', () => {\n const { getByText } = render(<BasicCard />);\n const rendered = getByText('Self Host');\n expect(rendered).toBeTruthy();\n});\n")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-bash"},"$ bit show ui/card\n\n┌───────────────────┬──────────────────────────────────────────────────────────┐\n│ dev dependencies │ @company/scope.envs.my-react@0.0.1----- (component) │\n│ │ @types/testing-library__jest-dom@5.9.5- (package) │\n│ │ @babel/runtime@7.12.18----------------- (package) │\n│ │ @types/jest@^26.0.0-------------------- (package) │\n│ │ @types/react-dom@^17.0.5--------------- (package) │\n│ │ @types/react@^17.0.8------------------- (package) │\n│ │ @types/node@12.20.4-------------------- (package) │\n│ │ @testing-library/react@12.0.0---------- (package) │\n└───────────────────┴──────────────────────────────────────────────────────────┘\n")),(0,r.mdx)("h2",null,"Configuring Dev Files"),(0,r.mdx)("p",null,"Dev files are configured by setting glob patterns that match the files' names."),(0,r.mdx)("h3",null,"Setting Glob Patterns via ",(0,r.mdx)("inlineCode",{parentName:"h3"},"workspace.jsonc")),(0,r.mdx)("p",null,"Use the ",(0,r.mdx)("inlineCode",{parentName:"p"},"devFilePatterns")," property in ",(0,r.mdx)("inlineCode",{parentName:"p"},"teambit.component/dev-files")," to manually set a glob pattern for dev files."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-json"},'{\n "teambit.workspace/variants": {\n "{ui/**}": {\n "teambit.component/dev-files": {\n "devFilePatterns": ["**/*.story.+(js|ts|jsx|tsx)"]\n }\n }\n }\n}\n')),(0,r.mdx)("h3",null,"Setting Glob Patterns via the Dev Files API"),(0,r.mdx)("p",null,"Update your extension or create an new one to register glob patterns for dev files, using the Dev Files ",(0,r.mdx)("inlineCode",{parentName:"p"},"registerDevPattern")," API."),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"bit create aspect extensions/my-dev-files\n")),(0,r.mdx)("h4",null,"registerDevPattern"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"registerDevPattern: (pattern: string[]) : void\n")),(0,r.mdx)("p",null,"Use the ",(0,r.mdx)("inlineCode",{parentName:"p"},"registerDevPattern")," API to register an array of glob patterns."),(0,r.mdx)("p",null,"For example:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"import { MainRuntime } from '@teambit/cli';\nimport { DevFilesAspect, DevFilesMain } from '@teambit/dev-files';\nimport { MyDevFilesAspect } from './my-dev-files.aspect';\n\nexport class MyDevFilesMain {\n constructor(private devFiles: DevFilesMain) {}\n\n static slots = [];\n\n static dependencies = [DevFilesAspect];\n\n static runtime = MainRuntime;\n\n static async provider([devFiles]: [DevFilesMain]) {\n devFiles.registerDevPattern(['**/*.my-dev.*']);\n\n return new MyDevFilesMain(devFiles);\n }\n}\n\nMyDevFilesAspect.addRuntime(MyDevFilesMain);\n")),(0,r.mdx)("p",null,"Configure the workspace config with that aspect to apply it on all components in the workspace:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-json"},'// workspace.jsonc\n{\n "company.scope/extensions/my-dev-files": {}\n}\n'))))}u.__bit_component=o,u.isMDXComponent=!0},4543:function(e,n,t){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.DevFiles=void 0;var r=t(4911);Object.defineProperty(n,"DevFiles",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o(r).default}})},6246:(e,n,t)=>{var o={id:"teambit.component/dev-files@1.0.500",homepage:"https://bit.cloud/teambit/component/dev-files",exported:!0};function r(){const e=a(t(1594));return r=function(){return e},e}function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,r.__bit_component=o,a.__bit_component=o;const i=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/dev-files.svg"}));i.__bit_component=o,n.Logo=i},5016:e=>{e.exports=MdxJsReact},1594:e=>{e.exports=React},5682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(o){var r=n[o];if(void 0!==r)return r.exports;var a=n[o]={exports:{}};return e[o].call(a.exports,a,a.exports,t),a.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{compositions:()=>v,compositions_metadata:()=>y,overview:()=>x});var r={};t.r(r),t.d(r,{default:()=>f});var a=t(6246),i=(t(1594),t(5016)),s=t(5682),d=t(4543),p=t.n(d),l=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},c.apply(null,arguments)}var m={},u="wrapper";function f(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,o,r=function(e,n){if(null==e)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(n.includes(o))continue;t[o]=e[o]}return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}(e,l);return(0,i.mdx)(u,c({},m,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(s.MDXScopeProvider,{components:{DevFiles:p()},mdxType:"MDXScopeProvider"},(0,i.mdx)(p(),{mdxType:"DevFiles"})))}f.isMDXComponent=!0;const v=[a],x=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
@@ -93,7 +93,11 @@
93
93
  "line": 57,
94
94
  "character": 19
95
95
  },
96
- "name": "EnvsMain"
96
+ "name": "EnvsMain",
97
+ "componentId": {
98
+ "scope": "teambit.envs",
99
+ "name": "envs"
100
+ }
97
101
  },
98
102
  "isOptional": false,
99
103
  "isSpread": false
@@ -113,7 +117,11 @@
113
117
  "line": 59,
114
118
  "character": 24
115
119
  },
116
- "name": "Workspace"
120
+ "name": "Workspace",
121
+ "componentId": {
122
+ "scope": "teambit.workspace",
123
+ "name": "workspace"
124
+ }
117
125
  },
118
126
  "isOptional": false,
119
127
  "isSpread": false
@@ -133,7 +141,8 @@
133
141
  "line": 61,
134
142
  "character": 29
135
143
  },
136
- "name": "DevPatternSlot"
144
+ "name": "DevPatternSlot",
145
+ "internalFilePath": "dev-files.main.runtime.ts"
137
146
  },
138
147
  "isOptional": false,
139
148
  "isSpread": false
@@ -153,7 +162,8 @@
153
162
  "line": 66,
154
163
  "character": 22
155
164
  },
156
- "name": "DevFilesConfig"
165
+ "name": "DevFilesConfig",
166
+ "internalFilePath": "dev-files.main.runtime.ts"
157
167
  },
158
168
  "isOptional": false,
159
169
  "isSpread": false
@@ -206,7 +216,11 @@
206
216
  "line": 74,
207
217
  "character": 39
208
218
  },
209
- "name": "Component"
219
+ "name": "Component",
220
+ "componentId": {
221
+ "scope": "teambit.component",
222
+ "name": "component"
223
+ }
210
224
  },
211
225
  "isOptional": false,
212
226
  "isSpread": false
@@ -278,7 +292,11 @@
278
292
  "line": 146,
279
293
  "character": 36
280
294
  },
281
- "name": "EnvJsonc"
295
+ "name": "EnvJsonc",
296
+ "componentId": {
297
+ "scope": "teambit.envs",
298
+ "name": "envs"
299
+ }
282
300
  },
283
301
  "isOptional": false,
284
302
  "isSpread": false
@@ -298,7 +316,11 @@
298
316
  "line": 146,
299
317
  "character": 53
300
318
  },
301
- "name": "EnvJsonc"
319
+ "name": "EnvJsonc",
320
+ "componentId": {
321
+ "scope": "teambit.envs",
322
+ "name": "envs"
323
+ }
302
324
  },
303
325
  "isOptional": false,
304
326
  "isSpread": false
@@ -320,7 +342,11 @@
320
342
  "line": 146,
321
343
  "character": 72
322
344
  },
323
- "name": "EnvJsonc"
345
+ "name": "EnvJsonc",
346
+ "componentId": {
347
+ "scope": "teambit.envs",
348
+ "name": "envs"
349
+ }
324
350
  }
325
351
  ]
326
352
  },
@@ -362,7 +388,11 @@
362
388
  "line": 177,
363
389
  "character": 29
364
390
  },
365
- "name": "Component"
391
+ "name": "Component",
392
+ "componentId": {
393
+ "scope": "teambit.component",
394
+ "name": "component"
395
+ }
366
396
  },
367
397
  "isOptional": false,
368
398
  "isSpread": false
@@ -443,7 +473,11 @@
443
473
  "line": 186,
444
474
  "character": 24
445
475
  },
446
- "name": "Component"
476
+ "name": "Component",
477
+ "componentId": {
478
+ "scope": "teambit.component",
479
+ "name": "component"
480
+ }
447
481
  },
448
482
  "isOptional": false,
449
483
  "isSpread": false
@@ -528,7 +562,8 @@
528
562
  "line": 195,
529
563
  "character": 31
530
564
  },
531
- "name": "DevPatterns"
565
+ "name": "DevPatterns",
566
+ "internalFilePath": "dev-files.main.runtime.ts"
532
567
  },
533
568
  "isOptional": false,
534
569
  "isSpread": false
@@ -581,7 +616,11 @@
581
616
  "line": 203,
582
617
  "character": 26
583
618
  },
584
- "name": "Component"
619
+ "name": "Component",
620
+ "componentId": {
621
+ "scope": "teambit.component",
622
+ "name": "component"
623
+ }
585
624
  },
586
625
  "isOptional": false,
587
626
  "isSpread": false
@@ -726,7 +765,11 @@
726
765
  "line": 227,
727
766
  "character": 36
728
767
  },
729
- "name": "Component"
768
+ "name": "Component",
769
+ "componentId": {
770
+ "scope": "teambit.component",
771
+ "name": "component"
772
+ }
730
773
  },
731
774
  "isOptional": false,
732
775
  "isSpread": false
@@ -776,7 +819,8 @@
776
819
  "line": 227,
777
820
  "character": 93
778
821
  },
779
- "name": "DevFiles"
822
+ "name": "DevFiles",
823
+ "internalFilePath": "dev-files.ts"
780
824
  }
781
825
  ]
782
826
  },
@@ -901,7 +945,11 @@
901
945
  "line": 250,
902
946
  "character": 58
903
947
  },
904
- "name": "EnvsMain"
948
+ "name": "EnvsMain",
949
+ "componentId": {
950
+ "scope": "teambit.envs",
951
+ "name": "envs"
952
+ }
905
953
  },
906
954
  {
907
955
  "__schema": "TypeRefSchema",
@@ -910,7 +958,11 @@
910
958
  "line": 250,
911
959
  "character": 68
912
960
  },
913
- "name": "Workspace"
961
+ "name": "Workspace",
962
+ "componentId": {
963
+ "scope": "teambit.workspace",
964
+ "name": "workspace"
965
+ }
914
966
  },
915
967
  {
916
968
  "__schema": "TypeRefSchema",
@@ -919,7 +971,11 @@
919
971
  "line": 250,
920
972
  "character": 79
921
973
  },
922
- "name": "ComponentMain"
974
+ "name": "ComponentMain",
975
+ "componentId": {
976
+ "scope": "teambit.component",
977
+ "name": "component"
978
+ }
923
979
  },
924
980
  {
925
981
  "__schema": "TypeRefSchema",
@@ -928,7 +984,11 @@
928
984
  "line": 250,
929
985
  "character": 94
930
986
  },
931
- "name": "GraphqlMain"
987
+ "name": "GraphqlMain",
988
+ "componentId": {
989
+ "scope": "teambit.harmony",
990
+ "name": "graphql"
991
+ }
932
992
  },
933
993
  {
934
994
  "__schema": "TypeRefSchema",
@@ -937,7 +997,11 @@
937
997
  "line": 250,
938
998
  "character": 107
939
999
  },
940
- "name": "ScopeMain"
1000
+ "name": "ScopeMain",
1001
+ "componentId": {
1002
+ "scope": "teambit.scope",
1003
+ "name": "scope"
1004
+ }
941
1005
  }
942
1006
  ]
943
1007
  },
@@ -959,7 +1023,8 @@
959
1023
  "line": 251,
960
1024
  "character": 13
961
1025
  },
962
- "name": "DevFilesConfig"
1026
+ "name": "DevFilesConfig",
1027
+ "internalFilePath": "dev-files.main.runtime.ts"
963
1028
  },
964
1029
  "isOptional": false,
965
1030
  "isSpread": false
@@ -987,7 +1052,8 @@
987
1052
  "line": 252,
988
1053
  "character": 24
989
1054
  },
990
- "name": "DevPatternSlot"
1055
+ "name": "DevPatternSlot",
1056
+ "internalFilePath": "dev-files.main.runtime.ts"
991
1057
  }
992
1058
  ]
993
1059
  },
@@ -1293,7 +1359,7 @@
1293
1359
  "line": 37,
1294
1360
  "character": 28
1295
1361
  },
1296
- "signature": "(component: Component): DevPattern",
1362
+ "signature": "(component: (component: teambit.component/component) Component): DevPattern",
1297
1363
  "name": "",
1298
1364
  "params": [
1299
1365
  {
@@ -1311,7 +1377,11 @@
1311
1377
  "line": 37,
1312
1378
  "character": 40
1313
1379
  },
1314
- "name": "Component"
1380
+ "name": "Component",
1381
+ "componentId": {
1382
+ "scope": "teambit.component",
1383
+ "name": "component"
1384
+ }
1315
1385
  },
1316
1386
  "isOptional": false,
1317
1387
  "isSpread": false
@@ -1324,7 +1394,8 @@
1324
1394
  "line": 37,
1325
1395
  "character": 54
1326
1396
  },
1327
- "name": "DevPattern"
1397
+ "name": "DevPattern",
1398
+ "internalFilePath": "dev-files.main.runtime.ts"
1328
1399
  },
1329
1400
  "modifiers": []
1330
1401
  }
@@ -1336,7 +1407,8 @@
1336
1407
  "line": 37,
1337
1408
  "character": 68
1338
1409
  },
1339
- "name": "DevPattern"
1410
+ "name": "DevPattern",
1411
+ "internalFilePath": "dev-files.main.runtime.ts"
1340
1412
  }
1341
1413
  ]
1342
1414
  }
@@ -1537,6 +1609,11 @@
1537
1609
  "character": 30
1538
1610
  },
1539
1611
  "name": "SlotRegistry",
1612
+ "componentId": {
1613
+ "scope": "teambit.harmony",
1614
+ "name": "harmony",
1615
+ "version": "0.4.6"
1616
+ },
1540
1617
  "typeArgs": [
1541
1618
  {
1542
1619
  "__schema": "TypeRefSchema",
@@ -1545,7 +1622,8 @@
1545
1622
  "line": 49,
1546
1623
  "character": 43
1547
1624
  },
1548
- "name": "DevPatterns"
1625
+ "name": "DevPatterns",
1626
+ "internalFilePath": "dev-files.main.runtime.ts"
1549
1627
  }
1550
1628
  ]
1551
1629
  }
@@ -1633,7 +1711,11 @@
1633
1711
  "line": 57,
1634
1712
  "character": 19
1635
1713
  },
1636
- "name": "EnvsMain"
1714
+ "name": "EnvsMain",
1715
+ "componentId": {
1716
+ "scope": "teambit.envs",
1717
+ "name": "envs"
1718
+ }
1637
1719
  },
1638
1720
  "isOptional": false,
1639
1721
  "isSpread": false
@@ -1653,7 +1735,11 @@
1653
1735
  "line": 59,
1654
1736
  "character": 24
1655
1737
  },
1656
- "name": "Workspace"
1738
+ "name": "Workspace",
1739
+ "componentId": {
1740
+ "scope": "teambit.workspace",
1741
+ "name": "workspace"
1742
+ }
1657
1743
  },
1658
1744
  "isOptional": false,
1659
1745
  "isSpread": false
@@ -1673,7 +1759,8 @@
1673
1759
  "line": 61,
1674
1760
  "character": 29
1675
1761
  },
1676
- "name": "DevPatternSlot"
1762
+ "name": "DevPatternSlot",
1763
+ "internalFilePath": "dev-files.main.runtime.ts"
1677
1764
  },
1678
1765
  "isOptional": false,
1679
1766
  "isSpread": false
@@ -1693,7 +1780,8 @@
1693
1780
  "line": 66,
1694
1781
  "character": 22
1695
1782
  },
1696
- "name": "DevFilesConfig"
1783
+ "name": "DevFilesConfig",
1784
+ "internalFilePath": "dev-files.main.runtime.ts"
1697
1785
  },
1698
1786
  "isOptional": false,
1699
1787
  "isSpread": false
@@ -1746,7 +1834,11 @@
1746
1834
  "line": 74,
1747
1835
  "character": 39
1748
1836
  },
1749
- "name": "Component"
1837
+ "name": "Component",
1838
+ "componentId": {
1839
+ "scope": "teambit.component",
1840
+ "name": "component"
1841
+ }
1750
1842
  },
1751
1843
  "isOptional": false,
1752
1844
  "isSpread": false
@@ -1818,7 +1910,11 @@
1818
1910
  "line": 146,
1819
1911
  "character": 36
1820
1912
  },
1821
- "name": "EnvJsonc"
1913
+ "name": "EnvJsonc",
1914
+ "componentId": {
1915
+ "scope": "teambit.envs",
1916
+ "name": "envs"
1917
+ }
1822
1918
  },
1823
1919
  "isOptional": false,
1824
1920
  "isSpread": false
@@ -1838,7 +1934,11 @@
1838
1934
  "line": 146,
1839
1935
  "character": 53
1840
1936
  },
1841
- "name": "EnvJsonc"
1937
+ "name": "EnvJsonc",
1938
+ "componentId": {
1939
+ "scope": "teambit.envs",
1940
+ "name": "envs"
1941
+ }
1842
1942
  },
1843
1943
  "isOptional": false,
1844
1944
  "isSpread": false
@@ -1860,7 +1960,11 @@
1860
1960
  "line": 146,
1861
1961
  "character": 72
1862
1962
  },
1863
- "name": "EnvJsonc"
1963
+ "name": "EnvJsonc",
1964
+ "componentId": {
1965
+ "scope": "teambit.envs",
1966
+ "name": "envs"
1967
+ }
1864
1968
  }
1865
1969
  ]
1866
1970
  },
@@ -1902,7 +2006,11 @@
1902
2006
  "line": 177,
1903
2007
  "character": 29
1904
2008
  },
1905
- "name": "Component"
2009
+ "name": "Component",
2010
+ "componentId": {
2011
+ "scope": "teambit.component",
2012
+ "name": "component"
2013
+ }
1906
2014
  },
1907
2015
  "isOptional": false,
1908
2016
  "isSpread": false
@@ -1983,7 +2091,11 @@
1983
2091
  "line": 186,
1984
2092
  "character": 24
1985
2093
  },
1986
- "name": "Component"
2094
+ "name": "Component",
2095
+ "componentId": {
2096
+ "scope": "teambit.component",
2097
+ "name": "component"
2098
+ }
1987
2099
  },
1988
2100
  "isOptional": false,
1989
2101
  "isSpread": false
@@ -2068,7 +2180,8 @@
2068
2180
  "line": 195,
2069
2181
  "character": 31
2070
2182
  },
2071
- "name": "DevPatterns"
2183
+ "name": "DevPatterns",
2184
+ "internalFilePath": "dev-files.main.runtime.ts"
2072
2185
  },
2073
2186
  "isOptional": false,
2074
2187
  "isSpread": false
@@ -2121,7 +2234,11 @@
2121
2234
  "line": 203,
2122
2235
  "character": 26
2123
2236
  },
2124
- "name": "Component"
2237
+ "name": "Component",
2238
+ "componentId": {
2239
+ "scope": "teambit.component",
2240
+ "name": "component"
2241
+ }
2125
2242
  },
2126
2243
  "isOptional": false,
2127
2244
  "isSpread": false
@@ -2266,7 +2383,11 @@
2266
2383
  "line": 227,
2267
2384
  "character": 36
2268
2385
  },
2269
- "name": "Component"
2386
+ "name": "Component",
2387
+ "componentId": {
2388
+ "scope": "teambit.component",
2389
+ "name": "component"
2390
+ }
2270
2391
  },
2271
2392
  "isOptional": false,
2272
2393
  "isSpread": false
@@ -2316,7 +2437,8 @@
2316
2437
  "line": 227,
2317
2438
  "character": 93
2318
2439
  },
2319
- "name": "DevFiles"
2440
+ "name": "DevFiles",
2441
+ "internalFilePath": "dev-files.ts"
2320
2442
  }
2321
2443
  ]
2322
2444
  },
@@ -2441,7 +2563,11 @@
2441
2563
  "line": 250,
2442
2564
  "character": 58
2443
2565
  },
2444
- "name": "EnvsMain"
2566
+ "name": "EnvsMain",
2567
+ "componentId": {
2568
+ "scope": "teambit.envs",
2569
+ "name": "envs"
2570
+ }
2445
2571
  },
2446
2572
  {
2447
2573
  "__schema": "TypeRefSchema",
@@ -2450,7 +2576,11 @@
2450
2576
  "line": 250,
2451
2577
  "character": 68
2452
2578
  },
2453
- "name": "Workspace"
2579
+ "name": "Workspace",
2580
+ "componentId": {
2581
+ "scope": "teambit.workspace",
2582
+ "name": "workspace"
2583
+ }
2454
2584
  },
2455
2585
  {
2456
2586
  "__schema": "TypeRefSchema",
@@ -2459,7 +2589,11 @@
2459
2589
  "line": 250,
2460
2590
  "character": 79
2461
2591
  },
2462
- "name": "ComponentMain"
2592
+ "name": "ComponentMain",
2593
+ "componentId": {
2594
+ "scope": "teambit.component",
2595
+ "name": "component"
2596
+ }
2463
2597
  },
2464
2598
  {
2465
2599
  "__schema": "TypeRefSchema",
@@ -2468,7 +2602,11 @@
2468
2602
  "line": 250,
2469
2603
  "character": 94
2470
2604
  },
2471
- "name": "GraphqlMain"
2605
+ "name": "GraphqlMain",
2606
+ "componentId": {
2607
+ "scope": "teambit.harmony",
2608
+ "name": "graphql"
2609
+ }
2472
2610
  },
2473
2611
  {
2474
2612
  "__schema": "TypeRefSchema",
@@ -2477,7 +2615,11 @@
2477
2615
  "line": 250,
2478
2616
  "character": 107
2479
2617
  },
2480
- "name": "ScopeMain"
2618
+ "name": "ScopeMain",
2619
+ "componentId": {
2620
+ "scope": "teambit.scope",
2621
+ "name": "scope"
2622
+ }
2481
2623
  }
2482
2624
  ]
2483
2625
  },
@@ -2499,7 +2641,8 @@
2499
2641
  "line": 251,
2500
2642
  "character": 13
2501
2643
  },
2502
- "name": "DevFilesConfig"
2644
+ "name": "DevFilesConfig",
2645
+ "internalFilePath": "dev-files.main.runtime.ts"
2503
2646
  },
2504
2647
  "isOptional": false,
2505
2648
  "isSpread": false
@@ -2527,7 +2670,8 @@
2527
2670
  "line": 252,
2528
2671
  "character": 24
2529
2672
  },
2530
- "name": "DevPatternSlot"
2673
+ "name": "DevPatternSlot",
2674
+ "internalFilePath": "dev-files.main.runtime.ts"
2531
2675
  }
2532
2676
  ]
2533
2677
  },
@@ -2686,7 +2830,8 @@
2686
2830
  "line": 32,
2687
2831
  "character": 30
2688
2832
  },
2689
- "name": "DevPatternDescriptor"
2833
+ "name": "DevPatternDescriptor",
2834
+ "internalFilePath": "dev-files.main.runtime.ts"
2690
2835
  }
2691
2836
  ]
2692
2837
  }
@@ -2707,7 +2852,7 @@
2707
2852
  "componentId": {
2708
2853
  "scope": "teambit.component",
2709
2854
  "name": "dev-files",
2710
- "version": "1.0.499"
2855
+ "version": "1.0.500"
2711
2856
  },
2712
2857
  "taggedModuleExports": []
2713
2858
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.499/dist/dev-files.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.499/dist/dev-files.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.500/dist/dev-files.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.500/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,25 +1,25 @@
1
1
  {
2
2
  "name": "@teambit/dev-files",
3
- "version": "1.0.499",
3
+ "version": "1.0.500",
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.499"
9
+ "version": "1.0.500"
10
10
  },
11
11
  "dependencies": {
12
12
  "graphql-tag": "2.12.1",
13
13
  "lodash": "4.17.21",
14
14
  "@teambit/harmony": "0.4.6",
15
- "@teambit/component": "1.0.499",
16
- "@teambit/graphql": "1.0.499",
17
- "@teambit/cli": "0.0.1076",
18
- "@teambit/component.sources": "0.0.61",
19
- "@teambit/envs": "1.0.499",
20
- "@teambit/legacy.consumer-component": "0.0.10",
21
- "@teambit/scope": "1.0.499",
22
- "@teambit/workspace": "1.0.499"
15
+ "@teambit/component": "1.0.500",
16
+ "@teambit/graphql": "1.0.500",
17
+ "@teambit/cli": "0.0.1077",
18
+ "@teambit/component.sources": "0.0.62",
19
+ "@teambit/envs": "1.0.500",
20
+ "@teambit/legacy.consumer-component": "0.0.11",
21
+ "@teambit/scope": "1.0.500",
22
+ "@teambit/workspace": "1.0.500"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/lodash": "4.14.165",