-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What's changed * fix: switch to storybook config from visyn_scripts (#127) * test: add data-testid to proxy view iframe (#128) * Add possibility to specify which vis types to show in the sidebar (#129) * Use correct workflow branches (#133)
- Loading branch information
Showing
6 changed files
with
17 additions
and
52 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
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,41 +1 @@ | ||
const path = require('path'); | ||
module.exports = { | ||
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
'@storybook/preset-scss', | ||
'storybook-addon-swc', | ||
'@storybook/addon-mdx-gfm', | ||
], | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
options: {}, | ||
}, | ||
webpackFinal: async (config) => { | ||
// TODO:: Setting minimize here because storybook fails on prod otherwise. Specifically, we get arquero errors along the lines of "Invalid variable reference: "a"". | ||
// This same problem does not occur on our prod builds, only for this storybook webpack compiler | ||
config.optimization.minimize = false; | ||
// This is required to enable TS moduleResolution: node16, as there we have to add .js extensions which are actually .ts files. | ||
(config.resolve.extensionAlias = { | ||
...(config.resolve.extensionAlias || {}), | ||
'.js': ['.tsx', '.ts', '.js'], | ||
'.cjs': ['.cts', '.cjs'], | ||
'.mjs': ['.mts', '.mjs'], | ||
}), | ||
(config.resolve.alias = { | ||
...(config.resolve.alias || {}), | ||
// I have no clue why this is required, but if this is missing we get a "Can't resolve '../../assets/icons/datavisyn_logo.svg' in '.../src/scss'"" | ||
'../../assets': path.resolve(__dirname, '../src/assets'), | ||
// Add visyn_core/dist as alias, as we have scss/code imports like visyn_core/dist/assets/... | ||
'visyn_core/dist': path.resolve(__dirname, '../src'), | ||
'visyn_core/src': path.resolve(__dirname, '../src'), | ||
visyn_core: path.resolve(__dirname, '../src'), | ||
}); | ||
return config; | ||
}, | ||
docs: { | ||
autodocs: true, | ||
}, | ||
}; | ||
module.exports = require('visyn_scripts/config/storybook.main.template')({ name: 'visyn_core', dirname: __dirname }); |
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,7 +1,7 @@ | ||
{ | ||
"name": "visyn_core", | ||
"description": "Core repository for datavisyn applications.", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"author": { | ||
"name": "datavisyn GmbH", | ||
"email": "[email protected]", | ||
|
@@ -309,7 +309,7 @@ | |
"react-plotly.js": "^2.5.1", | ||
"react-spring": "^9.7.1", | ||
"use-deep-compare-effect": "^1.8.0", | ||
"visyn_scripts": "^6.0.0" | ||
"visyn_scripts": "^7.0.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.17.7", | ||
|
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