-
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.
* chore: update node in actions to 18 (#191) * chore: update node in actions to 18 * feat: upgrade lock version to 3 * fix: lint fixes * chore: fix main-preview action (#192) * feat(Yagr plugin)!: update to v3 (#180) * feat!: updated Yagr version * fix: updated package-lock, added npmrc * fix: switched to npm@8 to have lock version of 2 * chore: fixed jest config * feat: updated yagr to 3.3.0 * fix: bumped yarg patch version * fix: fix rebase artifacts --------- Co-authored-by: Алаев Евгений <[email protected]> * fix: build fixes (#190) * chore: lock fixes --------- Co-authored-by: Trdat Mkrtchyan <[email protected]>
- Loading branch information
Showing
10 changed files
with
17,702 additions
and
54,532 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"chrome": 100 | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [] | ||
} |
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
registry=https://registry.npmjs.org | ||
legacy-peer-deps=true | ||
legacy-peer-deps=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 |
---|---|---|
@@ -1,38 +1,19 @@ | ||
import type {StorybookConfig} from '@storybook/core-common'; | ||
import type {StorybookConfig} from '@storybook/react-webpack5'; | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.stories.@(ts|tsx)'], | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
options: {fastRefresh: true}, | ||
}, | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(ts|tsx)'], | ||
docs: { | ||
autodocs: false, | ||
}, | ||
addons: [ | ||
'@storybook/preset-scss', | ||
{name: '@storybook/addon-essentials', options: {backgrounds: false}}, | ||
'./theme-addon/register.tsx', | ||
], | ||
webpackFinal: async (config) => { | ||
const babelModuleIdx = config.module?.rules?.findIndex((rule) => { | ||
const use = (Array.isArray(rule.use) ? rule.use?.[0] : rule.use) as {loader: string}; | ||
return use.loader?.includes('babel-loader') && typeof rule.include === 'function'; | ||
}); | ||
|
||
if (babelModuleIdx === undefined || babelModuleIdx === -1) { | ||
return config; | ||
} | ||
|
||
if (config.module?.rules?.[babelModuleIdx]?.include) { | ||
const ii = config.module?.rules?.[babelModuleIdx]?.include as (s: string) => boolean; | ||
config.module.rules[babelModuleIdx].include = (input: string) => { | ||
const res = ii(input); | ||
if ( | ||
input.includes('node_modules/uplot') || | ||
input.includes('node_modules/@gravity-ui/yagr') | ||
) { | ||
return true; | ||
} | ||
return res; | ||
}; | ||
} | ||
|
||
return config; | ||
}, | ||
}; | ||
|
||
module.exports = config; | ||
export default config; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.