Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major clean up and better unit test coverage (#4)
* updated README * feat(resize): new approach to resizing font * docs: Updated README, commit template - Updated README - Added git commit template (standard-version style) * fix(ruler): corrected ruler div for measuring - removed addition of line-height from wrapper and cloned ruler - removed cloning border + padding styles for ruler * fix(tests): fix/remove tests, change example Still unable to properly test DOM specific code that relies on getBoundingClientRect, computedStyle, offsetWidth, etc., so direct unit testing of the component isn't really possible. - skipped the component tests (for now) - modified the example setup * style(eslint): Fixed eslint related issues - eslint corrections to style - addition of missing jsx-a11y eslint dep * style(eslint): eslint update, changes to style updated eslint deps and then corrected for new styling changes * build(webpack): changes for using webpack 2 - minor changes to config moving from webpack 1.x to 2.x * feat: refactored implementation and testing - Cleaned up the implementation to figure out the fill size for fonts. - ensured that if child props of the wrapped element change, resizing is triggered (not just on window resize) - moved unit tests to mocha + electron to allow real browser testing given limitations of jsdom * fix: eslint fixes * fix(testing): added xvfb for test:cov * fix(testing): unit test fixes - removed spec-xunit-file reporter from mocha - removed console logs from test * chore: cleaning up folders - removed .vscode folder from repo * fix(build): fixing test run on travis * fix(build): fixing travis build + xvfb * fix(build): fixes for travis build * fix(build): more travis + xvfb fixes * fix(build): travis. errors. ugh... * fix(build): travis test running issues fix * fix(testing): trying to determine travis test:cov failures * fix(testing): tracing down travis test errors * fix(testing): travis testing issues digging * fix(testing): tracking down travis test issues * fix(testing): tracking down travis test issues * fix(testing): tracking down travis test issues * fix(testing): tracking down testing errors on travis * chore(testing): cleaned up non-used code * fix(testing): fixes for travis test runs * fix(testing): additional unit tests - additional unit tests for dom-utils and shallow-equal * chore: clean up old code - removed jest config from package.json - added cov to npm clean script - added tests to .npmignore
- Loading branch information
Showing
25 changed files
with
722 additions
and
484 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<type>(<scope>): <subject> | ||
|
||
<body> | ||
|
||
<footer> | ||
|
||
# -- Type -- | ||
# Must be one of the following: | ||
# | ||
# feat: A new feature | ||
# fix: A bug fix | ||
# docs: Documentation only changes | ||
# style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | ||
# refactor: A code change that neither fixes a bug nor adds a feature | ||
# perf: A code change that improves performance | ||
# test: Adding missing tests or correcting existing tests | ||
# build: Changes that affect the build system, CI configuration or external dependencies (example scopes: gulp, broccoli, npm) | ||
# chore: Other changes that don't modify src or test files | ||
# | ||
|
||
# -- Scope -- | ||
# The scope could be anything specifying place of the commit change. For example Compiler, ElementInjector, etc. | ||
# | ||
|
||
# -- Subject -- | ||
# The subject contains a succinct description of the change: | ||
# use the imperative, present tense: "change" not "changed" nor "changes" | ||
# don't capitalize first letter | ||
# no dot (.) at the end | ||
# | ||
|
||
# -- Body -- | ||
# Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". | ||
# The body should include the motivation for the change and contrast this with previous behavior. | ||
# | ||
|
||
# -- Footer -- | ||
# The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit Closes. | ||
# Breaking Changes should start with the word BREAKING CHANGE: with a space or two newlines. The rest of the commit message is then used for this. | ||
# |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
lib | ||
**/node_modules | ||
**/webpack.config.js | ||
examples/**/server.js | ||
examples/**/server.js | ||
build/ | ||
node_modules/ | ||
cov/ | ||
tests/ |
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ node_modules | |
.DS_Store | ||
dist | ||
lib | ||
coverage | ||
cov/ | ||
coverage/ | ||
.vscode/* |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.DS_Store | ||
*.log | ||
src | ||
test | ||
tests | ||
examples | ||
coverage |
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
Oops, something went wrong.