aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
Commit message (Collapse)AuthorAgeFilesLines
* Spinner: Prevent double mousewheel & wheel event handlingMichał Gołębiowski-Owczarek2025-03-211-0/+3
| | | | | | | | | | | | | | | | | As of gh-2338, if one has loaded the jQuery MouseWheel plugin, the `mousewheel` handler would fire the `wheel` one, but the `wheel` one would also run in response to the native `wheel` event, resulting in double the distance handled by the spinner. To prevent the issue, only fire the `wheel` handler from inside the `mousewheel` on if the event was triggered by jQuery - jQuery will not care that the underlying event is `wheel` and will only fire handlers for `mousewheel`. Also, add an iframe test using jQuery MouseWheel to not affect all the other tests. Plus, migrate from `QUnit.reset` to `QUnit.done` (see qunitjs/qunit#354). Closes gh-2342 Ref gh-2338
* Spinner: Drop dependency on jQuery MousewheelMichał Gołębiowski-Owczarek2025-03-181-3/+0
| | | | | | | 1. Listen to the native `wheel` event without depending on any wrapper plugins. 2. Keep listening to the `mousewheel` event for compatibility with projects using the jQuery Mousewheel plugin but route it to the `wheel` handler. Closes gh-2338
* Build: Update ESLint to v9, migrate to flat config, lint dist filesMichał Gołębiowski-Owczarek2025-03-031-1/+4
| | | | | Dist files linting is limited to checking if they're proper ES5. Closes gh-2336
* Build: Switch from UglifyJS to SWC minify, make the minified file ES5Michał Gołębiowski-Owczarek2025-03-031-7/+4
| | | | | | | | | More recent UglifyJS versions have started converting regular functions to arrow ones, making ES5 source file migrated to a ES2015+ minified one. We want to avoid that even in 1.14.x as long as we keep the source file in ES5. Closes gh-2335 Ref mishoo/UglifyJS#5967 Ref jquery/download.jqueryui.com#629
* Tests: Update jQuery Migrate from 3.4.1 to 3.5.2, simplify Migrate setupMichał Gołębiowski-Owczarek2024-07-301-6/+6
| | | | | | | | Apart from updating jQuery Migrate, the setup is now changed so that exact Migrate versions are only references when fetching npm packages; other than that, they're represented as `jquery-migrate-1.x` & `jquery-migrate-3.x`. This will allow smaller changes when updating jQuery Migrate in the future. Closes gh-2273
* Build: Report compressed sizes in compare_sizeMichał Gołębiowski-Owczarek2024-05-201-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | Just like it has always worked in Core. This will help with size comparisons between 1.13 & 1.14. After this PR: ``` $ grunt sizer Running "requirejs:js" (requirejs) task Running "uglify:main" (uglify) task >> 1 file created 549 kB → 267 kB Running "compare_size:all" (compare_size) task raw gz Sizes 549319 128757 dist/jquery-ui.js 266710 69612 dist/jquery-ui.min.js Done. ``` Before, only the less interesting `raw` sizes were reported. Closes gh-2254 Ref gh-2248
* Tests: remove code supporting jenkins and testswarmTimmy Willison2024-05-151-1/+0
| | | Close gh-2251
* Build: Drop support for Node 10Michał Gołębiowski-Owczarek2024-05-151-18/+3
| | | | Ref gh-2249
* All: Remove the deprecated `ui/core.js` fileMichał Gołębiowski-Owczarek2024-05-151-2/+1
| | | | | | Also, fix checkboxradio visual tests. Ref gh-2249
* All: Drop support for jQueries different than the latest for each majorMichał Gołębiowski-Owczarek2024-05-151-90/+0
| | | | | | Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4. Closes gh-2249
* Docs: Change a few most common domains from HTTP to HTTPSMichał Gołębiowski-Owczarek2024-04-261-2/+2
| | | | | Also, update a few stale URLs to what they redirect now to. Closes gh-2244
* Tests: replace grunt-contrib-qunit with jQuery test runnerTimmy Willison2024-03-291-30/+7
| | | | | - add filestash workflow Close gh-2221
* Build: Add jQuery 3.7.0Michał Gołębiowski-Owczarek2023-05-121-0/+3
|
* Build: Add jQuery 3.6.4, update Migrate to 3.4.1Michał Gołębiowski-Owczarek2023-05-101-3/+6
| | | Closes gh-2161
* Build: Fork vendors to remove QUnit deprecated API usageMichał Gołębiowski-Owczarek2023-05-101-12/+0
| | | | | | | | | | | | Changes: * add `tests/lib/vendor/**/*` to `.eslintignore` * move `qunit-composite` to `tests/lib` so that we can modify it * move `qunit-assert-classes` to `tests/lib` so that we can modify it * move `qunit-assert-close` to `tests/lib` so that we can modify it * replace `assert.push` with `assert.pushResult` * remove usage of `QUnit.extend` Closes gh-2157
* Build: Update dependencies, including QUnit 1 -> 2Michał Gołębiowski-Owczarek2023-05-101-3/+5
| | | | | | Also, fix htmllint lang exclusion patterns. Ref gh-2157
* Tests: Make Puppeter really fire Chrome on macOSMichał Gołębiowski-Owczarek2023-05-101-4/+7
| | | | | | | | | | | Also, workaround issues with QUnit Chrome bridge: the Chrome bridge from `grunt-contrib-qunit` is now getting injected into every single iframe, including an empty one that has no intention of running QUnit tests. Since that bridge requires QUnit, it fails with an error in such cases. Workaround the issue by wrapping the bridge in another function that bails early if QUnit is not defined. Ref gh-2157
* Build: Test on Node 10, 16 & 18; fix CI in Node <16Michał Gołębiowski-Owczarek2023-05-101-95/+119
| | | | Ref gh-2157
* Build: Add jQuery 3.6.1-3.6.3, update Migrate to 3.4.0Michał Gołębiowski-Owczarek2023-01-151-3/+12
|
* Build: Switch from Travis to GitHub actionsFelix Nagel2021-11-301-0/+1
| | | Closes gh-2021
* Docs: Update jQuery used for demos to 3.6.0Michał Gołębiowski-Owczarek2021-09-251-2/+2
| | | | | jQuery 1.12.4 misses some Core APIs that jQuery UI depends on and that are not polyfilled in demos.
* Build: Migrate from JSHint & JSCS to ESLintMichał Gołębiowski-Owczarek2021-06-071-35/+15
| | | | | Fixes #15393 Closes gh-1958
* Build: Fix the new htmllint error regexMichał Gołębiowski-Owczarek2021-03-101-1/+1
| | | | | | | | | Some bad pages are being detected as Catalan randomly which makes the build fail. This is reproducible both locally & on Travis. PR gh-1949 added a new regex to account for this error but it didn't escape parens properly so it's not matching the problematic error message. Ref gh-1949 Closes gh-1950
* Build: Add a new htmllint error regexMichał Gołębiowski-Owczarek2021-03-091-1/+2
| | | | | | | Some bad pages are being detected as Catalan randomly which makes the build fail. This is reproducible both locally & on Travis. This commit adds a new regex to account for this error. Closes gh-1949
* Build: Add jQuery 3.6.0, update Migrate from 3.3.1 to 3.3.2Michał Gołębiowski-Owczarek2021-03-091-2/+5
| | | Closes gh-1948
* Build: Update grunt-contrib-qunit version from 1.0.1 to 4.0.0sakshi872020-10-211-1/+11
| | | Closes gh-1894
* Build: Update to the latest version of Grunt & many other packagesMicah Miller2020-10-141-6/+8
| | | | | | | | JSHint, JSCS & QUnit-related packages are not updated as they need more code adjustments. Fixes #15112 Closes gh-1882
* Tests: Update jQuery Migrate from 3.3.0 to 3.3.1Michał Gołębiowski-Owczarek2020-07-271-2/+2
| | | | | | That upgrade makes UI pass the whole test suite without a single jQuery Migrate warning. 🎉 Closes gh-1932
* All: Drop support for jQuery 1.7Michał Gołębiowski-Owczarek2020-07-221-9/+0
| | | Closes gh-1923
* Build: Add jQuery 3.5.0 & 3.5.1Michał Gołębiowski-Owczarek2020-05-161-0/+6
| | | Closes gh-1915
* Build: Update jQuery Simulate, jQuery Migrate & jQuery ColorMichał Gołębiowski-Owczarek2020-05-161-2/+13
| | | | | | The jQuery Simulate & jQuery Color updates are needed for compatibility with jQuery master, a future jQuery 4. Closes gh-1914
* All: Migrate away from deprecated/removed Core APIsMichał Gołębiowski-Owczarek2019-12-081-29/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
* Qunit: Add bootstrap config for running tests with jQuery MigrateEirik Sletteberg2017-02-061-1/+7
| | | | Closes gh-1774
* Build: Add jQuery 3.1.1Michał Gołębiowski2016-11-021-1/+4
| | | | Closes gh-1766
* Build: Fix list of source files1-12-stableScott González2016-09-271-7/+7
| | | | | Fixes #15052 Closes gh-1751
* Build: Add jQuery 3.1.0Scott González2016-07-081-1/+4
|
* Build: Add jQuery 3.0 for testingAlexander Schmitz2016-07-061-2/+5
|
* Build: Adjust author info for Dan StrohlScott González2016-06-301-3/+1
|
* Build: Add jQuery 1.12/2.2 to the test configurationMichał Gołębiowski2016-05-251-1/+34
| | | | Ref gh-1706
* Build: Remove maxLineLength execption in .jscsrcAlexander Schmitz2016-04-131-2/+11
| | | | | | Also seperates tests into a seperate task because they still have many errors Closes gh-1690
* Build: Adjust author info for Dan StrohlScott González2016-04-061-1/+3
|
* Build: Upgrade grunt-git-authors to 3.1.0Scott González2016-02-091-1/+1
| | | | Ref gh-1670
* Build: Remove grunt-esformatterScott González2016-02-091-15/+0
| | | | Ref gh-1670
* Build: Add `grunt jenkins` taskScott González2015-10-171-0/+1
|
* Build: Fix requirejs task and add CSS concat task back inScott González2015-10-171-1/+38
|
* Tests: Use demo bootstrap for visual testsJörn Zaefferer2015-09-301-5/+2
| | | | | | Adds a data-composite option and fixes paths for effects. Otherwise just applies the same conversion as already applied to demos, sometimes moving a <style> element to the right place.
* Build: update grunt file for .jscsrcAlexander Schmitz2015-09-111-1/+1
| | | | Closes gh-1589
* Build: Remove requireCamelCaseOrUpperCaseIdentifiers: null from jscsAlexander Schmitz2015-09-111-4/+0
|
* Build: Style updatesAlexander Schmitz2015-09-111-1/+4
| | | | Ref #14246
* Build: Style updatesAlexander Schmitz2015-08-211-40/+5
| | | | | Fixes #14246 Closes gh-1588