From 5afa186393288bf66340140221c94d03c80c9d49 Mon Sep 17 00:00:00 2001 From: Stamen Stoychev Date: Tue, 17 Nov 2026 15:03:38 +0200 Subject: [PATCH 1/2] chore(*): remove global grunt-cli postinstall The postinstall script ran `npm install -g grunt-cli` on every install, including when the repository is consumed as a dependency. The local `grunt` package already ships the `grunt` binary, so the build runs through npm scripts instead and nothing is installed globally. - CI and publish workflows call `npm run build` - README and CONTRIBUTING use `npm run build` / `npx grunt verify` Co-Authored-By: Claude Fable 5.2 --- .github/CONTRIBUTING.md | 2 +- .github/workflows/node.js.yml | 2 +- .github/workflows/npm-publish.yml | 2 +- README.md | 2 +- package.json | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 3f5ebe496..3555f2132 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -10,7 +10,7 @@ Your pull request will undergo a review and if approved will be merged. All chec In order to perform all the necessary checks before pulling your changes in, you need to run npm install - grunt verify + npx grunt verify # Workflow When working on an issue for the Ignite UI for jQuery repository, you need to be aware of and to follow a correct status workflow. We have created a number of status labels in order to communicate well what the current status of a single issue/pull request is. The statuses are as follows: diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2e8f83dad..59a85c225 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -27,7 +27,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: 'npm' - run: npm ci - - run: grunt build + - run: npm run build - run: npm run cover - name: Publish to coveralls.io diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 3ed416624..05abad486 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,7 +28,7 @@ jobs: - run: echo "NODE_OPTIONS='--max_old_space_size=4096'" >> $GITHUB_ENV - run: npm ci - - run: grunt build + - run: npm run build # define npm tag - run: if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV diff --git a/README.md b/README.md index d0d7b96cc..182b79a1a 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ The command will install all build dependencies as well as bower packages used i To build the product: ```bash -grunt build +npm run build ``` This will create source files under the `dist/` folder complete with merged locales, combined script and structure CSS and can be called again to include new changes. diff --git a/package.json b/package.json index 7bfcf7785..3df7f5e80 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "scripts": { "test": "karma start", "cover": "grunt hint && npm test -- --single-run", - "postinstall": "npm install -g grunt-cli", "build": "grunt build" }, "dependencies": { From f259279b2c8937d1da091d5d62e5450330fb7270 Mon Sep 17 00:00:00 2001 From: Stamen Stoychev Date: Tue, 17 Nov 2026 15:37:34 +0200 Subject: [PATCH 2/2] test(upload): wait for show/hide details animation to complete The [ID14] show/hide details test waited a fixed 500ms after clicking, which equals the slideToggle duration, so on slower CI runners the timer could fire before the animation's final frame and the file container was not yet hidden. Wait on the element's fx queue promise instead. Co-Authored-By: Claude Opus 5.5 --- tests/unit/upload/upload-test.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/unit/upload/upload-test.js b/tests/unit/upload/upload-test.js index 7e0a14065..d58d52626 100644 --- a/tests/unit/upload/upload-test.js +++ b/tests/unit/upload/upload-test.js @@ -480,13 +480,15 @@ QUnit.test('[ID14] igUpload MULTIPLE MODE test show/hide details', function (ass // MULTIPLE UPLOAD Show/Hide Details var click = jQuery.Event("click"), - buttonShowHideDetails = $('#' + uploaderId + '_shdbtn'); + buttonShowHideDetails = $('#' + uploaderId + '_shdbtn'), + fileContainer = $('#' + uploaderId + '_fc'); buttonShowHideDetails.trigger(click); - $.ig.TestUtil.wait(500).then(function () { - assert.equal($('#' + uploaderId + '_fc').is(':hidden'), true, 'File container should be hidden.'); + // wait for the slideToggle animation to complete instead of a fixed timeout equal to its duration + fileContainer.promise().then(function () { + assert.equal(fileContainer.is(':hidden'), true, 'File container should be hidden.'); buttonShowHideDetails.trigger(click); - assert.equal($('#' + uploaderId + '_fc').is(':hidden'), false, 'File container should be hidden.'); + assert.equal(fileContainer.is(':hidden'), false, 'File container should be visible.'); done(); }).catch(function (er) { assert.pushResult({ result: false, message: er.message });