From 776c3e14d08ea96a847813c9f27c82980b6f163a Mon Sep 17 00:00:00 2001 From: dxvladslavvolkov Date: Mon, 25 Nov 2024 14:39:14 +0400 Subject: [PATCH] Remove a variable to check ng 17 --- .../src/applications/application.angular.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/devextreme-cli/src/applications/application.angular.js b/packages/devextreme-cli/src/applications/application.angular.js index 847e9350a..c164f8c97 100644 --- a/packages/devextreme-cli/src/applications/application.angular.js +++ b/packages/devextreme-cli/src/applications/application.angular.js @@ -10,8 +10,7 @@ const latestVersions = require('../utility/latest-versions'); const { extractToolingVersion, toolingVersionOptionName } = require('../utility/extract-tooling-version'); const schematicsVersion = latestVersions['devextreme-schematics'] || 'latest'; -const minNgCliVersion = new semver('16.0.0'); -const ngCliWithStandalone = new semver('17.0.0'); +const minNgCliVersion = new semver('17.0.0'); async function runSchematicCommand(schematicCommand, options, evaluatingOptions) { const collectionName = 'devextreme-schematics'; @@ -77,7 +76,6 @@ const install = async(options) => { const create = async(appName, options) => { const layout = await getLayoutInfo(options.layout); - const currentNgVersion = ngVersion.getNgCliVersion().version; const commandArguments = [ 'new', @@ -85,13 +83,11 @@ const create = async(appName, options) => { '--style=scss', '--routing=false', '--skip-tests=true', - '--skip-install=true' + '--skip-install=true', + '--standalone=false', + '--ssr=false' ]; - if(ngCliWithStandalone.compare(currentNgVersion) <= 0) { - commandArguments.push('--standalone=false', '--ssr=false'); - } - await runNgCommand(commandArguments, options); const appPath = path.join(process.cwd(), appName);