-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Isaac Mann
committed
Aug 16, 2019
1 parent
9893fc1
commit 858ba16
Showing
9 changed files
with
46 additions
and
6 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
1 change: 1 addition & 0 deletions
1
packages/storybook/src/schematics/configuration/lib-files/.storybook/addons.js__tmpl__
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 @@ | ||
import '<%= offsetFromRoot %>../.storybook/addons'; |
8 changes: 8 additions & 0 deletions
8
packages/storybook/src/schematics/configuration/lib-files/.storybook/config.js__tmpl__
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 '<%= offsetFromRoot %>../.storybook/config'; | ||
|
||
function loadStories() { | ||
const req = require.context('../src/lib', true, /\.stories\.ts$/); | ||
req.keys().forEach(filename => req(filename)); | ||
} | ||
|
||
configure(loadStories, module); |
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
...ges/storybook/src/schematics/configuration/lib-files/.storybook/webpack.config.js__tmpl__
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,6 @@ | ||
const rootWebpackConfig = require('<%= offsetFromRoot %>../.storybook/webpack.config'); | ||
// Export a function. Accept the base config as the only param. | ||
module.exports = async ({ config, mode }) => { | ||
config = await rootWebpackConfig({ config, mode }); | ||
return config; | ||
}; |
File renamed without changes.
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
5 changes: 5 additions & 0 deletions
5
packages/storybook/src/schematics/configuration/root-files/.storybook/tsconfig.json
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,5 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"exclude": ["../**/test.ts", "../**/*.spec.ts"], | ||
"include": ["../**/*"] | ||
} |
File renamed without changes.