-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from saurabhnemade/storybook-migration
Storybook migration
- Loading branch information
Showing
35 changed files
with
17,545 additions
and
596 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,9 @@ | ||
{ | ||
"presets": ["react-app","env"], | ||
"plugins": ["transform-class-properties"] | ||
"presets": [ | ||
["env", { | ||
"modules": false | ||
}], | ||
"stage-0", | ||
"react" | ||
] | ||
} |
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 @@ | ||
component_depth: 1 | ||
languages: | ||
- javascript | ||
exclude: | ||
- /rollup.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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,30 +1,23 @@ | ||
{ | ||
"extends": "airbnb", | ||
"parser": "babel-eslint", | ||
"globals": { | ||
"window": true | ||
"extends": [ | ||
"standard", | ||
"standard-react" | ||
], | ||
"env": { | ||
"es6": true | ||
}, | ||
"rules": { | ||
# We use _ to define private variables and methods in clases | ||
"no-underscore-dangle": 0, | ||
# This seems to be buggy we don't want eslint to check this | ||
"import/no-extraneous-dependencies": 0, | ||
# This is a depricated rule. So we turned off it. | ||
"react/require-extension": 0, | ||
# We can write JSX in anyfile we want. | ||
"react/jsx-filename-extension": 0, | ||
# We don't like this rule. | ||
"arrow-body-style": 0, | ||
# We don't like this rule. We write arrow functions only when we needed. | ||
"prefer-arrow-callback": 0, | ||
# We don't need to write function names always. | ||
"func-names": 0, | ||
# propTypes can be object | ||
"react/forbid-prop-types": 0, | ||
# allow stateles function | ||
"react/prefer-stateless-function": 0, | ||
"react/no-string-refs": 0, | ||
"no-prototype-builtins": 0, | ||
"no-console": 0 | ||
"plugins": [ | ||
"react" | ||
], | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
// don't force es6 functions to include space before paren | ||
"space-before-function-paren": 0, | ||
|
||
// allow specifying true explicitly for boolean props | ||
"react/jsx-boolean-value": 0 | ||
} | ||
} |
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,5 +1,23 @@ | ||
|
||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules | ||
*.log | ||
.idea | ||
|
||
# builds | ||
build | ||
dist | ||
package-lock.json | ||
storybook-static | ||
.rpt2_cache | ||
|
||
# misc | ||
.DS_Store | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import '@storybook/addon-options/register'; | ||
import '@storybook/addon-actions/register'; | ||
import '@storybook/addon-links/register'; |
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,19 +1,15 @@ | ||
// IMPORTANT | ||
// --------- | ||
// This is an auto generated file with React CDK. | ||
// Do not modify this file. | ||
|
||
import { configure } from '@kadira/storybook'; | ||
import { setDefaults } from '@storybook/addon-info'; | ||
|
||
setDefaults({ | ||
import { addDecorator, configure } from '@storybook/react'; | ||
import { setOptions } from '@storybook/addon-options'; | ||
|
||
setOptions({ | ||
name: 'React Twitter Embed', | ||
url: '#', | ||
showStoriesPanel: true, | ||
showAddonPanel: true, | ||
header: false, // Toggles display of header with component name and description | ||
inline: false, // Displays info inline vs click button to view | ||
source: true, | ||
}); | ||
|
||
function loadStories() { | ||
require('../src/stories'); | ||
} | ||
configure(() => require('../src/stories'), module); | ||
|
||
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,29 @@ | ||
language: node_js | ||
node_js: | ||
- 8 | ||
|
||
after_success: | ||
- npm install -g rollup | ||
- npm install | ||
- npm run build-storybook | ||
|
||
deploy: | ||
- provider: npm | ||
email: $NPM_EMAIL | ||
api_key: $NPM_TOKEN | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
- provider: pages | ||
skip_cleanup: true | ||
github_token: $GH_TOKEN | ||
local_dir: storybook-static | ||
on: | ||
branch: master | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: always | ||
on_failure: always |
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
Oops, something went wrong.