@teambit/dev-files 1.0.434 → 1.0.435

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
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.434" tests="3" failures="0" errors="0" skipped="0">
3
+ <testsuite name="teambit.component/dev-files@1.0.435" 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
6
  <testcase classname="dist/dev-files.spec.js" name="should list all dev files"/>
@@ -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={76732:(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},29392: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(76732);Object.defineProperty(n,"DevFiles",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o(r).default}})},45403:(e,n,t)=>{var o={id:"teambit.component/dev-files@1.0.434",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(45403),i=(t(41594),t(5016)),s=t(65682),d=t(29392),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={47382:(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},40390: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(47382);Object.defineProperty(n,"DevFiles",{enumerable:!0,get:function(){return o(r).default}}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o(r).default}})},68628:(e,n,t)=>{var o={id:"teambit.component/dev-files@1.0.435",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(68628),i=(t(41594),t(5016)),s=t(65682),d=t(40390),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,11 +93,7 @@
93
93
  "line": 54,
94
94
  "character": 19
95
95
  },
96
- "name": "EnvsMain",
97
- "componentId": {
98
- "scope": "teambit.envs",
99
- "name": "envs"
100
- }
96
+ "name": "EnvsMain"
101
97
  },
102
98
  "isOptional": false,
103
99
  "isSpread": false
@@ -117,11 +113,7 @@
117
113
  "line": 56,
118
114
  "character": 24
119
115
  },
120
- "name": "Workspace",
121
- "componentId": {
122
- "scope": "teambit.workspace",
123
- "name": "workspace"
124
- }
116
+ "name": "Workspace"
125
117
  },
126
118
  "isOptional": false,
127
119
  "isSpread": false
@@ -141,8 +133,7 @@
141
133
  "line": 58,
142
134
  "character": 29
143
135
  },
144
- "name": "DevPatternSlot",
145
- "internalFilePath": "dev-files.main.runtime.ts"
136
+ "name": "DevPatternSlot"
146
137
  },
147
138
  "isOptional": false,
148
139
  "isSpread": false
@@ -162,8 +153,7 @@
162
153
  "line": 63,
163
154
  "character": 22
164
155
  },
165
- "name": "DevFilesConfig",
166
- "internalFilePath": "dev-files.main.runtime.ts"
156
+ "name": "DevFilesConfig"
167
157
  },
168
158
  "isOptional": false,
169
159
  "isSpread": false
@@ -216,11 +206,7 @@
216
206
  "line": 71,
217
207
  "character": 39
218
208
  },
219
- "name": "Component",
220
- "componentId": {
221
- "scope": "teambit.component",
222
- "name": "component"
223
- }
209
+ "name": "Component"
224
210
  },
225
211
  "isOptional": false,
226
212
  "isSpread": false
@@ -264,11 +250,7 @@
264
250
  "line": 141,
265
251
  "character": 36
266
252
  },
267
- "name": "EnvJsonc",
268
- "componentId": {
269
- "scope": "teambit.envs",
270
- "name": "envs"
271
- }
253
+ "name": "EnvJsonc"
272
254
  },
273
255
  "isOptional": false,
274
256
  "isSpread": false
@@ -288,11 +270,7 @@
288
270
  "line": 141,
289
271
  "character": 53
290
272
  },
291
- "name": "EnvJsonc",
292
- "componentId": {
293
- "scope": "teambit.envs",
294
- "name": "envs"
295
- }
273
+ "name": "EnvJsonc"
296
274
  },
297
275
  "isOptional": false,
298
276
  "isSpread": false
@@ -314,11 +292,7 @@
314
292
  "line": 141,
315
293
  "character": 72
316
294
  },
317
- "name": "EnvJsonc",
318
- "componentId": {
319
- "scope": "teambit.envs",
320
- "name": "envs"
321
- }
295
+ "name": "EnvJsonc"
322
296
  }
323
297
  ]
324
298
  },
@@ -360,11 +334,7 @@
360
334
  "line": 170,
361
335
  "character": 29
362
336
  },
363
- "name": "Component",
364
- "componentId": {
365
- "scope": "teambit.component",
366
- "name": "component"
367
- }
337
+ "name": "Component"
368
338
  },
369
339
  "isOptional": false,
370
340
  "isSpread": false
@@ -445,11 +415,7 @@
445
415
  "line": 179,
446
416
  "character": 24
447
417
  },
