mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 15:35:22 +02:00
rollback storybook change due to babel issue
This commit is contained in:
parent
06b861aea7
commit
a42b1126a2
6 changed files with 1 additions and 95 deletions
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"presets": [
|
||||
"@babel/preset-typescript",
|
||||
"@babel/preset-env",
|
||||
[
|
||||
"@nrwl/react/babel",
|
||||
{
|
||||
"runtime": "automatic",
|
||||
"useBuiltIns": "usage"
|
||||
}
|
||||
]
|
||||
],
|
||||
"plugins": []
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
const rootMain = require('../../../.storybook/main')
|
||||
|
||||
module.exports = {
|
||||
...rootMain,
|
||||
core: { ...rootMain.core, builder: 'webpack5' },
|
||||
stories: ['../**/*.stories.@(js|jsx|ts|tsx)'],
|
||||
addons: [...rootMain.addons, '@nrwl/react/plugins/storybook'],
|
||||
webpackFinal: async (config, { configType }) => {
|
||||
// apply any global webpack configs that might have been specified in .storybook/main.js
|
||||
if (rootMain.webpackFinal) {
|
||||
config = await rootMain.webpackFinal(config, { configType })
|
||||
}
|
||||
|
||||
// add your own webpack tweaks if needed
|
||||
|
||||
return config
|
||||
},
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {},
|
||||
"include": ["**/*.ts", "**/*.tsx", "**/**/*.ts", "**/**/*.tsx"]
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
import type { Story, Meta } from '@storybook/react'
|
||||
import Maintenance from './Maintenance.tsx'
|
||||
import React from 'react'
|
||||
|
||||
export default {
|
||||
title: 'components/Maintenance.tsx',
|
||||
component: Maintenance,
|
||||
} as Meta
|
||||
|
||||
const Template: Story = () => {
|
||||
return (
|
||||
<>
|
||||
<Maintenance />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export const Base = Template.bind({})
|
|
@ -27,17 +27,5 @@
|
|||
"next-env.d.ts",
|
||||
".next/types/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"jest.config.ts",
|
||||
"**/*.stories.ts",
|
||||
"**/*.stories.js",
|
||||
"**/*.stories.jsx",
|
||||
"**/*.stories.tsx"
|
||||
],
|
||||
"references": [
|
||||
{
|
||||
"path": "./.storybook/tsconfig.json"
|
||||
}
|
||||
]
|
||||
"exclude": ["node_modules", "jest.config.ts"]
|
||||
}
|
||||
|
|
|
@ -66,33 +66,6 @@
|
|||
"options": {
|
||||
"command": "node tools/scripts/triggerClientDeploy.js"
|
||||
}
|
||||
},
|
||||
"storybook": {
|
||||
"executor": "@nrwl/storybook:storybook",
|
||||
"options": {
|
||||
"uiFramework": "@storybook/react",
|
||||
"port": 4400,
|
||||
"configDir": "apps/client/.storybook"
|
||||
},
|
||||
"configurations": {
|
||||
"ci": {
|
||||
"quiet": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"build-storybook": {
|
||||
"executor": "@nrwl/storybook:build",
|
||||
"outputs": ["{options.outputDir}"],
|
||||
"options": {
|
||||
"uiFramework": "@storybook/react",
|
||||
"outputDir": "dist/storybook/client",
|
||||
"configDir": "apps/client/.storybook"
|
||||
},
|
||||
"configurations": {
|
||||
"ci": {
|
||||
"quiet": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": ["scope:app"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue