-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(website): fix build for Node 20 and update all versions
- Loading branch information
1 parent
418ebc9
commit 3dab09f
Showing
44 changed files
with
38,203 additions
and
23,595 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"packageManager": "yarn", | ||
"files": ["website"] | ||
"packageManager": "npm", | ||
"files": [ | ||
"website" | ||
] | ||
} |
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,5 +1,5 @@ | ||
{ | ||
"commit-msg": "yarn commitlint --edit \"$1\"", | ||
"pre-commit": "yarn nano-staged", | ||
"pre-push": "yarn test" | ||
"commit-msg": "npm run commitlint", | ||
"pre-commit": "npm run nano-staged", | ||
"pre-push": "npm run 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
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,14 +1,43 @@ | ||
const path = require('path'); | ||
const path = require("path"); | ||
|
||
module.exports = { | ||
stories: ['../stories/*.tsx'], | ||
stories: ["../stories/*.tsx"], | ||
|
||
addons: [ | ||
'@storybook/addon-docs', | ||
'@storybook/addon-controls', | ||
'@storybook/addon-actions', | ||
"@storybook/addon-docs", | ||
"@storybook/addon-controls", | ||
"@storybook/addon-actions", | ||
"@storybook/addon-webpack5-compiler-babel", | ||
"@chromatic-com/storybook", | ||
], | ||
|
||
webpackFinal(config) { | ||
config.resolve.alias['react-google-charts'] = path.resolve(__dirname, '../src'); | ||
config.resolve.alias["react-google-charts"] = path.resolve( | ||
__dirname, | ||
"../src" | ||
); | ||
return config; | ||
}, | ||
|
||
framework: { | ||
name: "@storybook/react-webpack5", | ||
options: {}, | ||
}, | ||
|
||
docs: {}, | ||
|
||
typescript: { | ||
reactDocgen: "react-docgen-typescript", | ||
}, | ||
|
||
babel: async (options) => { | ||
return { | ||
...options, | ||
presets: [ | ||
...(options.presets ?? []), | ||
"@babel/preset-react", | ||
"@babel/preset-typescript", | ||
], | ||
}; | ||
}, | ||
}; |
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,8 +1,8 @@ | ||
import { addons } from '@storybook/addons'; | ||
import { addons } from "@storybook/manager-api"; | ||
|
||
import { theme } from './theme'; | ||
import { theme } from "./theme"; | ||
|
||
addons.setConfig({ | ||
theme, | ||
panelPosition: 'right', | ||
panelPosition: "right", | ||
}); |
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,5 +1,6 @@ | ||
import { configureActions } from '@storybook/addon-actions'; | ||
import { configureActions } from "@storybook/addon-actions"; | ||
|
||
configureActions({ | ||
depth: 5, | ||
}); | ||
export const tags = ["autodocs"]; |
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
Oops, something went wrong.