448
- "name": "Component",
449
- "componentId": {
450
- "scope": "teambit.component",
451
- "name": "component"
452
- }
418
+ "name": "Component"
453
419
  },
454
420
  "isOptional": false,
455
421
  "isSpread": false
@@ -534,8 +500,7 @@
534
500
  "line": 188,
535
501
  "character": 31
536
502
  },
537
- "name": "DevPatterns",
538
- "internalFilePath": "dev-files.main.runtime.ts"
503
+ "name": "DevPatterns"
539
504
  },
540
505
  "isOptional": false,
541
506
  "isSpread": false
@@ -588,11 +553,7 @@
588
553
  "line": 196,
589
554
  "character": 26
590
555
  },
591
- "name": "Component",
592
- "componentId": {
593
- "scope": "teambit.component",
594
- "name": "component"
595
- }
556
+ "name": "Component"
596
557
  },
597
558
  "isOptional": false,
598
559
  "isSpread": false
@@ -635,8 +596,7 @@
635
596
  "line": 202,
636
597
  "character": 55
637
598
  },
638
- "name": "LegacyComponent",
639
- "packageName": "@teambit/legacy/dist/consumer/component"
599
+ "name": "LegacyComponent"
640
600
  },
641
601
  "isOptional": false,
642
602
  "isSpread": false
@@ -710,11 +670,7 @@
710
670
  "line": 214,
711
671
  "character": 36
712
672
  },
713
- "name": "Component",
714
- "componentId": {
715
- "scope": "teambit.component",
716
- "name": "component"
717
- }
673
+ "name": "Component"
718
674
  },
719
675
  "isOptional": false,
720
676
  "isSpread": false
@@ -736,8 +692,7 @@
736
692
  "line": 214,
737
693
  "character": 56
738
694
  },
739
- "name": "DevFiles",
740
- "internalFilePath": "dev-files.ts"
695
+ "name": "DevFiles"
741
696
  }
742
697
  ]
743
698
  },
@@ -862,11 +817,7 @@
862
817
  "line": 237,
863
818
  "character": 58
864
819
  },
865
- "name": "EnvsMain",
866
- "componentId": {
867
- "scope": "teambit.envs",
868
- "name": "envs"
869
- }
820
+ "name": "EnvsMain"
870
821
  },
871
822
  {
872
823
  "__schema": "TypeRefSchema",
@@ -875,11 +826,7 @@
875
826
  "line": 237,
876
827
  "character": 68
877
828
  },
878
- "name": "Workspace",
879
- "componentId": {
880
- "scope": "teambit.workspace",
881
- "name": "workspace"
882
- }
829
+ "name": "Workspace"
883
830
  },
884
831
  {
885
832
  "__schema": "TypeRefSchema",
@@ -888,11 +835,7 @@
888
835
  "line": 237,
889
836
  "character": 79
890
837
  },
891
- "name": "ComponentMain",
892
- "componentId": {
893
- "scope": "teambit.component",
894
- "name": "component"
895
- }
838
+ "name": "ComponentMain"
896
839
  },
897
840
  {
898
841
  "__schema": "TypeRefSchema",
@@ -901,11 +844,7 @@
901
844
  "line": 237,
902
845
  "character": 94
903
846
  },
904
- "name": "GraphqlMain",
905
- "componentId": {
906
- "scope": "teambit.harmony",
907
- "name": "graphql"
908
- }
847
+ "name": "GraphqlMain"
909
848
  },
910
849
  {
911
850
  "__schema": "TypeRefSchema",
@@ -914,11 +853,7 @@
914
853
  "line": 237,
915
854
  "character": 107
916
855
  },
917
- "name": "ScopeMain",
918
- "componentId": {
919
- "scope": "teambit.scope",
920
- "name": "scope"
921
- }
856
+ "name": "ScopeMain"
922
857
  }
923
858
  ]
924
859
  },
@@ -940,8 +875,7 @@
940
875
  "line": 238,
941
876
  "character": 13
942
877
  },
943
- "name": "DevFilesConfig",
944
- "internalFilePath": "dev-files.main.runtime.ts"
878
+ "name": "DevFilesConfig"
945
879
  },
946
880
  "isOptional": false,
947
881
  "isSpread": false
@@ -969,8 +903,7 @@
969
903
  "line": 239,
970
904
  "character": 24
971
905
  },
972
- "name": "DevPatternSlot",
973
- "internalFilePath": "dev-files.main.runtime.ts"
906
+ "name": "DevPatternSlot"
974
907
  }
