diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-05-12 01:29:44 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-05-15 00:38:40 +0200 |
commit | 99250fe517bf70a8d190b4a32a6633e4776e87fe (patch) | |
tree | 15ae5ed3e155d9570bb083c945fbeddf600e336e /Gruntfile.js | |
parent | fb19b03dc6438f35b37f0a26e521f605691be728 (diff) | |
download | jquery-ui-99250fe517bf70a8d190b4a32a6633e4776e87fe.tar.gz jquery-ui-99250fe517bf70a8d190b4a32a6633e4776e87fe.zip |
Build: Drop support for Node 10
Ref gh-2249
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index b4933c766..ac61e3ad3 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -84,15 +84,6 @@ const htmllintBad = [ "tests/unit/tabs/data/test.html" ]; -const nodeV16OrNewer = !/^v1[0-5]\./.test( process.version ); - -// Support: Node.js <16 -// Skip running tasks that dropped support for Node.js 10-15 -// in this Node version. -function runIfNewNode( task ) { - return nodeV16OrNewer ? task : "print_old_node_message:" + task; -} - function mapMinFile( file ) { return "dist/" + file.replace( /ui\//, "minified/" ); } @@ -357,13 +348,7 @@ grunt.initConfig( { } ); // grunt plugins -require( "load-grunt-tasks" )( grunt, { - pattern: nodeV16OrNewer ? [ "grunt-*" ] : [ - "grunt-*", - "!grunt-eslint", - "!grunt-html" - ] -} ); +require( "load-grunt-tasks" )( grunt ); // local tasks grunt.loadTasks( "build/tasks" ); @@ -406,9 +391,9 @@ grunt.registerTask( "print_old_node_message", ( ...args ) => { // Keep this task list in sync with the testing steps in our GitHub action test workflow file! grunt.registerTask( "lint", [ "asciilint", - runIfNewNode( "eslint" ), + "eslint", "csslint", - runIfNewNode( "htmllint" ) + "htmllint" ] ); grunt.registerTask( "build", [ "requirejs", "concat" ] ); grunt.registerTask( "default", [ "lint", "build" ] ); |