diff --git a/.github/actions/run-qunit-tests/action.yml b/.github/actions/run-qunit-tests/action.yml index 77824550c16c..e450088a9f8a 100644 --- a/.github/actions/run-qunit-tests/action.yml +++ b/.github/actions/run-qunit-tests/action.yml @@ -87,9 +87,9 @@ runs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install + - name: Run npm ci shell: bash - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Download artifacts uses: actions/download-artifact@v4 diff --git a/.github/actions/setup-chrome-headless-shell/action.yml b/.github/actions/setup-chrome-headless-shell/action.yml index 5ad9bca9ffc2..fbb20c33c57f 100644 --- a/.github/actions/setup-chrome-headless-shell/action.yml +++ b/.github/actions/setup-chrome-headless-shell/action.yml @@ -18,10 +18,6 @@ runs: CHROME_VERSION: ${{ inputs.chrome-version }} run: | if [ -n "$CHROME_VERSION" ]; then - sudo apt-get update - sudo apt-get -y install libu2f-udev - sudo apt-get -y install dbus - echo "version to install: $CHROME_VERSION" CHROME_BIN=`npx @puppeteer/browsers install chrome-headless-shell@$CHROME_VERSION | awk '{print $2}'` chmod +x $CHROME_BIN diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 5ce524555f7c..5fea98150ca0 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -24,7 +24,7 @@ jobs: dotnet-version: 6.0.x - name: Install dependencies - run: npm install + run: npm ci - name: Build npm packages run: npm run all:build diff --git a/.github/workflows/default_workflow.yml b/.github/workflows/default_workflow.yml index 947797db1ee1..5d863459e3e4 100644 --- a/.github/workflows/default_workflow.yml +++ b/.github/workflows/default_workflow.yml @@ -30,12 +30,12 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install + - name: Run npm ci run: npm ci --no-audit --no-fund - name: Run targets run: > - npx nx run-many + npx --no-install nx run-many -t test --exclude devextreme diff --git a/.github/workflows/demos_unit_tests.yml b/.github/workflows/demos_unit_tests.yml index 0c32fb70b692..4fbc50deef90 100644 --- a/.github/workflows/demos_unit_tests.yml +++ b/.github/workflows/demos_unit_tests.yml @@ -48,9 +48,9 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Run unit tests working-directory: apps/demos - run: npx nx test + run: npx --no-install nx test diff --git a/.github/workflows/demos_visual_tests.yml b/.github/workflows/demos_visual_tests.yml index b88be686febe..20d4c6184f53 100644 --- a/.github/workflows/demos_visual_tests.yml +++ b/.github/workflows/demos_visual_tests.yml @@ -50,13 +50,13 @@ jobs: restore-keys: ${{ runner.os }}-node-modules - name: DevExtreme - Install packages - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: DevExtreme - Build shell: bash run: | node ./tools/scripts/performance_log.js & - npx nx build devextreme-main + npx --no-install nx build devextreme-main testcafe: needs: [check-should-run, build] @@ -96,12 +96,12 @@ jobs: restore-keys: ${{ runner.os }}-node-modules - name: DevExtreme - Install packages - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: DevExtreme - Build env: BUILD_TEST_INTERNAL_PACKAGE: true - run: npx nx build devextreme-main + run: npx --no-install nx build devextreme-main - name: Run Web Server run: | @@ -128,7 +128,7 @@ jobs: CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally run: | node ../../tools/scripts/performance_log.js & - npx nx test-testcafe + npx --no-install nx test-testcafe - name: Show accessibility warnings if: matrix.STRATEGY == 'accessibility' diff --git a/.github/workflows/demos_visual_tests_frameworks.yml b/.github/workflows/demos_visual_tests_frameworks.yml index bacfc377e367..c77e6f105f49 100644 --- a/.github/workflows/demos_visual_tests_frameworks.yml +++ b/.github/workflows/demos_visual_tests_frameworks.yml @@ -50,7 +50,7 @@ jobs: restore-keys: ${{ runner.os }}-node-modules - name: DevExtreme - Install packages - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: DevExtreme - Build-all env: @@ -124,7 +124,7 @@ jobs: - name: Prepare bundles working-directory: apps/demos - run: npx nx prepare-bundles + run: npx --no-install nx prepare-bundles - name: Demos - Run tsc working-directory: apps/demos @@ -177,7 +177,7 @@ jobs: matrix: include: - name: Lint code base (excluding demos) - command: npx nx lint-non-demos + command: npx --no-install nx lint-non-demos # NOTE: skipped due to enormous number of errors # - name: Lint demos (1/4) # command: CONSTEL=1/4 npm run lint-demos @@ -262,7 +262,7 @@ jobs: name: devextreme-sources - name: Install packages - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund # NOTE: workaround due to wrappers are incorrect NPM packages now - name: Install wrappers packages @@ -334,7 +334,7 @@ jobs: name: devextreme-sources - name: Install packages - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund # NOTE: workaround due to wrappers are incorrect NPM packages now - name: Install wrappers packages @@ -358,7 +358,7 @@ jobs: - name: Update bundles config working-directory: apps/demos - run: npx gulp update-config + run: npx --no-install gulp update-config - name: Run Web Server run: | @@ -400,7 +400,7 @@ jobs: CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally run: | node ../../tools/scripts/performance_log.js & - npx nx test-testcafe + npx --no-install nx test-testcafe - name: Sanitize job name if: ${{ failure() }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f26324dfc204..f3c7c3c59cf9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -33,18 +33,18 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Compile renovation working-directory: ./packages/devextreme run: | - npx nx compile:r + npx --no-install nx compile:r # Remove package install after upgrade to TypeScript >= 4.6 - name: Lint renovation working-directory: ./packages/devextreme - run: npx nx lint-renovation + run: npx --no-install nx lint-renovation TS: runs-on: devextreme-shr2 @@ -65,30 +65,30 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Build working-directory: ./packages/devextreme - run: npx nx build + run: npx --no-install nx build - name: Lint TS working-directory: ./packages/devextreme env: DEBUG: eslint:cli-engine - run: npx nx lint-ts + run: npx --no-install nx lint-ts - name: Lint .d.ts working-directory: ./packages/devextreme env: DEBUG: eslint:cli-engine - run: npx nx lint-dts + run: npx --no-install nx lint-dts - name: Lint Testcafe tests working-directory: ./e2e/testcafe-devextreme env: DEBUG: eslint:cli-engine - run: npx nx lint + run: npx --no-install nx lint JS: runs-on: devextreme-shr2 @@ -109,18 +109,18 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Build working-directory: ./packages/devextreme - run: npx nx build + run: npx --no-install nx build - name: Lint JS working-directory: ./packages/devextreme env: DEBUG: eslint:cli-engine - run: npx nx lint-js + run: npx --no-install nx lint-js texts: runs-on: devextreme-shr2 @@ -141,12 +141,12 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Check texts working-directory: ./packages/devextreme - run: npx nx lint-texts + run: npx --no-install nx lint-texts CSS: runs-on: devextreme-shr2 @@ -167,12 +167,12 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Lint CSS working-directory: ./packages/devextreme-scss - run: npx nx lint + run: npx --no-install nx lint package_lock: runs-on: devextreme-shr2 @@ -190,7 +190,7 @@ jobs: run: | node -v npm -v - npm install --no-audit --no-fund --ignore-scripts + npm ci --no-audit --no-fund --ignore-scripts - name: Upload package-lock uses: actions/upload-artifact@v4 @@ -225,7 +225,7 @@ jobs: run: | node -v npm -v - npm install --no-audit --no-fund --ignore-scripts + npm ci --no-audit --no-fund --ignore-scripts - name: Check generated component reexports working-directory: ./packages/devextreme @@ -262,10 +262,10 @@ jobs: restore-keys: ${{ runner.os }}-node-modules - name: Install dependencies - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Lint wrappers - run: npx nx run-many -t lint -p devextreme-angular devextreme-react devextreme-vue + run: npx --no-install nx run-many -t lint -p devextreme-angular devextreme-react devextreme-vue notify: runs-on: devextreme-shr2 diff --git a/.github/workflows/packages_publishing.yml b/.github/workflows/packages_publishing.yml index 559fd2251bac..0fd74ff506e2 100644 --- a/.github/workflows/packages_publishing.yml +++ b/.github/workflows/packages_publishing.yml @@ -43,11 +43,11 @@ jobs: dotnet-version: 6.0.x - name: Install dependencies - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Set timestamp version if: ${{ env.SET_TIMESTAMP_VERSION == 'true' }} - run: npx ts-node tools/scripts/set-timestamp-version + run: npx --no-install ts-node tools/scripts/set-timestamp-version - name: Build npm packages env: @@ -72,7 +72,7 @@ jobs: cp reportGithub.json ./artifacts/deps-scanner/ - name: Build artifacts package - run: npx ts-node tools/scripts/make-artifacts-package + run: npx -no-install ts-node tools/scripts/make-artifacts-package - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/playgrounds_tests.yml b/.github/workflows/playgrounds_tests.yml index 00d6acdc1b2c..8f8db7293be2 100644 --- a/.github/workflows/playgrounds_tests.yml +++ b/.github/workflows/playgrounds_tests.yml @@ -38,12 +38,12 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Build working-directory: ./packages/devextreme - run: npx nx build + run: npx --no-install nx build - name: Zip artifacts working-directory: ./packages/devextreme @@ -74,11 +74,6 @@ jobs: - name: Get sources uses: actions/checkout@v4 - - name: Setup Chrome - uses: ./.github/actions/setup-chrome - with: - chrome-version: '133.0.6943.53' - - name: Use Node.js uses: actions/setup-node@v4 with: @@ -91,8 +86,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Download artifacts uses: actions/download-artifact@v4 @@ -110,9 +105,4 @@ jobs: - name: Check sources compilation working-directory: ./apps/${{ matrix.ARGS.platform }} - run: npx nx build - -# - name: Run test -# if: ${{ matrix.ARGS.platform != 'angular' }} -# working-directory: ./apps/${{ matrix.ARGS.platform }} -# run: npm run test + run: npx --no-install nx build diff --git a/.github/workflows/publish-demos.yml b/.github/workflows/publish-demos.yml index 9264857a3969..bfcfa6bf936a 100644 --- a/.github/workflows/publish-demos.yml +++ b/.github/workflows/publish-demos.yml @@ -26,7 +26,7 @@ jobs: restore-keys: ${{ runner.os }}-node-modules - name: DevExtreme - Install packages - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: DevExtreme - Build-all env: @@ -66,7 +66,7 @@ jobs: node-version: '20' - name: Install Dependencies - run: npm install + run: npm ci - name: Download devextreme sources uses: actions/download-artifact@v4 @@ -148,7 +148,7 @@ jobs: node-version: 18 - name: Install Dependencies - run: npm install + run: npm ci - name: Download devextreme sources uses: actions/download-artifact@v4 diff --git a/.github/workflows/qunit_tests-additional-renovation.yml b/.github/workflows/qunit_tests-additional-renovation.yml index f37ad80582c6..e7228d4e0dfc 100644 --- a/.github/workflows/qunit_tests-additional-renovation.yml +++ b/.github/workflows/qunit_tests-additional-renovation.yml @@ -49,8 +49,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Build env: @@ -60,8 +60,8 @@ jobs: working-directory: ./packages/devextreme run: | node ../../tools/scripts/performance_log.js & - npx nx build:dev - npx nx build:systemjs + npx --no-install nx build:dev + npx --no-install nx build:systemjs - name: Zip artifacts working-directory: ./packages/devextreme diff --git a/.github/workflows/qunit_tests-renovation.yml b/.github/workflows/qunit_tests-renovation.yml index 932f153566ec..6571783ec12a 100644 --- a/.github/workflows/qunit_tests-renovation.yml +++ b/.github/workflows/qunit_tests-renovation.yml @@ -35,8 +35,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Build working-directory: ./packages/devextreme @@ -48,7 +48,7 @@ jobs: BUILD_INPROGRESS_RENOVATION: "true" run: | node ../../tools/scripts/performance_log.js & - npx nx build:dev + npx --no-install nx build:dev - name: Zip artifacts working-directory: ./packages/devextreme diff --git a/.github/workflows/renovation.yml b/.github/workflows/renovation.yml index d4e78d861649..e44f6ae93cab 100644 --- a/.github/workflows/renovation.yml +++ b/.github/workflows/renovation.yml @@ -33,15 +33,15 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Build localization working-directory: ./packages/devextreme - run: npx gulp localization + run: npx --no-install gulp localization - name: Jest tests - run: npx nx test-jest devextreme-main + run: npx --no-install nx test-jest devextreme-main notify: runs-on: devextreme-shr2 diff --git a/.github/workflows/run-testcafe-on-gh-pages.yml b/.github/workflows/run-testcafe-on-gh-pages.yml index b00fb91afb76..c3645f24460a 100644 --- a/.github/workflows/run-testcafe-on-gh-pages.yml +++ b/.github/workflows/run-testcafe-on-gh-pages.yml @@ -54,7 +54,7 @@ jobs: - name: DevExtreme - Install packages working-directory: devextreme - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Run TestCafe tests working-directory: devextreme/apps/demos @@ -71,7 +71,7 @@ jobs: # DISABLE_DEMO_TEST_SETTINGS: ignore # Uncomment to ignore the `ignore` field # DISABLE_DEMO_TEST_SETTINGS: comparison-options # Uncomment to ignore the `comparison-options` field CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally - run: npx nx test-testcafe + run: npx --no-install nx test-testcafe - name: Copy screenshots artifacts if: ${{ failure() }} diff --git a/.github/workflows/styles.yml b/.github/workflows/styles.yml index a12d053ff92c..ddee3ad083c0 100644 --- a/.github/workflows/styles.yml +++ b/.github/workflows/styles.yml @@ -33,11 +33,11 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Run tests - run: npx nx test devextreme-scss + run: npx --no-install nx test devextreme-scss notify: runs-on: devextreme-shr2 diff --git a/.github/workflows/testcafe_tests.yml b/.github/workflows/testcafe_tests.yml index 009fe2d5ad2c..173933aad0f0 100644 --- a/.github/workflows/testcafe_tests.yml +++ b/.github/workflows/testcafe_tests.yml @@ -53,14 +53,14 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Build shell: bash run: | node ./tools/scripts/performance_log.js & - npx nx build devextreme-main + npx --no-install nx build devextreme-main - name: Zip artifacts working-directory: ./packages/devextreme @@ -182,8 +182,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Download artifacts uses: actions/download-artifact@v4 @@ -205,7 +205,7 @@ jobs: all_args="--browsers=chrome:devextreme-shr2 --componentFolder ${{ matrix.ARGS.componentFolder }} $CONCURRENCY $INDICES $PLATFORM $THEME" echo "$all_args" node ../../tools/scripts/performance_log.js & - npx nx test $all_args + npx --no-install nx test $all_args - name: Sanitize job name if: ${{ failure() }} diff --git a/.github/workflows/themebuilder_tests.yml b/.github/workflows/themebuilder_tests.yml index 334d377e3a95..a3f48ec962d6 100644 --- a/.github/workflows/themebuilder_tests.yml +++ b/.github/workflows/themebuilder_tests.yml @@ -29,8 +29,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Build etalon bundles working-directory: ./packages/devextreme-scss @@ -38,19 +38,19 @@ jobs: - name: Build working-directory: ./packages/devextreme-themebuilder - run: npx nx build + run: npx --no-install nx build - name: Run themebuilder tests (full set, node) working-directory: ./packages/devextreme-themebuilder - run: npx nx test + run: npx --no-install nx test - name: Check styles for duplicate rules (generic) working-directory: ./packages/devextreme-scss - run: npx stylelint --config tests/bundles-stylelint-config.json "../devextreme/artifacts/**/dx.light.css" + run: npx --no-install stylelint --config tests/bundles-stylelint-config.json "../devextreme/artifacts/**/dx.light.css" - name: Check styles for duplicate rules (material) working-directory: ./packages/devextreme-scss - run: npx stylelint --config tests/bundles-stylelint-config.json "../devextreme/artifacts/**/dx.material.blue.light.css" + run: npx --no-install stylelint --config tests/bundles-stylelint-config.json "../devextreme/artifacts/**/dx.material.blue.light.css" notify: runs-on: devextreme-shr2 diff --git a/.github/workflows/ts_declarations.yml b/.github/workflows/ts_declarations.yml index 5e8298d6d7f2..230af01ce0e4 100644 --- a/.github/workflows/ts_declarations.yml +++ b/.github/workflows/ts_declarations.yml @@ -29,8 +29,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Check dx.all.d.ts is up-to-date working-directory: ./packages/devextreme @@ -73,8 +73,8 @@ jobs: key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} restore-keys: ${{ runner.os }}-node-modules - - name: Run npm install - run: npm install --no-audit --no-fund + - name: Run npm ci + run: npm ci --no-audit --no-fund - name: Validate declarations working-directory: ./packages/devextreme diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml index 4b22aea6cd02..35479707ae87 100644 --- a/.github/workflows/update_version.yml +++ b/.github/workflows/update_version.yml @@ -34,7 +34,7 @@ jobs: git config --global user.name "DX Robot" - name: Install packages in devextreme repo - run: npm install --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Bump version run: npm run all:update-version -- ${{ inputs.version }} diff --git a/.github/workflows/wrapper_tests.yml b/.github/workflows/wrapper_tests.yml index 30f8ae496cb9..ed704bedac23 100644 --- a/.github/workflows/wrapper_tests.yml +++ b/.github/workflows/wrapper_tests.yml @@ -41,11 +41,11 @@ jobs: key: ${{ runner.os }}-node-${{ github.workflow }}-${{ hashFiles('**/package-lock.json') }} - name: Install npm packages - run: npm i --no-audit --no-fund + run: npm ci --no-audit --no-fund - name: Build devextreme package working-directory: ./packages/devextreme - run: npx nx build + run: npx --no-install nx build - name: Generate wrappers run: npm run regenerate-all @@ -63,25 +63,25 @@ jobs: fi - name: Angular - Build - run: npx nx build devextreme-angular + run: npx --no-install nx build devextreme-angular - name: Angular - Run tests - run: npx nx test:dev devextreme-angular + run: npx --no-install nx test:dev devextreme-angular - name: Angular - Check packing - run: npx nx pack devextreme-angular + run: npx --no-install nx pack devextreme-angular - name: React - Run tests - run: npx nx test devextreme-react + run: npx --no-install nx test devextreme-react - name: React - Check packing - run: npx nx pack devextreme-react + run: npx --no-install nx pack devextreme-react - name: Vue - Run tests - run: npx nx test devextreme-vue + run: npx --no-install nx test devextreme-vue - name: Vue - Check packing - run: npx nx pack devextreme-vue + run: npx --no-install nx pack devextreme-vue - name: Archive internal-tools artifacts uses: actions/upload-artifact@v4 diff --git a/apps/README.md b/apps/README.md index 1ee3a50ef6b0..6426adabce8a 100644 --- a/apps/README.md +++ b/apps/README.md @@ -8,7 +8,7 @@ To run a playground, clone this repository and follow the instructions below. Before you run a playground, install modules and build the devextreme package. Run the following scripts from the root directory of this repository: ``` -npm install +npm ci npm run build -w=devextreme-main ``` diff --git a/apps/angular/src/polyfills.ts b/apps/angular/src/polyfills.ts index a6d34ea67a3b..2e4c9bd73647 100644 --- a/apps/angular/src/polyfills.ts +++ b/apps/angular/src/polyfills.ts @@ -38,7 +38,7 @@ // import 'core-js/es6/set'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ -// import 'classlist.js'; // Run `npm install --save classlist.js`. +// import 'classlist.js'; /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; @@ -48,7 +48,7 @@ * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). */ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. +// import 'web-animations-js'; /** * By default, zone.js will patch all possible macroTask and DomEvents diff --git a/apps/demos/README.md b/apps/demos/README.md index 8c47e3a7329d..0fc0abe7fafb 100644 --- a/apps/demos/README.md +++ b/apps/demos/README.md @@ -2,7 +2,7 @@ This repository contains technical DevExtreme demos for Angular, React, Vue, jQuery, ASP.NET MVC, and ASP.NET Core. -To run the demos on your machine, clone this repository, run `npm install`, and follow the instructions below. +To run the demos on your machine, clone this repository, run `npm ci`, and follow the instructions below. ## Prepare Demos for Development Before running you need execute in `monorepo/root`: diff --git a/apps/demos/package.json b/apps/demos/package.json index 5cb733c9305b..d876d2c3f5ba 100644 --- a/apps/demos/package.json +++ b/apps/demos/package.json @@ -124,7 +124,7 @@ "lint-js": "eslint . --ignore-pattern 'Demos'", "lint-demos": "ts-node utils/eslint-runner", "lint-css": "stylelint **/*.{css,vue}", - "lint-non-demos": "npx nx run-many -t lint-js lint-css lint-html -p devextreme-demos", + "lint-non-demos": "nx run-many -t lint-js lint-css lint-html -p devextreme-demos", "lint": "npm-run-all -p -c lint-non-demos lint-demos", "test-testcafe": "node utils/visual-tests/testcafe-runner.mjs", "test-testcafe:accessibility": "cross-env STRATEGY=accessibility CONSTEL=jquery node utils/visual-tests/testcafe-runner.mjs", diff --git a/e2e/testcafe-devextreme/docker/Dockerfile b/e2e/testcafe-devextreme/docker/Dockerfile index b195356b9421..9ab41a1bba87 100644 --- a/e2e/testcafe-devextreme/docker/Dockerfile +++ b/e2e/testcafe-devextreme/docker/Dockerfile @@ -14,20 +14,20 @@ STOPSIGNAL SIGKILL COPY package*.json . -RUN npm install --no-audit --no-fund +RUN npm ci --no-audit --no-fund COPY . . RUN export PATH=$PATH:~/.dotnet \ && npm run build:testcafe \ - && npx gulp localization \ + && npx --no-install gulp localization \ && cd testing/renovation \ - && npm install --no-audit --no-fund --legacy-peer-deps \ + && npm ci --no-audit --no-fund --legacy-peer-deps \ && cd ../.. \ && npm run build:react \ - && npx gulp build-renovation-testing + && npx --no-install gulp build-renovation-testing RUN npm run build:react \ - && npx gulp build-renovation-testing + && npx --no-install gulp build-renovation-testing ENTRYPOINT ["node", "./testing/testcafe/docker/run-testcafe"] diff --git a/packages/devextreme/artifacts/npm/devextreme/package.json b/packages/devextreme/artifacts/npm/devextreme/package.json index 2a233c7186f8..57d921dcc030 100644 --- a/packages/devextreme/artifacts/npm/devextreme/package.json +++ b/packages/devextreme/artifacts/npm/devextreme/package.json @@ -1,7 +1,7 @@ { "name": "devextreme", "version": "24.1.16", - "description": "HTML5 JavaScript Component Suite for Responsive Web Development", + "description": "JavaScript/TypeScript Component Suite for Responsive Web Development", "keywords": [ "html5", "controls", diff --git a/packages/devextreme/docker-ci.sh b/packages/devextreme/docker-ci.sh index ce8b02217672..47841b2f0187 100755 --- a/packages/devextreme/docker-ci.sh +++ b/packages/devextreme/docker-ci.sh @@ -48,7 +48,7 @@ function run_test_impl { if [ "$LOCAL" != "true" ]; then if [ "$GITHUBACTION" != "true" ]; then - npm i + npm ci npm run build fi diff --git a/tools/scripts/build-all.ts b/tools/scripts/build-all.ts index b0fc8972e723..8ceae62c2910 100644 --- a/tools/scripts/build-all.ts +++ b/tools/scripts/build-all.ts @@ -27,7 +27,7 @@ const injectDescriptions = () => { sh.exec(`git clone -b ${MAJOR_VERSION} --depth 1 --config core.longpaths=true https://github.com/DevExpress/devextreme-documentation.git ${DOCUMENTATION_TEMP_DIR}`); sh.pushd(DOCUMENTATION_TEMP_DIR); - sh.exec('npm i'); + sh.exec('npm ci'); sh.exec(`npm run update-topics -- --artifacts ${INTERNAL_TOOLS_ARTIFACTS}`); sh.popd(); @@ -51,9 +51,9 @@ if (!devMode) { } if (devMode) { - sh.exec('npx nx build devextreme-main'); + sh.exec('npx --no-install nx build devextreme-main'); } else { - sh.exec('npx nx build devextreme-scss'); + sh.exec('npx --no-install nx build devextreme-scss'); sh.exec('npm run build-dist -w devextreme-main', { env: { ...sh.env, @@ -63,7 +63,7 @@ if (devMode) { } if (devMode) { - sh.exec(`npx nx build devextreme-themebuilder`); + sh.exec(`npx --no-install nx build devextreme-themebuilder`); } else { sh.exec('npm run build -w devextreme-themebuilder'); }