-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Build improvements #2076
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
Merged
CompuIves
merged 18 commits into
codesandbox:master
from
lbogdan:experiment/build-improvements
Jun 22, 2019
Merged
Build improvements #2076
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
79916c2
[WIP] Build improvements.
lbogdan 057d47a
Fix production build.
lbogdan 27145ec
Extract static assets to config/build.js and use them in both dev and…
lbogdan d0b7869
Cleanup.
lbogdan fd8d12e
Update yarn.lock.
lbogdan 5ef8a8a
Update standalone-packages/vscode-textmate/package-lock.json.
lbogdan b9de1f9
Bump CircleCI cache keys version.
lbogdan f309784
Revert "Update standalone-packages/vscode-textmate/package-lock.json."
lbogdan 58e420f
Small improvements.
lbogdan 0d5ef6b
Update webpack to latest 4.35.0.
lbogdan 39fcae1
CodeMirror: remove auto-complete, so we're not bundling tern.
lbogdan 31b3c20
Remove unneeded gulp tasks.
lbogdan 51ee807
Update webpack-dev-server to latest 3.7.2 and remove unused webpack-d…
lbogdan a6877b2
Show the updated module which triggers re-compiling.
lbogdan e7db9e6
Don't use thread-loader while linting.
lbogdan 25d4839
Extract tern dep to codesandbox-deps and re-add CodeMirror bits.
lbogdan e142676
Disable console clearing on Windows by default and
lbogdan 2ab9b69
Merge branch 'master' into experiment/build-improvements
CompuIves 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,42 @@ | ||
const isDev = process.env.NODE_ENV === 'development'; | ||
const staticAssets = [ | ||
{ | ||
from: 'standalone-packages/vscode-editor/release/min/vs', | ||
to: 'public/vscode22/vs', | ||
}, | ||
{ | ||
from: 'standalone-packages/vscode-extensions/out', | ||
to: 'public/vscode-extensions/v8', | ||
}, | ||
{ | ||
from: 'node_modules/onigasm/lib/onigasm.wasm', | ||
to: 'public/onigasm/2.2.1/onigasm.wasm', | ||
}, | ||
{ | ||
from: | ||
'standalone-packages/vscode-textmate/node_modules/onigasm/lib/onigasm.wasm', | ||
to: 'public/onigasm/2.1.0/onigasm.wasm', | ||
}, | ||
{ | ||
from: 'node_modules/monaco-vue/release/min', | ||
to: 'public/14/vs/language/vue', | ||
}, | ||
{ | ||
from: 'standalone-packages/monaco-editor/release/min/vs', | ||
to: 'public/14/vs', | ||
}, | ||
{ | ||
from: 'packages/app/static', | ||
to: 'static', | ||
}, | ||
{ | ||
from: isDev | ||
? 'standalone-packages/codesandbox-browserfs/build' | ||
: 'standalone-packages/codesandbox-browserfs/dist', | ||
to: 'static/browserfs3', | ||
}, | ||
]; | ||
|
||
module.exports = { | ||
staticAssets, | ||
}; |
This file contains hidden or 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.
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.
Did this make it faster than
cpu().length - 1
?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.
I didn't see any obvious improvements, even when using
thread-loader
vs. not using it, TBH. Can you maybe also test without it / with different numbers of workers and see what you get?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.
Didn't see improvements either, let's keep it at 2.