devextreme-cli 1.12.1 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -41,7 +41,7 @@ const run = async(commands, options) => {
41
41
  await application.run(commands, options, devextremeConfig.read());
42
42
  } else if(application.isMigrationCommand(commands[0])) {
43
43
  if(!commands[1]) {
44
- console.error('Please specify a change name for migration.');
44
+ console.error('Please specify a migration command.');
45
45
  printHelp('migrate');
46
46
  return;
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devextreme-cli",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "DevExtreme CLI",
5
5
  "keywords": [
6
6
  "devexpress",
@@ -43,14 +43,13 @@
43
43
  "minimist": "^1.2.8",
44
44
  "mustache": "^3.2.1",
45
45
  "prompts": "^2.4.2",
46
- "sass": "^1.93.3",
46
+ "sass": "^1.94.2",
47
47
  "semver": "^5.7.2",
48
48
  "strip-bom": "^4.0.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@typescript-eslint/eslint-plugin": "^4.33.0",
52
52
  "@typescript-eslint/parser": "^4.33.0",
53
- "babel-eslint": "^10.1.0",
54
53
  "create-vite": "7.1.3",
55
54
  "cross-env": "^5.2.1",
56
55
  "eslint": "^7.32.0",
@@ -74,5 +73,9 @@
74
73
  "typescript-eslint-parser": "^22.0.0",
75
74
  "wait-on": "8.0.5"
76
75
  },
77
- "gitHead": "7af3cab84fb0dee433711d63dd8ed65af4c7d9dd"
76
+ "overrides": {
77
+ "@babel/traverse@<7.23.2": ">=7.23.2",
78
+ "braces@<3.0.3": ">=3.0.3"
79
+ },
80
+ "gitHead": "d8919cf6f14386254ace295b651ce3f532833ba8"
78
81
  }
@@ -19,7 +19,7 @@ const handleWrongAppType = (appType, command) => {
19
19
  };
20
20
 
21
21
  const handleWrongChangeName = (changeName, command) => {
22
- console.error(`The '${changeName}' change name is not valid`);
22
+ console.error(`Invalid migration command: ${changeName}`);
23
23
  printHelp(command);
24
24
  };
25
25
 
@@ -194,7 +194,7 @@ const migrateConfigComponents = async(options = {}) => {
194
194
  if(!collectionPath) {
195
195
  const prompts = require('prompts');
196
196
 
197
- console.log(`\nThe '${collectionName}' package is required to run this command.`);
197
+ console.log(`\nRequired package is missing: '${collectionName}'`);
198
198
 
199
199
  const response = await prompts({
200
200
  type: 'confirm',
@@ -204,7 +204,7 @@ const migrateConfigComponents = async(options = {}) => {
204
204
  });
205
205
 
206
206
  if(!response.install) {
207
- console.log('Migration cancelled. Install devextreme-schematics manually and rerun the command.');
207
+ console.log('Migration was canceled.');
208
208
  process.exit(1);
209
209
  }
210
210
  }
package/src/commands.json CHANGED
@@ -51,19 +51,19 @@
51
51
  }, {
52
52
  "name": "migrate",
53
53
  "description": "Migration commands for DevExtreme applications",
54
- "usage": "devextreme migrate <change name> [options]",
54
+ "usage": "devextreme migrate <migration command> [options]",
55
55
  "arguments": [{
56
56
  "name": "angular-config-components",
57
- "description": "Migrate to the latest DevExtreme configuration components.",
57
+ "description": "Migrates DevExtreme Angular applications to named configuration components.",
58
58
  "options": [{
59
59
  "name": "--include",
60
- "description": "Template file glob patterns to include (default: **/*.html). You can pass multiple patterns as a comma-separated string (e.g. \"**/a.html,**/b.html\") or as an array (e.g. [\"**/a.html\",\"**/b.html\"])."
60
+ "description": "Template file glob patterns to include (default: **/*.html). You can pass multiple patterns as a comma-separated string (\"**/a.html,**/b.html\") or as an array ([\"**/a.html\",\"**/b.html\"])."
61
61
  }, {
62
62
  "name": "--script-include",
63
- "description": "TypeScript/JavaScript file glob patterns to scan for inline templates (default: **/*.ts,**/*.js). You can pass multiple patterns as a comma-separated string or as an array. Pass an empty value ('' or []) to disable."
63
+ "description": "TypeScript/JavaScript file glob patterns to scan for inline templates (default: **/*.ts,**/*.js). You can pass multiple patterns as a comma-separated string or as an array. Pass an empty value to disable ('' or [])."
64
64
  }, {
65
65
  "name": "--dry",
66
- "description": "Run in dry mode to preview changes without applying them (default: false)."
66
+ "description": "Run in dry mode to preview changes."
67
67
  }]
68
68
  }]
69
69
  }, {
@@ -1,8 +1,8 @@
1
1
  const packageJson = require('../../package.json');
2
2
  module.exports = {
3
- 'devextreme': '25.1.6',
4
- 'devextreme-react': '25.1.6',
5
- 'devextreme-vue': '25.1.6',
3
+ 'devextreme': '25.1.7',
4
+ 'devextreme-react': '25.1.7',
5
+ 'devextreme-vue': '25.1.7',
6
6
  'create-vite': '7.0.0',
7
7
  'create-vue': '3.17.0',
8
8
  'create-next-app': '15.3.4',
@@ -2,12 +2,12 @@ const semver = require('semver').SemVer;
2
2
  const execSync = require('child_process').execSync;
3
3
 
4
4
  function parseNgCliVersion(stdout) {
5
- return /angular.cli:\s*(\S+)/ig.exec(stdout)[1];
5
+ return stdout.trim();
6
6
  }
7
7
 
8
8
  const getLocalNgVersion = () => {
9
9
  try {
10
- const version = parseNgCliVersion(execSync('ng v').toString());
10
+ const version = parseNgCliVersion(execSync('ng --version').toString());
11
11
  return new semver(version);
12
12
  } catch(e) {
13
13
  return '';