-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into allow-scoped-client-certs
- Loading branch information
Showing
15 changed files
with
27,282 additions
and
2,105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: [require.resolve('@pnpm/eslint-config')], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @see https://bit.dev/reference/jest/jest-config | ||
*/ | ||
const { jestConfig } = require('@teambit/react.react-env'); | ||
|
||
const { | ||
generateNodeModulesPattern, | ||
} = require('@teambit/dependencies.modules.packages-excluder'); | ||
|
||
const packagesToExclude = ['@teambit', '@my-org', 'my-package-name']; | ||
|
||
/** | ||
* by default, jest excludes all node_modules from the transform (compilation) process. | ||
* the following config excludes all node_modules, except for Bit components, style modules, and the packages that are listed. | ||
*/ | ||
module.exports = { | ||
...jestConfig, | ||
testEnvironment: 'node', | ||
setupFiles: [], | ||
setupFilesAfterEnv: [], | ||
transformIgnorePatterns: [ | ||
'^.+.module.(css|sass|scss)$', | ||
generateNodeModulesPattern({ | ||
packages: packagesToExclude, | ||
excludeComponents: true, | ||
}), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const { prettierConfig } = require('@teambit/react.react-env'); | ||
|
||
module.exports = { | ||
...prettierConfig, | ||
semi: false, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
arrowParens: 'avoid', | ||
printWidth: 80, | ||
tabWidth: 2, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @see https://bit.dev/reference/typescript/typescript-config | ||
*/ | ||
{ | ||
"extends": "@pnpm/tsconfig", | ||
"compilerOptions": { | ||
"ignoreDeprecations": "5.0" | ||
}, | ||
"exclude": [ | ||
"artifacts", | ||
"public", | ||
"dist", | ||
"node_modules", | ||
"package.json", | ||
"**/*.cjs" | ||
], | ||
"include": ["**/*", "**/*.json", ".mocharc.js", ".mocharc.js"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type { WebpackConfigMutator } from '@teambit/webpack'; | ||
|
||
/** | ||
* modifies the webpack config for the components preview bundle. | ||
* @see https://bit.dev/reference/webpack/webpack-config | ||
*/ | ||
export const webpackTransformer = ( | ||
configMutator: WebpackConfigMutator | ||
): WebpackConfigMutator => configMutator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
/** | ||
* standardize your component dependencies. | ||
* @see https://bit.dev/docs/node-env/dependencies | ||
*/ | ||
"policy": { | ||
/** | ||
* peer dependencies for components using that env. | ||
*/ | ||
"peers": [ | ||
{ | ||
"name": "react", | ||
/* the version to be installed and used by the env */ | ||
"version": "^18.0.0", | ||
/* the range of versions this env's components are compatible with */ | ||
"supportedRange": "^17.0.0 || ^18.0.0" | ||
}, | ||
{ | ||
"name": "react-dom", | ||
"version": "^18.0.0", | ||
"supportedRange": "^17.0.0 || ^18.0.0" | ||
}, | ||
{ | ||
"name": "jest", | ||
"version": "29.3.1", | ||
"supportedRange": "29.3.1" | ||
}, | ||
{ | ||
"name": "@mdx-js/react", | ||
"version": "1.6.22", | ||
"supportedRange": "^1.6.22" | ||
}, | ||
{ | ||
"name": "@teambit/mdx.ui.mdx-scope-context", | ||
"version": "1.0.0", | ||
"supportedRange": "^1.0.0" | ||
} | ||
], | ||
/** | ||
* dev dependencies for components using that env | ||
*/ | ||
"dev": [ | ||
{ | ||
"name": "@types/node", | ||
/* the version to be installed and used by the env */ | ||
"version": "^18.11.9", | ||
/** | ||
* hide the dependency from bit's inspection tools. | ||
* in most cases, a component should only list its env as a dev dependency | ||
*/ | ||
"hidden": true, | ||
/* add this dependency to components, even if they don't directly import it */ | ||
"force": true | ||
}, | ||
{ | ||
"name": "@types/jest", | ||
"version": "^29.2.2", | ||
"hidden": true, | ||
"force": true | ||
}, | ||
{ | ||
"name": "@pnpm/tsconfig", | ||
"version": "^2.0.0", | ||
"hidden": true, | ||
"force": true | ||
}, | ||
{ | ||
"name": "@pnpm/eslint-config", | ||
"version": "^1.1.0", | ||
"hidden": true, | ||
"force": true | ||
} | ||
], | ||
"runtime": [] | ||
}, | ||
|
||
/** | ||
* associate files with a specific dev service. | ||
* associated files are considered as dev files. | ||
* @see https://bit.dev/docs/node-env/dependencies#configure-files-as-dev-files | ||
*/ | ||
"patterns": { | ||
/** | ||
* files to be loaded and displayed in the 'preview' tab. | ||
* @see https://bit.dev/docs/node-env/component-previews | ||
*/ | ||
"compositions": ["**/*.composition.*", "**/*.preview.*"], | ||
/** | ||
* files to be loaded and displayed in the 'overview' tab. | ||
* @see https://bit.dev/docs/node-env/component-docs | ||
*/ | ||
"docs": ["**/*.docs.*"], | ||
/* files to be included in the component testing */ | ||
"tests": ["**/*.spec.*", "**/*.test.*"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { PnpmEnv } from "./pnpm-env.bit-env"; | ||
|
||
export { PnpmEnv }; | ||
export default PnpmEnv; |
Oops, something went wrong.