forked from vinothpandian/react-sketch-canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade dependencies & update folder structure
- Loading branch information
1 parent
a7c917c
commit 2522238
Showing
34 changed files
with
2,423 additions
and
3,750 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
module.exports = { | ||
stories: [], | ||
addons: ['@storybook/addon-knobs/register'], | ||
addons: ['@storybook/addon-essentials'], | ||
// uncomment the property below if you want to apply some webpack config globally | ||
// webpackFinal: async (config, { configType }) => { | ||
// // Make whatever fine-grained changes you need that should apply to all storybook configs | ||
|
||
// // Return the altered config | ||
// return config; | ||
// }, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
const { getJestProjects } = require('@nrwl/jest'); | ||
|
||
module.exports = { | ||
projects: [, '<rootDir>/libs/react-sketch-canvas'], | ||
projects: getJestProjects(), | ||
}; |
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,12 +1,22 @@ | ||
const rootMain = require('../../../.storybook/main'); | ||
|
||
rootMain.addons.push(...['@storybook/addon-docs', '@storybook/preset-scss']); | ||
module.exports = { | ||
...rootMain, | ||
|
||
rootMain.stories.push( | ||
...[ | ||
'../src/stories/**/*.stories.mdx', | ||
'../src/stories/**/*.stories.@(js|jsx|ts|tsx)', | ||
] | ||
); | ||
stories: [ | ||
...rootMain.stories, | ||
'../src/stories/*.stories.mdx', | ||
'../src/stories/*.stories.@(js|jsx|ts|tsx)', | ||
], | ||
addons: [...rootMain.addons, '@nrwl/react/plugins/storybook'], | ||
webpackFinal: async (config, { configType }) => { | ||
// apply any global webpack configs that might have been specified in .storybook/main.js | ||
if (rootMain.webpackFinal) { | ||
config = await rootMain.webpackFinal(config, { configType }); | ||
} | ||
|
||
module.exports = rootMain; | ||
// add your own webpack tweaks if needed | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
import { withKnobs } from '@storybook/addon-knobs'; | ||
import { addDecorator, addParameters } from '@storybook/react'; | ||
|
||
addDecorator(withKnobs); | ||
import { addParameters } from '@storybook/react'; | ||
|
||
addParameters({ | ||
layout: 'centered', | ||
viewMode: 'docs', | ||
controls: { | ||
matchers: { | ||
color: /(color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
docs: { | ||
source: { | ||
type: 'code', | ||
}, | ||
}, | ||
}); |
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 was deleted.
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
Oops, something went wrong.