975
908
  ]
976
909
  },
@@ -1276,7 +1209,7 @@
1276
1209
  "line": 34,
1277
1210
  "character": 28
1278
1211
  },
1279
- "signature": "(component: (component: teambit.component/component) Component): DevPattern",
1212
+ "signature": "(component: Component): DevPattern",
1280
1213
  "name": "",
1281
1214
  "params": [
1282
1215
  {
@@ -1294,11 +1227,7 @@
1294
1227
  "line": 34,
1295
1228
  "character": 40
1296
1229
  },
1297
- "name": "Component",
1298
- "componentId": {
1299
- "scope": "teambit.component",
1300
- "name": "component"
1301
- }
1230
+ "name": "Component"
1302
1231
  },
1303
1232
  "isOptional": false,
1304
1233
  "isSpread": false
@@ -1311,8 +1240,7 @@
1311
1240
  "line": 34,
1312
1241
  "character": 54
1313
1242
  },
1314
- "name": "DevPattern",
1315
- "internalFilePath": "dev-files.main.runtime.ts"
1243
+ "name": "DevPattern"
1316
1244
  },
1317
1245
  "modifiers": []
1318
1246
  }
@@ -1324,8 +1252,7 @@
1324
1252
  "line": 34,
1325
1253
  "character": 68
1326
1254
  },
1327
- "name": "DevPattern",
1328
- "internalFilePath": "dev-files.main.runtime.ts"
1255
+ "name": "DevPattern"
1329
1256
  }
1330
1257
  ]
1331
1258
  }
@@ -1526,11 +1453,6 @@
1526
1453
  "character": 30
1527
1454
  },
1528
1455
  "name": "SlotRegistry",
1529
- "componentId": {
1530
- "scope": "teambit.harmony",
1531
- "name": "harmony",
1532
- "version": "0.4.6"
1533
- },
1534
1456
  "typeArgs": [
1535
1457
  {
1536
1458
  "__schema": "TypeRefSchema",
@@ -1539,8 +1461,7 @@
1539
1461
  "line": 46,
1540
1462
  "character": 43
1541
1463
  },
1542
- "name": "DevPatterns",
1543
- "internalFilePath": "dev-files.main.runtime.ts"
1464
+ "name": "DevPatterns"
1544
1465
  }
1545
1466
  ]
1546
1467
  }
@@ -1628,11 +1549,7 @@
1628
1549
  "line": 54,
1629
1550
  "character": 19
1630
1551
  },
1631
- "name": "EnvsMain",
1632
- "componentId": {
1633
- "scope": "teambit.envs",
1634
- "name": "envs"
1635
- }
1552
+ "name": "EnvsMain"
1636
1553
  },
1637
1554
  "isOptional": false,
1638
1555
  "isSpread": false
@@ -1652,11 +1569,7 @@
1652
1569
  "line": 56,
1653
1570
  "character": 24
1654
1571
  },
1655
- "name": "Workspace",
1656
- "componentId": {
1657
- "scope": "teambit.workspace",
1658
- "name": "workspace"
1659
- }
1572
+ "name": "Workspace"
1660
1573
  },
1661
1574
  "isOptional": false,
1662
1575
  "isSpread": false
@@ -1676,8 +1589,7 @@
1676
1589
  "line": 58,
1677
1590
  "character": 29
1678
1591
  },
1679
- "name": "DevPatternSlot",
1680
- "internalFilePath": "dev-files.main.runtime.ts"
1592
+ "name": "DevPatternSlot"
1681
1593
  },
1682
1594
  "isOptional": false,
1683
1595
  "isSpread": false
@@ -1697,8 +1609,7 @@
1697
1609
  "line": 63,
1698
1610
  "character": 22
1699
1611
  },
1700
- "name": "DevFilesConfig",
1701
- "internalFilePath": "dev-files.main.runtime.ts"
1612
+ "name": "DevFilesConfig"
1702
1613
  },
1703
1614
  "isOptional": false,
1704
1615
  "isSpread": false
@@ -1751,11 +1662,7 @@
1751
1662
  "line": 71,
1752
1663
  "character": 39
1753
1664
  },
1754
- "name": "Component",
1755
- "componentId": {
1756
- "scope": "teambit.component",
1757
- "name": "component"
1758
- }
1665
+ "name": "Component"
1759
1666
  },
1760
1667
  "isOptional": false,
