-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storybook upgrade, react 17, package updates (#421)
* storybook upgrade * lint changes --------- Co-authored-by: tumms2021389 <[email protected]>
- Loading branch information
1 parent
09fe0e7
commit 0a92543
Showing
15 changed files
with
25,285 additions
and
67,283 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 |
---|---|---|
@@ -1,25 +1,24 @@ | ||
/* eslint-disable no-undef */ | ||
/* eslint-disable strict */ | ||
|
||
const path = require("path"); | ||
|
||
module.exports = { | ||
/** @type { import('@storybook/react-webpack5').StorybookConfig } */ | ||
const config = { | ||
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
core: { | ||
builder: 'webpack5', | ||
addons: ['@storybook/addon-links', '@storybook/addon-essentials'], | ||
framework: { | ||
name: '@storybook/react-webpack5' | ||
}, | ||
|
||
webpackFinal: (config) => { | ||
config.resolve.alias['@pega/react-sdk-components/lib/bridge/react_pconnect'] = path.resolve(__dirname, '../__mocks__/react_pconnect.jsx'); | ||
config.resolve.alias['@pega/react-sdk-components/lib/components/designSystemExtension/DetailsFields'] = path.resolve(__dirname, '../__mocks__/DetailsFields.js'); | ||
config.module.rules.push({ | ||
test: /\.(d.ts)$/, | ||
test: /\.(d.ts)$/, | ||
loader: 'null-loader', | ||
}); | ||
config.module.rules.push({ | ||
test: /\.(map)$/, | ||
test: /\.(map)$/, | ||
loader: 'null-loader', | ||
}); | ||
return config; | ||
}, | ||
}; | ||
} | ||
}; | ||
export default 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,20 @@ | ||
import { getSdkComponentMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map'; | ||
|
||
getSdkComponentMap(); | ||
|
||
|
||
|
||
/** @type { import('@storybook/react').Preview } */ | ||
const preview = { | ||
parameters: { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/i | ||
} | ||
} | ||
} | ||
}; | ||
|
||
export default preview; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.