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

BREAKING CHANGE: reorganize client directory #2562

Merged
merged 2 commits into from
May 6, 2020

Conversation

knagaitsev
Copy link
Collaborator

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

N/A

Motivation / Use-Case

Reorganized client build output to match structure of client-src

Thoughts on if we should reorganize it more, or just do this and avoid major breaking changes?

Breaking Changes

Yes, reorganized client output dir

Additional Info

@codecov
Copy link

codecov bot commented May 2, 2020

Codecov Report

Merging #2562 into v4 will decrease coverage by 0.56%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v4    #2562      +/-   ##
==========================================
- Coverage   93.43%   92.86%   -0.57%     
==========================================
  Files          34       35       +1     
  Lines        1309     1331      +22     
  Branches      369      374       +5     
==========================================
+ Hits         1223     1236      +13     
- Misses         83       90       +7     
- Partials        3        5       +2     
Impacted Files Coverage Δ
client-src/default/socket.js 59.09% <ø> (ø)
lib/utils/addEntries.js 100.00% <ø> (ø)
lib/utils/getSocketServerImplementation.js 90.47% <ø> (ø)
client-src/default/utils/createSocketUrl.js 100.00% <100.00%> (ø)
lib/Server.js 96.73% <100.00%> (ø)
lib/utils/normalizeOptions.js 100.00% <100.00%> (ø)
lib/utils/routes.js 92.30% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83d4ec3...3133bb5. Read the comment docs.

package.json Outdated
"build:client:clients": "babel client-src/clients --out-dir client/clients",
"build:client:index": "webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js",
"build:client:sockjs": "webpack ./client-src/sockjs/index.js -o client/sockjs.bundle.js --color --config client-src/sockjs/webpack.config.js",
"build:client:index": "webpack ./client-src/default/index.js -o client/default/index.bundle.js --color --config client-src/default/webpack.config.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move input/output to webpack.config.js?

@alexander-akait
Copy link
Member

alexander-akait commented May 4, 2020

/cc @Loonride need fix conflicts, great job!

@knagaitsev knagaitsev force-pushed the chore/reorganize-client-dir branch from 135e474 to 3133bb5 Compare May 4, 2020 15:42
@alexander-akait alexander-akait merged commit 98b4a53 into webpack:v4 May 6, 2020
alexander-akait pushed a commit that referenced this pull request May 8, 2020
BREAKING CHANGE: the `client` now in `default` directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants