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

refactor: code #482

Merged
merged 1 commit into from Oct 4, 2019
Merged

refactor: code #482

merged 1 commit into from Oct 4, 2019

Conversation

alexander-akait
Copy link
Member

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

  • update webpack-default,
  • move index.js inside lib (let's do not mix configuration files in root with code)
  • forgot 'use strict' in some places

Breaking Changes

No

Additional Info

No

@alexander-akait
Copy link
Member Author

After this PR i will start rewriting logger on webpack logger

@codecov
Copy link

codecov bot commented Oct 4, 2019

Codecov Report

Merging #482 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #482   +/-   ##
=======================================
  Coverage   97.21%   97.21%           
=======================================
  Files          13       13           
  Lines         323      323           
  Branches       99       99           
=======================================
  Hits          314      314           
  Misses          9        9
Impacted Files Coverage Δ
lib/utils/index.js 100% <ø> (ø) ⬆️
lib/utils/setupLogger.js 100% <ø> (ø) ⬆️
lib/utils/setupRebuild.js 91.66% <ø> (ø) ⬆️
lib/utils/setupHooks.js 96.42% <ø> (ø) ⬆️
lib/DevMiddlewareError.js 100% <100%> (ø) ⬆️
lib/index.js 97.72% <100%> (ø)

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 abc7dca...ba30e47. Read the comment docs.

.eslintignore Outdated
/coverage
/dist
/node_modules
/test/fixtures
Copy link
Member

Choose a reason for hiding this comment

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

We need the line break?

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

.prettierignore Outdated
/dist
/node_modules
/test/fixtures
CHANGELOG.md
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

"test:watch": "npm run test:only --watch",
"test:only": "cross-env NODE_ENV=test jest",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"test:coverage": "cross-env NODE_ENV=test jest --collectCoverageFrom=\"lib/**/*.js\" --coverage",
Copy link
Member

Choose a reason for hiding this comment

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

It is better to separate to jest.config.js?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it is more simple than using jest.config.js. Maybe we revisit this in future.

Copy link
Member

Choose a reason for hiding this comment

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

ok

@alexander-akait alexander-akait merged commit 6b45974 into master Oct 4, 2019
@alexander-akait alexander-akait deleted the refactor-part-4 branch October 4, 2019 15:11
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.

None yet

2 participants