-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: createTestUiLib takes a libName argument
- Loading branch information
Isaac Mann
committed
Aug 16, 2019
1 parent
f98111b
commit 9893fc1
Showing
10 changed files
with
107 additions
and
29 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
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
62 changes: 62 additions & 0 deletions
62
packages/storybook/src/schematics/configuration/files/.storybook/webpack.config.js
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,62 @@ | ||
// Export a function. Accept the base config as the only param. | ||
module.exports = async ({ config, mode }) => { | ||
// `mode` has a value of 'DEVELOPMENT' or 'PRODUCTION' | ||
// You can change the configuration based on that. | ||
// 'PRODUCTION' is used when building the static version of storybook. | ||
|
||
r = config.module.rules.filter(rule => rule.test != '/\\.s(c|a)ss$/'); | ||
|
||
// Make whatever fine-grained changes you need | ||
r.push({ | ||
test: /\.scss$/, | ||
// test: /\.s(c|a)ss$/, | ||
use: [ | ||
'to-string-loader', | ||
{ | ||
loader: 'style-loader', | ||
options: { | ||
sourceMap: true | ||
} | ||
}, | ||
{ | ||
loader: 'css-loader', | ||
options: { | ||
sourceMap: true | ||
} | ||
}, | ||
{ | ||
loader: 'sass-loader', | ||
options: { | ||
sourceMap: true | ||
} | ||
} | ||
] | ||
}); | ||
|
||
r = r.filter(rule => rule.test != '/\\.css$/'); | ||
|
||
// Make whatever fine-grained changes you need | ||
r.push({ | ||
test: /\.css$/, | ||
use: [ | ||
'to-string-loader', | ||
{ | ||
loader: 'style-loader', | ||
options: { | ||
sourceMap: true | ||
} | ||
}, | ||
{ | ||
loader: 'css-loader', | ||
options: { | ||
sourceMap: true | ||
} | ||
} | ||
] | ||
}); | ||
|
||
config.module.rules = r; | ||
|
||
// Return the altered config | ||
return config; | ||
}; |
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,4 +1,5 @@ | ||
export const storybookAngularVersion = '5.1.11'; | ||
export const storybookAddonKnobsVersion = '5.1.11'; | ||
export const storybookAddonKnobsTypesVersion = '5.0.3'; | ||
export const babelCoreVersion = '7.5.4'; | ||
export const babelLoaderVersion = '8.0.6'; |