Skip to content

Commit

Permalink
Temporary.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Oct 20, 2023
1 parent 19d3df8 commit ca8ed78
Show file tree
Hide file tree
Showing 98 changed files with 19,433 additions and 39,503 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ jobs:
- name: Install Dependencies
run: npm i

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run Tests
run: npm run test:coverage
run: npm run test:ci

- name: Run Build
run: npm run build
Expand Down
54 changes: 7 additions & 47 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,60 +1,20 @@
const path = require('path');

const appRoot = path.resolve(__dirname, '..');

function root() {
const newArgs = Array.prototype.slice.call(arguments, 0);

return path.join.apply(path, [appRoot].concat(newArgs));
}

const plugins = {
// https://github.com/dividab/tsconfig-paths-webpack-plugin
TsconfigPathsPlugin: require('tsconfig-paths-webpack-plugin')
};

module.exports = {
stories: [
'../src/**/*.stories.mdx',
'../src/**/*.stories.@(js|jsx|ts|tsx)'
],

addons: [
'@storybook/addon-links',
'@storybook/addon-essentials'
],
core: {
builder: 'webpack5'
},
framework: '@storybook/react',
webpackFinal: async (config) => {
// https://github.com/storybookjs/storybook/issues/12019
config.module.rules[0].use[0].options.plugins = [
['@babel/proposal-class-properties', { 'loose': true }]
];

config.module.rules.push({
test: /\.scss$/,
use: [{
loader: 'style-loader',
}, {
loader: 'css-loader',
}, {
loader: 'sass-loader',
options: {
sourceMap: true,
},
}],
});

config.resolve.modules.push(root('src'));
config.resolve.modules.push(root('src', 'style'));

config.resolve.plugins = [
new plugins.TsconfigPathsPlugin({
configFile: root('tsconfig.json')
}),
];
framework: {
name: '@storybook/react-vite',
options: {}
},

return config;
docs: {
autodocs: true
}
}
20 changes: 0 additions & 20 deletions config/karma-test-shim.js

This file was deleted.

57 changes: 0 additions & 57 deletions config/karma.conf.js

This file was deleted.

90 changes: 0 additions & 90 deletions config/karma.coverage.conf.js

This file was deleted.

Loading

0 comments on commit ca8ed78

Please sign in to comment.