-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Core separate manager from preview #4590
Merged
Merged
Changes from 24 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
dc81f41
Merge branch 'tech/terminal-update-check' into core/separate-manager-…
ndelangen 8c26689
Merge branch 'tech/reapply-html-plugin' into core/separate-manager-fr…
ndelangen ee2c86e
WIP
ndelangen a6ce842
WIP
ndelangen 3861fed
Not sure we actually need this, but in the case of a timeout on the f…
ndelangen d68a106
Merge branch 'master' into core/separate-manager-from-preview
ndelangen d09ff40
FIX versions
ndelangen 0120686
EXTRACT build of manager into it's own process
ndelangen 750831c
FIX broken build-static - now also has manager in child_process
ndelangen e2f6220
REFACTOR
ndelangen def95df
FIX angular && REFACTOR
ndelangen 6fcf4f4
ADD --quiet to not overflow the CI logs
ndelangen 2aad28a
Merge branch 'master' into core/separate-manager-from-preview
ndelangen f16b2b6
FIX snapshots
ndelangen 5a64f33
WIP
ndelangen 0477097
FIX outputDir
ndelangen baed105
REFACTOR
ndelangen 27f096d
FIX attempt
ndelangen 3a0f9c9
Fix paths to the renamed presets
igor-dv 76a8660
Remove unneeded extensions from the manager-preset.js
igor-dv 78dd706
Extract manager-config out to the manager dir + use custom-presets in…
igor-dv d20e8c6
Fox performance.hints issue
igor-dv a0a2bdf
babel-preset-minify is a preset, not a plugin =)
igor-dv c962d90
Fix warning in angular.
igor-dv d53e597
Temp fix for RIOT
igor-dv 042d3bb
Merge remote-tracking branch 'origin/master' into core/separate-manag…
igor-dv 0e01e76
Remove the unneeded comment
igor-dv 73834fc
Merge remote-tracking branch 'origin/master' into core/separate-manag…
igor-dv 825719a
Merge remote-tracking branch 'origin/next' into core/separate-manager…
igor-dv 611a846
Merge remote-tracking branch 'origin/next' into core/separate-manager…
igor-dv 1767405
Remove "quiet" from RN smoke tests - quiet is not supported there
igor-dv 4d54763
Merge remote-tracking branch 'origin/next' into core/separate-manager…
igor-dv 0f29f20
Merge branch 'next' into core/separate-manager-from-preview
ndelangen 31e46a3
FIX the babel6 test
ndelangen 7cd91d4
Merge branch 'next' into core/separate-manager-from-preview
ndelangen e93d9f3
FIX chromatic by removing some index.html files and correcting the lo…
ndelangen 1f29e4c
Merge branch 'next' into core/separate-manager-from-preview
ndelangen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import findCacheDir from 'find-cache-dir'; | ||
|
||
const extend = babelConfig => ({ | ||
// This is a feature of `babel-loader` for webpack (not Babel itself). | ||
// It enables a cache directory for faster-rebuilds | ||
// `find-cache-dir` will create the cache directory under the node_modules directory. | ||
cacheDirectory: findCacheDir({ name: 'storybook' }), | ||
...babelConfig, | ||
}); | ||
|
||
export { extend as babel, extend as managerBabel }; |
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,32 @@ | ||
function createProdPresets() { | ||
return [ | ||
[ | ||
require.resolve('babel-preset-minify'), | ||
{ | ||
builtIns: false, | ||
mangle: false, | ||
}, | ||
], | ||
]; | ||
} | ||
|
||
export default ({ configType }) => { | ||
const isProd = configType === 'PRODUCTION'; | ||
const prodPresets = isProd ? createProdPresets() : []; | ||
|
||
return { | ||
presets: [require.resolve('@babel/preset-env'), ...prodPresets], | ||
plugins: [ | ||
require.resolve('babel-plugin-macros'), | ||
require.resolve('@babel/plugin-transform-regenerator'), | ||
require.resolve('@babel/plugin-proposal-class-properties'), | ||
[ | ||
require.resolve('@babel/plugin-transform-runtime'), | ||
{ | ||
helpers: true, | ||
regenerator: true, | ||
}, | ||
], | ||
], | ||
}; | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably my mistake that those dependencies are in fixtures. They should be added by our CLI in test runs instead