-
Notifications
You must be signed in to change notification settings - Fork 476
Core: Remove workarounds for APIs dropped before 3.0 #155
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
Conversation
By analyzing the blame information on this pull request, we identified @dmethvin, @markelog and @gibson042 to be potential reviewers |
The module is not really |
Ah, coverage is fine, I just haven't run |
Nice!
Hm, |
Steps:
|
Can't repro - $ grunt
Running "concat:dist" (concat) task
File dist/jquery-migrate.js created.
Running "uglify:all" (uglify) task
>> 1 file created.
Running "jshint:dist" (jshint) task
>> 1 file lint free.
Running "jshint:tests" (jshint) task
>> 12 files lint free.
Running "jshint:grunt" (jshint) task
>> 1 file lint free.
Running "jscs:src" (jscs) task
>> 27 files without code style errors.
Running "qunit:files" (qunit) task
Testing test/index.html JQMIGRATE: Migrate is installed with logging active, version 1.3.1-pre
...............................................OK
>> 774 assertions passed (1637ms)
>> Coverage:
>> - Lines: 86.04%
>> - Statements: 86.04%
>> - Functions: 90%
>> - Branches: 70.33%
Done, without errors.
$ g fpr 155
From github.com:jquery/jquery-migrate
* [new ref] refs/pull/155/head -> 155
Switched to branch '155'
$ npm test
> jquery-migrate@3.0.0-pre test /Users/arkel/Workspace/jquery-migrate
> grunt test
Running "qunit:files" (qunit) task
Testing test/index.html JQMIGRATE: Migrate is installed with logging active, version 1.3.1-pre
.....................OK
>> 62 assertions passed (1211ms)
>> Coverage:
>> - Lines: 87.25%
>> - Statements: 87.25%
>> - Functions: 88.89%
>> - Branches: 70.49%
Done, without errors. |
"src/attributes.js", | ||
"src/core.js", | ||
"src/css.js", | ||
"src/data.js", |
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.
This may be back soon if #87 is fixed, but we might as well take it out now.
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 may leave it empty if you wish but adding new modules isn't that hard anyway. :)
@markelog OK, the steps I provided don't work but it definitely happened to me. I was working on the patch, removing more & more stuff & running
Even regardless of this issue I'd still want to see the |
@mgol Sounds like you were on intermediate step - removed the tests, but not the code, or didn't applied latest migrate patches i.e. before the rebase. Difference between the migrate and core, that in the latter you have to build (if not running in the amd mode which not default) before run the tests, which is not necessary for the migrate, since migrate, by default, would still not use your builded version. |
Even then, |
Mmm, okay, sounds logical, when you think about that, a lot of projects do the same like in |
If you do change that though, make sure it would run in |
Changes LGTM here. |
Landed. 770 assertions before, 62 after. The new Migrate will be really new. ;) |
I created #157 for the npm scripts refactor plan. |
Fixes #152
I tried to pay attention to what I'd been removing but I'd apprieciate a 2nd (or 3rd) pair of eyes. :D
The build is failing because of low test coverage (79.65%, below the 85% threshold) as I mainly removed well tested code. I'll add some tests once it's verified I haven't removed too much.