-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.0' into feature/fix-categorytile-item-is-not-…
…defined
- Loading branch information
Showing
63 changed files
with
34,551 additions
and
26,478 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { configure } from '@storybook/react'; | ||
|
||
function loadStories() { | ||
const context = require.context('../src', true, /__stories__\/.+\.js$/); | ||
context.keys().forEach(context); | ||
} | ||
|
||
configure(loadStories, module); |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
const path = require('path'); | ||
|
||
const configureBabel = require('../babel.config.js'); | ||
const babelOptions = configureBabel('development'); | ||
console.log(babelOptions); | ||
|
||
const base_config = require('./webpack.config.js'); | ||
|
||
const themePaths = { | ||
src: path.resolve(__dirname, '../src'), | ||
assets: path.resolve(__dirname, '../web'), | ||
output: path.resolve(__dirname, '../web/js'), | ||
node: path.resolve(__dirname, '../../../') | ||
}; | ||
|
||
console.log(themePaths.node); | ||
|
||
const testPath = path.resolve('../'); | ||
|
||
module.exports = (storybookBaseConfig, configType) => { | ||
storybookBaseConfig.module.rules.push({ | ||
include: [themePaths.src], | ||
test: /\.js$/, | ||
use: [ | ||
{ | ||
loader: 'babel-loader', | ||
options: { ...babelOptions, cacheDirectory: true } | ||
} | ||
] | ||
}); | ||
|
||
storybookBaseConfig.module.rules.push({ | ||
test: /\.css$/, | ||
use: [ | ||
'style-loader', | ||
{ | ||
loader: 'css-loader', | ||
options: { | ||
importLoaders: 1, | ||
localIdentName: '[name]-[local]-[hash:base64:3]', | ||
modules: true | ||
} | ||
} | ||
] | ||
}); | ||
|
||
storybookBaseConfig.module.rules.push({ | ||
test: /\.(jpg|svg)$/, | ||
use: [ | ||
{ | ||
loader: 'file-loader', | ||
options: {} | ||
} | ||
] | ||
}); | ||
|
||
storybookBaseConfig.resolve.alias = { | ||
src: themePaths.src | ||
}; | ||
storybookBaseConfig.resolve.modules = ['node_modules']; | ||
|
||
return storybookBaseConfig; | ||
}; |
Oops, something went wrong.