[/][s]: replace nx with nrwl packages for storybook

This commit is contained in:
Ola Rubaj 2023-08-08 18:27:00 +02:00
parent aca5b88bdb
commit f8851f12d9
4 changed files with 3110 additions and 575 deletions

3670
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,8 @@
{
"name": "portaljs",
"workspaces": ["./packages/*"],
"workspaces": [
"./packages/*"
],
"version": "0.0.0",
"license": "MIT",
"scripts": {
@ -18,11 +20,12 @@
"@nrwl/js": "15.9.2",
"@nrwl/linter": "15.9.2",
"@nrwl/next": "15.9.2",
"@nrwl/react": "15.9.2",
"@nrwl/react": "^15.9.2",
"@nrwl/rollup": "15.9.2",
"@nrwl/storybook": "15.9.2",
"@nrwl/webpack": "15.9.2",
"@nrwl/workspace": "15.9.2",
"@nx/js": "16.6.0",
"@nx/storybook": "16.6.0",
"@rollup/plugin-url": "^7.0.0",
"@storybook/addon-essentials": "7.0.18",
"@storybook/addon-interactions": "7.0.18",

View File

@ -5,7 +5,7 @@ const config: StorybookConfig = {
addons: [
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@nx/react/plugins/storybook',
'@nrwl/react/plugins/storybook',
],
framework: {
name: '@storybook/react-webpack5',

View File

@ -36,7 +36,7 @@
}
},
"storybook": {
"executor": "@nx/storybook:storybook",
"executor": "@nrwl/storybook:storybook",
"options": {
"port": 4400,
"configDir": "packages/core/.storybook"
@ -48,7 +48,7 @@
}
},
"build-storybook": {
"executor": "@nx/storybook:build",
"executor": "@nrwl/storybook:build",
"outputs": ["{options.outputDir}"],
"options": {
"outputDir": "dist/storybook/core",