1761
1668
  "isSpread": false
@@ -1799,11 +1706,7 @@
1799
1706
  "line": 141,
1800
1707
  "character": 36
1801
1708
  },
1802
- "name": "EnvJsonc",
1803
- "componentId": {
1804
- "scope": "teambit.envs",
1805
- "name": "envs"
1806
- }
1709
+ "name": "EnvJsonc"
1807
1710
  },
1808
1711
  "isOptional": false,
1809
1712
  "isSpread": false
@@ -1823,11 +1726,7 @@
1823
1726
  "line": 141,
1824
1727
  "character": 53
1825
1728
  },
1826
- "name": "EnvJsonc",
1827
- "componentId": {
1828
- "scope": "teambit.envs",
1829
- "name": "envs"
1830
- }
1729
+ "name": "EnvJsonc"
1831
1730
  },
1832
1731
  "isOptional": false,
1833
1732
  "isSpread": false
@@ -1849,11 +1748,7 @@
1849
1748
  "line": 141,
1850
1749
  "character": 72
1851
1750
  },
1852
- "name": "EnvJsonc",
1853
- "componentId": {
1854
- "scope": "teambit.envs",
1855
- "name": "envs"
1856
- }
1751
+ "name": "EnvJsonc"
1857
1752
  }
1858
1753
  ]
1859
1754
  },
@@ -1895,11 +1790,7 @@
1895
1790
  "line": 170,
1896
1791
  "character": 29
1897
1792
  },
1898
- "name": "Component",
1899
- "componentId": {
1900
- "scope": "teambit.component",
1901
- "name": "component"
1902
- }
1793
+ "name": "Component"
1903
1794
  },
1904
1795
  "isOptional": false,
1905
1796
  "isSpread": false
@@ -1980,11 +1871,7 @@
1980
1871
  "line": 179,
1981
1872
  "character": 24
1982
1873
  },
1983
- "name": "Component",
1984
- "componentId": {
1985
- "scope": "teambit.component",
1986
- "name": "component"
1987
- }
1874
+ "name": "Component"
1988
1875
  },
1989
1876
  "isOptional": false,
1990
1877
  "isSpread": false
@@ -2069,8 +1956,7 @@
2069
1956
  "line": 188,
2070
1957
  "character": 31
2071
1958
  },
2072
- "name": "DevPatterns",
2073
- "internalFilePath": "dev-files.main.runtime.ts"
1959
+ "name": "DevPatterns"
2074
1960
  },
2075
1961
  "isOptional": false,
2076
1962
  "isSpread": false
@@ -2123,11 +2009,7 @@
2123
2009
  "line": 196,
2124
2010
  "character": 26
2125
2011
  },
2126
- "name": "Component",
2127
- "componentId": {
2128
- "scope": "teambit.component",
2129
- "name": "component"
2130
- }
2012
+ "name": "Component"
2131
2013
  },
2132
2014
  "isOptional": false,
2133
2015
  "isSpread": false
@@ -2170,8 +2052,7 @@
2170
2052
  "line": 202,
2171
2053
  "character": 55
2172
2054
  },
2173
- "name": "LegacyComponent",
2174
- "packageName": "@teambit/legacy/dist/consumer/component"
2055
+ "name": "LegacyComponent"
2175
2056
  },
2176
2057
  "isOptional": false,
2177
2058
  "isSpread": false
@@ -2245,11 +2126,7 @@
2245
2126
  "line": 214,
2246
2127
  "character": 36
2247
2128
  },
2248
- "name": "Component",
2249
- "componentId": {
2250
- "scope": "teambit.component",
2251
- "name": "component"
2252
- }
2129
+ "name": "Component"
2253
2130
  },
2254
2131
  "isOptional": false,
2255
2132
  "isSpread": false
@@ -2271,8 +2148,7 @@
2271
2148
  "line": 214,
2272
2149
  "character": 56
2273
2150
  },
2274
- "name": "DevFiles",
2275
- "internalFilePath": "dev-files.ts"
2151
+ "name": "DevFiles"
2276
2152
  }
2277
2153
  ]
2278
2154
  },
@@ -2397,11 +2273,7 @@
2397
2273
  "line": 237,
2398
2274
  "character": 58
2399
2275
  },
2400
- "name": "EnvsMain",
2401
- "componentId": {
2402
- "scope": "teambit.envs",
2403
- "name": "envs"
2404
- }
2276
+ "name": "EnvsMain"
2405
2277
  },
