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

Update to latest #1

Merged
merged 4,850 commits into from
May 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4850 commits
Select commit Hold shift + click to select a range
f9069d8
Added a11y addon to the CRA TS example
CodeByAlex Apr 26, 2019
53cc440
Added a11y addon to the HTML example
CodeByAlex Apr 26, 2019
b4b1b52
Added the a11y addon to the Marko example
CodeByAlex Apr 26, 2019
01278b7
Added the a11y addon to the Mithril example
CodeByAlex Apr 26, 2019
f37a6f0
Added the a11y addon to the Polymer example
CodeByAlex Apr 26, 2019
6a433f2
Added the a11y addon to the Preact example
CodeByAlex Apr 26, 2019
646b5e8
Added the a11y addon to the Riot example
CodeByAlex Apr 26, 2019
eefa820
Added the a11y addon to the Svelte example
CodeByAlex Apr 26, 2019
b1e23d6
Added the a11y addon to the Vue example
CodeByAlex Apr 26, 2019
8e0d4b2
updated the addon support documentation
CodeByAlex Apr 26, 2019
9470a6d
REFACTOR lib/theming to make creating themes work for react15
ndelangen Apr 26, 2019
9ec6265
REFACTOR lib/router to make creating themes work for react15
ndelangen Apr 26, 2019
1c12e8c
REFACTOR addon/links to make creating themes work for react15
ndelangen Apr 26, 2019
532d8cc
CHANGE config to make creating themes work for react15 example
ndelangen Apr 26, 2019
a95991d
CHANGE documentation for theming to ensure react15 compat
ndelangen Apr 26, 2019
cc78f01
[Snyk] Fix for 1 vulnerable dependencies (#6647)
ndelangen Apr 26, 2019
55d3878
Fix issue with sb init for projects with frozen lock files (#6629)
ndelangen Apr 26, 2019
a39db64
Fix 'Storybook for HTML' Edit link
mickaelzhang Apr 26, 2019
160ff9d
ADD addon-contexts: Preact support
Apr 27, 2019
8d19245
Added the a11y addon to the Ember example and added ember to the list…
CodeByAlex Apr 27, 2019
9a9cedc
Merge branch 'next' into enhancement/add-support-for-a11y
CodeByAlex Apr 27, 2019
79f9c41
FIX addon-contexts: resolve [email protected] polluted JSX typing
Apr 27, 2019
524076c
updated vue package json to use version 35 of a11y
CodeByAlex Apr 27, 2019
052a389
ADD addon-contexts: preact-kitchen-sink testing snapshot
Apr 27, 2019
01a3bd2
UPDATE addon-contexts: redirect user to the framework support table
Apr 27, 2019
1ae1e5e
FIX addon-contexts: correct code comment for Preact integration
Apr 27, 2019
cc7f44c
Merge pull request #6660 from storybooks/add/addon-contexts/preact-su…
leoyli Apr 27, 2019
dff2e02
Fix "Storybook for HTML" Edit link (#6658)
shilman Apr 27, 2019
4f4e2db
5.1.0-alpha.36 changelog
shilman Apr 27, 2019
dd97c37
v5.1.0-alpha.36
shilman Apr 27, 2019
d897533
Update version.ts
shilman Apr 27, 2019
2b38f0b
5.1.0-alpha.36 next.json version file
shilman Apr 27, 2019
8e26189
Merge pull request #2 from storybooks/next
MaximSagan Apr 27, 2019
fbcfdb9
Merge branch 'next' into tech/example-for-cra15-support
ndelangen Apr 27, 2019
21e4997
"Avoid component redeclaration" re-implementation
MaximSagan Apr 27, 2019
f09fa53
FIX tests
ndelangen Apr 27, 2019
086370b
Remove no longer necessessary flag from types file
MaximSagan Apr 27, 2019
d0066cf
FIX now building for this new example
ndelangen Apr 27, 2019
569b553
Upgrade to core-js v3
armandabric Apr 26, 2019
bc6f900
Upgrade core-js imports
armandabric Apr 26, 2019
ecc0760
corejs 3 for lib/cli
ndelangen Apr 27, 2019
8555198
UPGRADES
ndelangen Apr 27, 2019
7c2ebbc
REMOVE the core-js alias, though multiple core-js instances would be …
ndelangen Apr 27, 2019
b3c2b64
FIX a build error by aliassing old core-js paths
ndelangen Apr 27, 2019
045f83f
fix dll creation
ndelangen Apr 27, 2019
0c256c0
5.0.11 latest.json version file
shilman Apr 28, 2019
ed5261f
5.0.11 changelog
shilman Apr 28, 2019
b37efa9
Merge pull request #6466 from fugroup/patch-3
shilman Apr 9, 2019
cb83e7a
Merge pull request #6463 from vivcogit/patch-3
shilman Apr 9, 2019
dd49713
Merge pull request #6499 from coryhouse/patch-3
shilman Apr 13, 2019
dd681a0
Merge pull request #6514 from taylonr/patch-5
shilman Apr 15, 2019
60350cf
Update index.md (#6513)
ndelangen Apr 26, 2019
8926e57
docs: clarify sb init usage (#6667)
shilman Apr 28, 2019
9b7a5ec
UPDATE addon-contexts: strict nullable typing
Apr 28, 2019
17a6a27
FIX addon-contexts: have no cancel option in UI if the context have n…
Apr 28, 2019
733f6d7
MaximSagan <3 angular
shilman Apr 28, 2019
495a627
FIX addon-contexts: avoid use Array.flat() ESNext feature
Apr 28, 2019
8361cb6
Merge pull request #6669 from storybooks/bugfix/addon-contexts/UI-bug
leoyli Apr 29, 2019
9aaf18a
updated npm broken link issue #6556
rajatrao777 Apr 29, 2019
d839ba0
updated npm broken link issue documentation #6556 (#6672)
shilman Apr 29, 2019
917b118
updated broken link images for npm
rajatrao777 Apr 29, 2019
8707ba4
updated broken link images for npm in readme file (#6673)
shilman Apr 29, 2019
ce442d9
Extract, rewrite and test the core-js auto upgrade webpack plugin
armandabric Apr 29, 2019
6b19049
Fix wrong core-js upgrade path
armandabric Apr 29, 2019
84df05a
Bump react-redux from 7.0.2 to 7.0.3
dependabot-support Apr 30, 2019
0594361
Bump @babel/plugin-proposal-class-properties from 7.4.0 to 7.4.4
dependabot-support Apr 30, 2019
dd36070
Fix regression with deep linking
Apr 30, 2019
a1511ab
Fix regression with deep linking (#6688)
shilman Apr 30, 2019
4c9b211
Use `http-server` instead of `serve` in example
Hypnosphi Apr 30, 2019
d143131
Move option for using dev dependencies to npmOptions in initiate.js
Apr 30, 2019
088c64c
Remove use of '-D' that I missed
May 1, 2019
12cbc18
fix: Preserve dimensions on resizing for panel
kohakukun May 1, 2019
fc64a6e
Add svelte v3 support
May 1, 2019
f5202ab
Use `http-server` instead of `serve` in the example (#6692)
shilman May 1, 2019
ad04e79
Update how we install dev dependencies in cli (#6695)
shilman May 1, 2019
dd10e58
5.1.0-alpha.37 changelog
shilman May 1, 2019
ccc1d42
v5.1.0-alpha.37
shilman May 1, 2019
554901f
Update version.ts
shilman May 1, 2019
7548eae
5.1.0-alpha.37 next.json version file
shilman May 1, 2019
1008003
Merge with next
benoitdion May 1, 2019
10773ea
Revert "timer in descendant to validate they continue updating when C…
benoitdion May 1, 2019
44156f5
rm usage of onStory
benoitdion May 1, 2019
44a538f
Merge branch 'next' into react-native/emotion
benoitdion May 1, 2019
49c23c4
Merge branch 'next' into ondevice-actions
benoitdion May 1, 2019
82a7c84
Merge pull request #6412 from storybooks/react-native/server-rerenders
benoitdion May 1, 2019
2d947be
update version to .37
benoitdion May 1, 2019
b666591
Update test snapshots and svelte-transform
May 1, 2019
dfc0772
Merge pull request #6603 from storybooks/react-native/emotion
benoitdion May 1, 2019
d7571c1
Merge branch 'next' into pr/6594
benoitdion May 1, 2019
3990ba7
fix lint error
benoitdion May 2, 2019
c726632
Merge pull request #6594 from ForbesLindesay/ondevice-actions
benoitdion May 2, 2019
e38b4e9
5.1.0-alpha.38 changelog
shilman May 2, 2019
a718441
v5.1.0-alpha.38
shilman May 2, 2019
208ff48
5.1.0-alpha.39 changelog
shilman May 2, 2019
d2039e0
v5.1.0-alpha.39
shilman May 2, 2019
c7d27ce
5.1.0-alpha.39 next.json version file
shilman May 2, 2019
2416fae
Update version.ts
shilman May 2, 2019
47bd93c
Merge pull request #6684 from storybooks/dependabot/npm_and_yarn/reac…
benoitdion May 2, 2019
fabdaa0
Remove teamcity CLI tests
benoitdion May 2, 2019
11d9a10
Remove teamcity CLI tests (#6707)
shilman May 2, 2019
d0dd513
Bump react-dev-utils from 8.0.0 to 9.0.0
dependabot-support May 2, 2019
fca90ec
Merge branch 'next' into enhancement/add-support-for-a11y
CodeByAlex May 3, 2019
93f2478
adding yarn lock
CodeByAlex May 3, 2019
4bda69a
fixed linting errors
CodeByAlex May 3, 2019
f4fa9c2
Merge pull request #6661 from CodeByAlex/enhancement/add-support-for-…
CodeByAlex May 4, 2019
704fac7
Bump codelyzer from 5.0.0 to 5.0.1
dependabot-support May 5, 2019
05c6a51
Bump @types/react from 16.8.14 to 16.8.16
dependabot-support May 5, 2019
87fd9b9
#6475 add "CRA REACT15" build
Hypnosphi May 5, 2019
1b2ffe3
Merge branch 'next' into tech/example-for-cra15-support
Hypnosphi May 5, 2019
1e72338
Allow browsing to a kind and get the first story
May 6, 2019
7ad8699
Allow browsing to a kind and get the first story (#6720)
shilman May 6, 2019
5128f12
Merge pull request #6666 from MaximSagan/angular/avoid-component-rede…
shilman May 6, 2019
933ccd1
Bump @types/react from 16.8.14 to 16.8.16 (#6717)
ndelangen May 6, 2019
57e8528
fix: Preserve dimensions on resizing for panel (#6696)
ndelangen May 6, 2019
a2f9242
Merge branch 'next' into pr/Spy-Seth/6655
ndelangen May 6, 2019
a5046e2
FIX things for riot && FIX snapshots && FIX lockfile && FIX babel ove…
ndelangen May 6, 2019
dca6eac
FIX preview helmet reference
ndelangen May 6, 2019
1c39e39
FIX core-js upgrade in tests
ndelangen May 6, 2019
152d836
Merge branch 'next' into pr/cam-stitt/6698
ndelangen May 6, 2019
9a99fe1
FIX stories for svelte
ndelangen May 6, 2019
aa153bc
FIX tests & make stuff render in storybook
ndelangen May 6, 2019
e9401d2
FIX wrapper not always being defined
ndelangen May 6, 2019
278ead8
Merge branch 'next' into pr/konstantindenerz/6215
ndelangen May 6, 2019
5225324
Merge branch 'next' into tech/example-for-cra15-support
ndelangen May 6, 2019
06386b3
FIX build example in official storybook
ndelangen May 6, 2019
70a10cd
Merge pull request #6215 from konstantindenerz/next
ndelangen May 6, 2019
13a4523
CHANGE visibility component of router to not use theming package
ndelangen May 6, 2019
93d3759
FIX versions
ndelangen May 6, 2019
1db8d22
FIX lockfile
ndelangen May 6, 2019
0bf7b8a
Bump codelyzer from 5.0.0 to 5.0.1 (#6687)
ndelangen May 7, 2019
21fab08
Bump react-dev-utils from 8.0.0 to 9.0.0 (#6682)
ndelangen May 7, 2019
0aa590f
Merge branch 'next' into tech/example-for-cra15-support
ndelangen May 7, 2019
4a261ec
Bump raw-loader from 1.0.0 to 2.0.0
dependabot-support May 7, 2019
724e011
Merge branch 'next' into tech/example-for-cra15-support
ndelangen May 7, 2019
2d3e6ce
Bump @babel/plugin-proposal-class-properties from 7.4.0 to 7.4.4 (#6686)
ndelangen May 7, 2019
475305f
Bump react-color from 2.17.1 to 2.17.3
dependabot-support May 7, 2019
02683f6
Bump eslint-plugin-react from 7.12.4 to 7.13.0
dependabot-support May 7, 2019
739ae8f
Bump jest-cli from 24.7.1 to 24.8.0
dependabot-support May 7, 2019
3690427
Bump @types/node from 11.13.7 to 12.0.0
dependabot-support May 7, 2019
43db0a9
Bump @babel/preset-env from 7.4.3 to 7.4.4
dependabot-support May 7, 2019
b52a6d4
Bump @types/react-native from 0.57.50 to 0.57.51
dependabot-support May 7, 2019
5e06fa2
Bump polished from 3.2.0 to 3.3.0 in /docs
dependabot-support May 7, 2019
32e01f5
Bump react-color from 2.17.1 to 2.17.3 (#6681)
ndelangen May 7, 2019
47ddc4b
Bump raw-loader from 1.0.0 to 2.0.0 (#6685)
ndelangen May 7, 2019
1105e7a
Bump @babel/preset-env from 7.4.3 to 7.4.4 (#6731)
ndelangen May 7, 2019
e2fff84
Bump jest-cli from 24.7.1 to 24.8.0 (#6729)
ndelangen May 7, 2019
5384952
Bump @types/node from 11.13.7 to 12.0.0 (#6730)
ndelangen May 7, 2019
60ba42a
Bump @types/react-native from 0.57.50 to 0.57.51 (#6732)
ndelangen May 7, 2019
3ae04b4
Merge branch 'next' into tech/example-for-cra15-support
ndelangen May 7, 2019
22e87a7
Merge branch 'next' into tech/example-for-cra15-support
ndelangen May 7, 2019
0b0b835
Merge branch 'next' into dependabot/npm_and_yarn/eslint-plugin-react-…
ndelangen May 7, 2019
590f670
FIX linting
ndelangen May 7, 2019
2ee7293
FIX lockfile
ndelangen May 7, 2019
16281d1
Merge branch 'next' into pr/Spy-Seth/6655
ndelangen May 7, 2019
81ccc19
Bump polished from 3.2.0 to 3.3.0 in /docs (#6733)
ndelangen May 7, 2019
bfc602d
FIX lockfile
ndelangen May 7, 2019
dca1e14
Bump eslint-plugin-react from 7.12.4 to 7.13.0 (#6728)
ndelangen May 7, 2019
d3cbdda
Merge branch 'next' into tech/example-for-cra15-support
ndelangen May 7, 2019
b19e5bc
Add CRA React15 example to test back-compat (#6475)
ndelangen May 7, 2019
106f534
Merge branch 'next' into pr/Spy-Seth/6655
ndelangen May 7, 2019
4064f4e
Merge branch 'next' into pr/Spy-Seth/6655
ndelangen May 7, 2019
939b251
REMOVE console.log
ndelangen May 7, 2019
562ea4c
REGEN lockfile
ndelangen May 7, 2019
decd0ac
REGEN lockfile
ndelangen May 7, 2019
ee49aac
add examples/official-storybook/built-storybooks/ember-cli
ndelangen May 7, 2019
0d6ae4e
FIX lockfile
ndelangen May 7, 2019
3ca95c4
Upgrade to core-js v3 (#6655)
ndelangen May 7, 2019
472f43b
Typo in svelte stories example (non-valid JS)
thollander May 8, 2019
4491540
Fix the edit docs link in svelte guide
thollander May 8, 2019
e96c2d4
Fix the edit docs link in svelte guide (#6746)
shilman May 8, 2019
5f3746f
Typo in svelte stories example (non-valid JS) (#6745)
shilman May 8, 2019
2a851ea
Replace deprecated `loaders` option with `use` (#6718)
shilman May 6, 2019
e851102
Merge pull request #6447 from backbone87/vue-sb5-migration
shilman Apr 7, 2019
d6b0fd6
5.1.0-alpha.40 changelog
shilman May 8, 2019
d4922ad
v5.1.0-alpha.40
shilman May 8, 2019
64b1c98
5.1.0-alpha.40 next.json version file
shilman May 8, 2019
9bff927
Update version.ts
shilman May 8, 2019
02f2628
Fix duplicate key in svelte guide
thollander May 9, 2019
d1d67df
Fix duplicate key in svelte guide (#6750)
shilman May 9, 2019
3da6e46
Upgrade chromatic
shilman May 9, 2019
905928e
Move chromatic to CircleCI
shilman May 9, 2019
fae41d4
Checkout and attach to workspace
shilman May 9, 2019
5cdcd75
Persist examples to workspace
shilman May 9, 2019
6ba9877
Fix indentation
shilman May 9, 2019
a384c7a
Update expo-cli to 2.17.1
benoitdion May 9, 2019
e635c89
Merge pull request #6752 from storybooks/6751-chromatic-to-circle-ci
shilman May 9, 2019
80a9fd6
Add documentation on searching and "notes"
trevordmiller May 9, 2019
2dcb0f6
Fix missing markdown back ticks for code
trevordmiller May 9, 2019
42836f9
Ensure custom babel configs are loaded (#6633)
LukeAskew Apr 25, 2019
60fab07
Add documentation on searching and "notes" (#6755)
shilman May 9, 2019
21b75fa
5.1.0-beta.0 changelog
shilman May 10, 2019
564b117
v5.1.0-beta.0
shilman May 10, 2019
080a27d
5.1.0-beta.0 next.json version file
shilman May 10, 2019
f15ffa1
Update version.ts
shilman May 10, 2019
9d065e7
#6763 set a better value for process in the manager webpack config
libetl May 11, 2019
ca79699
Bump fs-extra from 7.0.1 to 8.0.1
dependabot-support May 14, 2019
2d0b374
Bump update-notifier from 2.5.0 to 3.0.0
dependabot-support May 14, 2019
ca2627b
Bump sitemap from 2.1.0 to 2.2.0 in /docs
dependabot-support May 14, 2019
8ee658c
HTML: support knobs for both cached and uncached nodes
Hypnosphi May 14, 2019
4196f5f
UPGRADE telejson
ndelangen May 14, 2019
348782e
FIX
ndelangen May 14, 2019
a3576cb
FIX snapshots
ndelangen May 14, 2019
3e2c9ee
REGEN lockfile
ndelangen May 14, 2019
6d12435
UPGRADE telejson (#6784)
ndelangen May 14, 2019
9639037
FIX the iframe refreshing
ndelangen May 14, 2019
3584591
CHANGE postmessage channel so it only flushes the buffer after first …
ndelangen May 14, 2019
8fafe00
Bump update-notifier from 2.5.0 to 3.0.0 (#6780)
ndelangen May 14, 2019
20c900d
Bump fs-extra from 7.0.1 to 8.0.1 (#6776)
ndelangen May 14, 2019
d79a030
Bump sitemap from 2.1.0 to 2.2.0 in /docs (#6782)
ndelangen May 14, 2019
4579999
Fix typos and add punctuation marks
vanpacheco May 14, 2019
43e378f
Fix/refresh iframe (#6787)
ndelangen May 15, 2019
47d015c
Fix typos and add punctuation marks (#6789)
ndelangen May 15, 2019
1891e9f
FIX scrolling styling (#6785)
ndelangen May 15, 2019
bd2a6f8
Scrollbar supports theming again
domyen May 16, 2019
fc9a5ca
Update snapshots
domyen May 16, 2019
864de9b
Scrollbar supports theming again (#6794)
shilman May 16, 2019
4352605
5.1.0-beta.1 changelog
shilman May 16, 2019
740e0b6
typo fix in ember setup guide
gokatz May 16, 2019
e14539f
v5.1.0-beta.1
shilman May 16, 2019
87b3d67
typo fix in ember setup guide (#6795)
shilman May 16, 2019
92a0650
5.1.0-beta.1 versions.json
shilman May 16, 2019
9b08d34
Update version.ts
shilman May 16, 2019
0c3c96f
Merge branch 'next' of github.com:storybooks/storybook into next
shilman May 16, 2019
de90d22
Add analytics to docs site
shilman May 16, 2019
6cf2366
ADD engine field to package.json in apps
ndelangen May 17, 2019
3b6e1d0
issue #6763 : set a better value for process in the manager webpack c…
ndelangen May 17, 2019
e9c0c64
ADD engine field to package.json in apps (#6809)
shilman May 17, 2019
9ca4552
fix required engine for app
elevatebart May 17, 2019
6b8e177
uncorrupt yarn lock
elevatebart May 17, 2019
fa11f9c
Merge pull request #6811 from storybooks/fix-docsnotinstalling
elevatebart May 17, 2019
25363d2
Merge branch 'next' into fix-nodeengine
elevatebart May 17, 2019
20dd1ec
fix required engine for app (#6810)
ndelangen May 17, 2019
2678c94
chore: add tsconfig in addons/centered
gaetanmaisse Apr 23, 2019
2ed9238
chore: migrate src of addons/centered to Typescript
gaetanmaisse Apr 23, 2019
1fc343e
refactor: improve typings in `storybook/addon-centered`
gaetanmaisse May 7, 2019
53a6be8
refactor: improve use of `as const` in `styles.ts` in addon-centered
gaetanmaisse May 17, 2019
d1227e2
refactor: fix ESLint errors
gaetanmaisse May 17, 2019
b826fdd
Merge pull request #6772 from gaetanmaisse/ts-migration/addon-centered
gaetanmaisse May 17, 2019
6e0c695
ISS-6802 Check devDep for react-scripts and make sure it exists befor…
May 17, 2019
cb27dc1
HTML: support knobs for both cached and uncached nodes (#6783)
ndelangen May 18, 2019
dc7870d
Merge branch 'next' into pr/LukeAskew/6634
ndelangen May 18, 2019
1b7e75f
ADD necessary babel config to fixtures/react-abel-config-js
ndelangen May 18, 2019
a6a8dd9
UPGRADES
ndelangen May 18, 2019
cab353f
Add the plugins coworkers + me created
hipstersmoothie May 18, 2019
09a4104
no message
ndelangen May 18, 2019
7a6b331
UPGRADES
ndelangen May 18, 2019
60be7d8
UPGRADES (#6820)
ndelangen May 18, 2019
5040a7c
Add the plugins coworkers + me created (#6821)
shilman May 19, 2019
070ed36
ISS-6802 Fix issue with init in create-react-library projects (#6815)
shilman May 19, 2019
a08f44e
Handle loading `.storybook/babel.config.js` (#6633) (#6634)
ndelangen May 20, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
53 changes: 0 additions & 53 deletions .babelrc

This file was deleted.

102 changes: 102 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
const withTests = {
presets: [
[
'@babel/preset-env',
{ shippedProposals: true, useBuiltIns: 'usage', corejs: '3', targets: { node: 'current' } },
],
],
plugins: [
'babel-plugin-require-context-hook',
'babel-plugin-dynamic-import-node',
'@babel/plugin-transform-runtime',
],
};

module.exports = {
presets: [
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }],
'@babel/preset-typescript',
'@babel/preset-react',
'@babel/preset-flow',
],
plugins: [
[
'@babel/plugin-proposal-decorators',
{
legacy: true,
},
],
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }],
'babel-plugin-macros',
['emotion', { sourceMap: true, autoLabel: true }],
],
env: {
test: withTests,
},
overrides: [
{
test: './examples/vue-kitchen-sink',
presets: ['babel-preset-vue'],
env: {
test: withTests,
},
},
{
test: './lib',
presets: [
['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }],
'@babel/preset-react',
],
plugins: [
['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }],
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-class-properties', { loose: true }],
'babel-plugin-macros',
['emotion', { sourceMap: true, autoLabel: true }],
'@babel/plugin-transform-react-constant-elements',
'babel-plugin-add-react-displayname',
],
env: {
test: withTests,
},
},
{
test: [
'./lib/core/src/server',
'./lib/node-logger',
'./lib/codemod',
'./addons/storyshots',
'./addons/storysource/src/loader',
'./app/**/src/server/**',
'./app/**/src/bin/**',
],
presets: [
[
'@babel/preset-env',
{
shippedProposals: true,
useBuiltIns: 'usage',
targets: {
node: '8.11',
},
corejs: '3',
},
],
],
plugins: [
'emotion',
'babel-plugin-macros',
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-export-default-from',
],
env: {
test: withTests,
},
},
],
};
45 changes: 45 additions & 0 deletions .ci/danger/dangerfile.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { fail, danger } from 'danger';
import { execSync } from 'child_process';

execSync('npm install lodash');

const { flatten, intersection, isEmpty } = require('lodash');

const pkg = require('../../package.json'); // eslint-disable-line import/newline-after-import
const prLogConfig = pkg['pr-log'];

const Versions = {
PATCH: 'PATCH',
MINOR: 'MINOR',
MAJOR: 'MAJOR',
};

const branchVersion = Versions.MINOR;

const checkRequiredLabels = labels => {
const forbiddenLabels = flatten([
'do not merge',
'in progress',
branchVersion !== Versions.MAJOR ? 'BREAKING CHANGE' : [],
branchVersion === Versions.PATCH ? 'feature request' : [],
]);

const requiredLabels = flatten([prLogConfig.skipLabels || [], (prLogConfig.validLabels || []).map(keyVal => keyVal[0])]);

const blockingLabels = intersection(forbiddenLabels, labels);
if (!isEmpty(blockingLabels)) {
fail(`PR is marked with ${blockingLabels.map(label => `"${label}"`).join(', ')} label${blockingLabels.length > 1 ? 's' : ''}.`);
}

const foundLabels = intersection(requiredLabels, labels);
if (isEmpty(foundLabels)) {
fail(`PR is not labeled with one of: ${JSON.stringify(requiredLabels)}`);
} else if (foundLabels.length > 1) {
fail(`Please choose only one of these labels: ${JSON.stringify(foundLabels)}`);
}
};

if (prLogConfig) {
const { labels } = danger.github.issue;
checkRequiredLabels(labels.map(l => l.name));
}
84 changes: 79 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ jobs:
- addons
- app
- lib
chromatic:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Run chromatic on the pre-built storybook
command: yarn chromatic -- -d ./storybook-static
examples:
<<: *defaults
steps:
Expand All @@ -54,6 +63,11 @@ jobs:
command: |
cd examples/cra-kitchen-sink
yarn build-storybook
- run:
name: Build react typescript kitchen-sink
command: |
cd examples/cra-ts-kitchen-sink
yarn build-storybook
- run:
name: Build vue kitchen-sink
command: |
Expand Down Expand Up @@ -99,17 +113,35 @@ jobs:
command: |
cd examples/riot-kitchen-sink
yarn build-storybook
- run:
name: Build preact kitchen-sink
command: |
cd examples/preact-kitchen-sink
yarn build-storybook
- run:
name: Build cra react15
command: |
cd examples/cra-react15
yarn build-storybook
- run:
name: Build official-storybook
command: |
cd examples/official-storybook
yarn build-storybook
- run:
name: Run image snapshots
command: yarn test --image
# - run:
# name: Run image snapshots
# command: yarn test --image
- store_artifacts:
path: examples/official-storybook/image-snapshots/__image_snapshots__
destination: official_storybook_image_snapshots
- persist_to_workspace:
root: .
paths:
- node_modules
- examples
- addons
- app
- lib
smoke-tests:
<<: *defaults
steps:
Expand All @@ -121,6 +153,11 @@ jobs:
command: |
cd examples/cra-kitchen-sink
yarn storybook --smoke-test --quiet
- run:
name: Run react typescript kitchen-sink (smoke test)
command: |
cd examples/cra-ts-kitchen-sink
yarn storybook --smoke-test --quiet
- run:
name: Run vue kitchen-sink (smoke test)
command: |
Expand Down Expand Up @@ -166,6 +203,16 @@ jobs:
command: |
cd examples/riot-kitchen-sink
yarn storybook --smoke-test --quiet
- run:
name: Run preact kitchen-sink (smoke test)
command: |
cd examples/preact-kitchen-sink
yarn storybook --smoke-test --quiet
- run:
name: Run cra reac15 (smoke test)
command: |
cd examples/cra-react15
yarn storybook --smoke-test --quiet
native-smoke-tests:
<<: *defaults
steps:
Expand All @@ -174,12 +221,35 @@ jobs:
at: .
- run:
name: Bootstrap
command: yarn bootstrap --reactnativeapp
command: yarn bootstrap --core
- run:
name: Run React-Native-App example
command: |
cd examples-native/crna-kitchen-sink
yarn storybook --smoke-test
- run:
name: Publish React-Native-App example
command: |
./scripts/crna-publish.js
frontpage:
<<: *defaults
steps:
- checkout
- restore_cache:
name: Restore core dependencies cache
keys:
- core-dependencies-v3-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn install
- run:
name: Trigger build
command: ./scripts/build-frontpage.js
- save_cache:
name: Cache core dependencies
key: core-dependencies-v3-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
docs:
<<: *defaults
steps:
Expand Down Expand Up @@ -225,7 +295,7 @@ jobs:
at: .
- run:
name: Test
command: yarn test --coverage --runInBand --core
command: yarn test --coverage --w2 --core
- persist_to_workspace:
root: .
paths:
Expand Down Expand Up @@ -268,6 +338,7 @@ workflows:
jobs:
- build
- docs
- frontpage
- lint:
requires:
- docs
Expand All @@ -293,3 +364,6 @@ workflows:
- cli-test-latest-cra:
requires:
- build
- chromatic:
requires:
- examples
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
dist
lib/**/dll
build
coverage
node_modules
docs/public
storybook-static
built-storybooks
lib/cli/test
scripts/storage
*.bundle.js
*.js.map

Expand All @@ -15,3 +17,8 @@ lib/cli/test
!.eslintrc-markdown.js
!.jest.config.js
!.storybook

REACT_NATIVE
examples-native
react-native
ondevice-*
Loading