Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: storybook typescript #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add script
sakulstra committed May 20, 2020
commit 1418a5efac0e692269481d5d43e8a13be50a2e05
8 changes: 6 additions & 2 deletions storybook-starter/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
module.exports = {
stories: ['../stories/**/*.stories.(ts|tsx)'],
addons: ['@storybook/addon-actions', '@storybook/addon-links', '@storybook/addon-docs'],
stories: ['../stories/**/*.(ts|tsx)'], // quick fix as i was to lazy to create a rename script
addons: [
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-docs',
],
webpackFinal: async (config) => {
config.module.rules.push({
test: /\.(ts|tsx)$/,
2 changes: 1 addition & 1 deletion storybook-starter/package.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
"node": ">=10"
},
"scripts": {
"codeshift": "",
"codeshift": "jscodeshift -t ./scripts/csf-transform.js --extensions=ts,tsx --parser=tsx ./stories/components/**/*.tsx",
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",