2406
2278
  {
2407
2279
  "__schema": "TypeRefSchema",
@@ -2410,11 +2282,7 @@
2410
2282
  "line": 237,
2411
2283
  "character": 68
2412
2284
  },
2413
- "name": "Workspace",
2414
- "componentId": {
2415
- "scope": "teambit.workspace",
2416
- "name": "workspace"
2417
- }
2285
+ "name": "Workspace"
2418
2286
  },
2419
2287
  {
2420
2288
  "__schema": "TypeRefSchema",
@@ -2423,11 +2291,7 @@
2423
2291
  "line": 237,
2424
2292
  "character": 79
2425
2293
  },
2426
- "name": "ComponentMain",
2427
- "componentId": {
2428
- "scope": "teambit.component",
2429
- "name": "component"
2430
- }
2294
+ "name": "ComponentMain"
2431
2295
  },
2432
2296
  {
2433
2297
  "__schema": "TypeRefSchema",
@@ -2436,11 +2300,7 @@
2436
2300
  "line": 237,
2437
2301
  "character": 94
2438
2302
  },
2439
- "name": "GraphqlMain",
2440
- "componentId": {
2441
- "scope": "teambit.harmony",
2442
- "name": "graphql"
2443
- }
2303
+ "name": "GraphqlMain"
2444
2304
  },
2445
2305
  {
2446
2306
  "__schema": "TypeRefSchema",
@@ -2449,11 +2309,7 @@
2449
2309
  "line": 237,
2450
2310
  "character": 107
2451
2311
  },
2452
- "name": "ScopeMain",
2453
- "componentId": {
2454
- "scope": "teambit.scope",
2455
- "name": "scope"
2456
- }
2312
+ "name": "ScopeMain"
2457
2313
  }
2458
2314
  ]
2459
2315
  },
@@ -2475,8 +2331,7 @@
2475
2331
  "line": 238,
2476
2332
  "character": 13
2477
2333
  },
2478
- "name": "DevFilesConfig",
2479
- "internalFilePath": "dev-files.main.runtime.ts"
2334
+ "name": "DevFilesConfig"
2480
2335
  },
2481
2336
  "isOptional": false,
2482
2337
  "isSpread": false
@@ -2504,8 +2359,7 @@
2504
2359
  "line": 239,
2505
2360
  "character": 24
2506
2361
  },
2507
- "name": "DevPatternSlot",
2508
- "internalFilePath": "dev-files.main.runtime.ts"
2362
+ "name": "DevPatternSlot"
2509
2363
  }
2510
2364
  ]
2511
2365
  },
@@ -2664,8 +2518,7 @@
2664
2518
  "line": 29,
2665
2519
  "character": 30
2666
2520
  },
2667
- "name": "DevPatternDescriptor",
2668
- "internalFilePath": "dev-files.main.runtime.ts"
2521
+ "name": "DevPatternDescriptor"
2669
2522
  }
2670
2523
  ]
2671
2524
  }
@@ -2686,7 +2539,7 @@
2686
2539
  "componentId": {
2687
2540
  "scope": "teambit.component",
2688
2541
  "name": "dev-files",
2689
- "version": "1.0.434"
2542
+ "version": "1.0.435"
2690
2543
  },
2691
2544
  "taggedModuleExports": []
2692
2545
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.434/dist/dev-files.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.434/dist/dev-files.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.435/dist/dev-files.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_dev-files@1.0.435/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,24 @@
1
1
  {
2
2
  "name": "@teambit/dev-files",
3
- "version": "1.0.434",
3
+ "version": "1.0.435",
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.434"
9
+ "version": "1.0.435"
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.434",
16
- "@teambit/graphql": "1.0.434",
17
- "@teambit/cli": "0.0.1011",
18
- "@teambit/component.sources": "0.0.36",
19
- "@teambit/envs": "1.0.434",
20
- "@teambit/scope": "1.0.434",
21
- "@teambit/workspace": "1.0.434"
15
+ "@teambit/component": "1.0.435",
16
+ "@teambit/graphql": "1.0.435",
17
+ "@teambit/cli": "0.0.1012",
18
+ "@teambit/component.sources": "0.0.37",
19
+ "@teambit/envs": "1.0.435",
20
+ "@teambit/scope": "1.0.435",
21
+ "@teambit/workspace": "1.0.435"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/lodash": "4.14.165",