]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Drop support for Node 10
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Sat, 11 May 2024 23:29:44 +0000 (01:29 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 14 May 2024 22:38:40 +0000 (00:38 +0200)
Ref gh-2249

.github/workflows/node.js.yml
Gruntfile.js

index 468611c35860d53f005fa383130ccc5c5325d91d..30e8583feeac900119cfa69f1b32317fab1279ab 100644 (file)
@@ -133,31 +133,3 @@ jobs:
 
       - name: Test
         run: npm run test:unit -- -b safari --jquery ${{ matrix.JQUERY }} --retries 3
-
-  legacy-build:
-    runs-on: ubuntu-latest
-    name: Build on Node 10.x
-    env:
-      NODE_VERSION: 10.x
-    steps:
-      - name: Checkout
-        uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
-
-      - name: Use Node.js ${{ env.NODE_VERSION }}
-        uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
-        with:
-          node-version: ${{ env.NODE_VERSION }}
-
-      - name: Cache
-        uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
-        with:
-          path: ~/.npm
-          key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
-          restore-keys: |
-            ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-
-
-      - name: Install npm dependencies
-        run: npm install
-
-      - name: Build
-        run: npm run build
index b4933c766e193e3d6bde595c57678ff7be9276ec..ac61e3ad308acd6902a6868a900c74cedc6abd99 100644 (file)
@@ -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" ] );