aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
Commit message (Collapse)AuthorAgeFilesLines
* Build: Drop support for building on Node.js 0.12Michał Gołębiowski2016-12-301-28/+11
| | | | | | | | | | | Node.js 0.12 is no longer supported by upstream. So far we had to keep a workaround that would skip running ESLint there (or even load its task) as it no longer supports Node.js <4; the same applied to Node smoke tests as jsdom has also dropped support for those old Node versions. Those workarounds have been removed now. Ref 030191ae32dfcb7ecb2efb61d17a4964a3633e44 Closes gh-3478
* Build: ESLint setup improvementsMichał Gołębiowski2016-12-191-2/+11
| | | | | | | 1. Use the short name of the preset in the config. 2. Run ESLint first on non-minified files. 3. Explicitly specify environments in every config file (those settings cascade which means we've been assuming a Node.js environment where we shouldn't have).
* Build: jQuery Foundation -> JS FoundationTimmy Willison2016-12-051-1/+1
| | | | Close gh-3414
* Build: Stop testing on Node.js 0.10Michał Gołębiowski2016-10-311-2/+2
| | | | | Node.js 0.10 loses upstream support today (see https://github.com/nodejs/LTS/) so let's stop testing against it as well.
* Build: Simplify Gruntfile constructionsOleg Gaidarenko2016-08-021-25/+35
| | | | Fixes gh-3246
* Build: Don't lint every file in dist/ (#3245)Michał Gołębiowski2016-07-261-3/+4
| | | | | Currently the "all" target for the eslint task includes way more than the "dev" & "dist" targets combined and those 2 tasks are the one run in `npm test`.
* Build: Skip running ESLint on Node.js 0.xMichał Gołębiowski2016-07-131-13/+35
| | | | | | | | | ESLint 3.0 drops support for Node.js older than 4.x. To be able to update to this version and yet not block our contributors from building jQuery on older Node.js (at least until it's supported by upstream) this commit makes ESLint skipped on older Node; a proper message is displayed then. Fixes gh-3222
* Build: Improve ESLint configuration (#3188)Oleg Gaidarenko2016-06-221-1/+2
| | | | | | | | | * Bump eslint-config-jquery package to 0.1.4 version * Add subtask "dist" to "eslint" task and add it to the build task list * Make gitignore globs more flexible for the "dist" folder Fixes gh-3169
* Build: ESLint detailsOleg Gaidarenko2016-06-111-2/+3
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Build: Switch from jscs+jshint to eslintOleg Gaidarenko2016-06-111-32/+17
|
* Build: Don't lint the built file in the husky precommit hookMichał Gołębiowski2016-04-291-1/+1
| | | | | | | | | The husky Git precommit hook was linting not only the source but also the built file. Normally it's expected, we want to run basic checks on what's built but in the precommit hook we're not building the file so we might be linting some previous, broken version. Fixes gh-3091
* Build: A more modest block-level function proposalRichard Gibson2016-04-231-1/+0
| | | | This reverts commit fa610da68440530e73bba296a1f982f94dfeac99.
* Build: Workaround strict mode violations caused by UglifyJSMichał Gołębiowski2016-04-231-0/+1
| | | | | | | | | This commit increases the gzipped size by 90 bytes so a better solution is needed but, at the same time, it disables the very optimizations that are causing strict mode violations in Firefox 45, Safari 9 & IE 10. Refs 76084372c29a59b3fa790ea4d2687f0767514999 Refs mishoo/UglifyJS2#1052
* Core: implement ready without DeferredTimmy Willison2016-04-041-0/+4
| | | | | | | | | - Make jQuery.ready promise-compatible - Gives up sync guarantee for post-ready callbacks Fixes gh-1778 Fixes gh-1823 Close gh-2891
* Build: Drop testing on jsdom with Node 0.10 & 0.12Michał Gołębiowski2016-02-101-11/+3
| | | | Fixes gh-2841
* Build: Move the stripJSONComments variable to the function that uses itMichał Gołębiowski2016-02-101-2/+2
|
* Build: Stop removing the JSHint onevar option, it's no longer thereMichał Gołębiowski2016-02-091-4/+0
|
* Build: run linters on git-commitJha Naman2016-01-291-0/+2
| | | | | Fixes gh-2577 Closes gh-2881
* Build: Update npm deps, fix Sinon npmcopy configMichał Gołębiowski2016-01-271-1/+1
| | | | | | | | | | | | All deps were updated except: * jsdom - tests using a Symbol polyfill are hacky and break with newer jsdom; we need to re-do them properly first * qunitjs - versions 1.19.0 & 1.20.0 introduce race conditions to the tests, making the fail randomly Those two packages will be updated once issues related to them get resolved. Fixes gh-2877
* Build: enable JSCS for test/unit/support.js, fix styling issuesMichał Gołębiowski2016-01-271-0/+1
|
* Build: Encode non-ASCII as \uXXXXTimmy Willison2016-01-111-0/+1
|
* Release: push a custom slim build to the CDNTimmy Willison2015-11-161-2/+8
| | | | | Fixes gh-2653 Close gh-2711
* Build: Add "deprecated" to the Testswarm module listDave Methvin2015-10-201-0/+1
| | | | | | Ref #1740 Yeah.
* CSS: Make show/hide/toggle methods a moduleDave Methvin2015-10-181-0/+1
| | | | | | | | Unit test changes some uses of .show() and .hide() to .css( "display", ... ), there was already an implicit assumption in several of the existing tests. Fixes gh-2193 Close gh-2648
* Tests: Add simple tests for Android 2.3Michał Gołębiowski2015-09-081-0/+8
| | | | | | Fixes gh-2505 Closes gh-2509 Refs gh-2483
* Build: Don't install jsdom 3 on Node.js 0.10 & 0.12 by defaultMichał Gołębiowski2015-09-081-3/+19
| | | | | | | | | | | | | | | | | | | | | jsdom 3 requires Python & Visual Studio on Windows which is a significant barrier to contributors. Newer jsdom versions don't require pre-compiling but work only on io.js. This commit installs the new jsdom everywhere (it does install in old Node.js, it just won't work) and executes Node-related tests only on newer Nodes or if a working jsdom version is installed. The latter can be achieved by running the `old_jsdom` task. Node.js is merging with io.js soon so this will become a smaller problem over time. One drawback is our Jenkins setup runs on Node 0.10 so it won't be running Node tests anymore. We have Travis set up on io.js, though so all PRs have those tests run. When the new LTS Node.js arrives (as it soon merges with io.js) we should update our Jenkins infrastructure so that it runs on this new version. Fixes gh-2519 Closes gh-2526
* Effects: Finish should call progressThomas Tortorini2015-09-081-0/+5
| | | | | Fixes gh-2283 Closes gh-2292
* Build: put back "lint" command to the "dev" listOleg Gaidarenko2015-09-081-1/+1
| | | | | | Also fix lint error in `data` module. It seems this command was removed from the list during merge
* Build: correct jscs pathsOleg Gaidarenko2015-09-071-3/+2
|
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-4/+10
| | | | Fixes gh-2056
* Build: Add a comment explaining why the es3 option is neededMichał Gołębiowski2015-08-031-2/+6
| | | | | | | | | | It might not be obvious to everyone that IE 9 & Android 4.0 are not ES5-compliant browsers (by a large margin) so it's better to add a support comment. This requires slight changes in parsing the config file as it's not a pure JSON anymore. JSHint understands such files without problems. Closes gh-2520
* Effects: Adding unit tests for jQuery.AnimationCorey Frang2015-06-261-2/+3
| | | | Closes gh-2326
* Effects: Add tests for jQuery.TweenCorey Frang2015-06-261-2/+3
|
* Core: Make jQuery objects iterableMichał Gołębiowski2015-06-131-0/+12
| | | | | | | | | | Make iterating over jQuery objects possible using ES 2015 for-of: for ( node of $( "<div id=narwhal>" ) ) { console.log( node.id ); // "narwhal" } Fixes gh-1693
* Build: remove bower.json lint targetOleg Gaidarenko2015-06-111-4/+0
| | | | Ref 26eca143c2dd857b9e3d1c446a467fed16e903d2
* Core: Test all factory use cases from intro.jsMichał Gołębiowski2015-04-271-2/+2
| | | | | | | | | | | | | | | | | There is a lot of logic in intro.js; now we test four cases: 1. (implicitly, via QUnit tests) A real browser with window being the global 2. Browserify where there are both global & window variables. 3. Node with jsdom where window is passed manually to the jQuery factory. 4. Pure Node with incorrect window passed; jQuery should throw then. Previously the second & fourth case was not tested and the third was tested in a way that interfered with the main test environment. We now also test if in the Browserify case we're not creating a jQuery global by default. Fixes gh-2181 Closes gh-2234
* Deferred: Backwards-compatible standards interoperabilityRichard Gibson2015-03-201-1/+3
| | | | | Fixes gh-1722 Closes gh-1996
* Release: remove sourcemap comment from all copies of minified fileTimmy Willison2015-01-301-1/+1
| | | | Fixes gh-1707
* Build: Rearrange grunt/npm tasks into a build/dist/test patternRichard Gibson2015-01-111-19/+7
| | | | | Ref 76df9e4e389d80bff410a9e5f08b848de1d21a2f Closes gh-1980
* Build: Remove dates from copyright noticeAnne-Gaelle Colom2015-01-031-2/+1
| | | | Closes gh-1983
* Build: Don't assume the browser environment; smoke test on Node w/ jsdomMichał Gołębiowski2014-12-261-1/+16
| | | | | Fixes gh-1950 Closes gh-1949
* Sizzle: update to 2.1.1Timmy Willison2014-12-151-1/+1
|
* Build: update source map options for the new grunt jshintTimmy Willison2014-07-171-2/+2
|
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-7/+25
|
* Build: drop bower; use npm for front-end depsTimmy Willison2014-07-171-6/+4
| | | | | Fixes #15186 Closes gh-1620
* Build: update Sizzle to 2.0.0Timmy Willison2014-07-011-1/+1
|
* Build: update Sizzle to 1.11.1 and include licenseTimmy Willison2014-06-251-0/+1
|
* Build: Move all external libraries to external directoryScott González2014-06-241-13/+13
| | | | Closes gh-1593
* Build: Remove unused Sizzle test filesScott González2014-06-241-5/+1
|
* Ajax: move ajax event aliases to their own fileTimmy Willison2014-06-021-1/+1
| | | | Fixes #15126