devextreme-cli 1.2.23 → 1.3.0

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Developer Express Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Developer Express Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devextreme-cli",
3
- "version": "1.2.23",
3
+ "version": "1.3.0",
4
4
  "description": "DevExtreme CLI",
5
5
  "keywords": [
6
6
  "devexpress",
@@ -69,5 +69,5 @@
69
69
  "tree-kill-promise": "^1.0.3",
70
70
  "typescript": "^4.0.2"
71
71
  },
72
- "gitHead": "777e8d2b209c52381f604bb395a5289c8cded7da"
72
+ "gitHead": "c61a31f44439fe1b0e82449a15c4db8375af34f3"
73
73
  }
package/src/.DS_Store ADDED
Binary file
@@ -32,7 +32,7 @@ async function runSchematicCommand(schematicCommand, options, evaluatingOptions)
32
32
  }
33
33
 
34
34
  async function runNgCommand(commandArguments, evaluatingOptions) {
35
- const ngCommandArguments = await hasSutableNgCli() ? [] : ['-p', '@angular/cli@12'];
35
+ const ngCommandArguments = await hasSutableNgCli() ? [] : ['-p', '@angular/cli'];
36
36
 
37
37
  ngCommandArguments.push('ng', ...commandArguments);
38
38
  return runCommand('npx', ngCommandArguments, evaluatingOptions);
@@ -42,7 +42,7 @@ const updateJsonPropName = (path, name) => {
42
42
  };
43
43
 
44
44
  const create = (appName, options) => {
45
- const commandArguments = ['create-react-app', appName];
45
+ const commandArguments = ['-p=create-react-app', 'create-react-app', appName];
46
46
 
47
47
  getLayoutInfo(options.layout).then((layoutInfo) => {
48
48
  runCommand('npx', commandArguments).then(() => {
@@ -91,6 +91,12 @@ const modifyIndexHtml = (appPath, appName) => {
91
91
  fs.writeFileSync(indexHtmlPath, htmlContent);
92
92
  };
93
93
 
94
+ const getMainModulePath = (appPath) => {
95
+ const jsModule = path.join(appPath, 'src', 'main.js');
96
+
97
+ return fs.existsSync(jsModule) ? jsModule : path.join(appPath, 'src', 'main.ts');
98
+ };
99
+
94
100
  const addTemplate = (appPath, appName, templateOptions, version) => {
95
101
  if(!version) {
96
102
  version = getVueVersion();
@@ -113,16 +119,17 @@ const addTemplate = (appPath, appName, templateOptions, version) => {
113
119
 
114
120
  const install = (options, appPath, styles) => {
115
121
  appPath = appPath ? appPath : process.cwd();
116
- const mainModulePath = path.join(appPath, 'src', 'main.js');
117
- addStylesToApp(mainModulePath, styles || defaultStyles);
122
+ addStylesToApp(appPath, styles || defaultStyles);
118
123
  packageJsonUtils.addDevextreme(appPath, options.dxversion, 'vue');
119
124
 
120
125
  packageManager.runInstall({ cwd: appPath });
121
126
  };
122
127
 
123
- const addStylesToApp = (filePath, styles) => {
128
+ const addStylesToApp = (appPath, styles) => {
129
+ const mainModulePath = getMainModulePath(appPath);
130
+
124
131
  styles.forEach(style => {
125
- moduleUtils.insertImport(filePath, style);
132
+ moduleUtils.insertImport(mainModulePath, style);
126
133
  });
127
134
  };
128
135
 
Binary file
@@ -7,6 +7,10 @@
7
7
  width: 100%;
8
8
  }
9
9
 
10
+ .side-nav-outer-toolbar .dx-drawer {
11
+ height: calc(100% - 56px)
12
+ }
13
+
10
14
  .app .content {
11
15
  line-height: 1.5;
12
16
 
Binary file
@@ -8,6 +8,10 @@
8
8
  }
9
9
  }
10
10
 
11
+ .side-nav-outer-toolbar .dx-drawer {
12
+ height: calc(100% - 56px)
13
+ }
14
+
11
15
  .content-block {
12
16
  margin-left: 40px;
13
17
  margin-right: 40px;
Binary file
@@ -8,6 +8,10 @@
8
8
  }
9
9
  }
10
10
 
11
+ .side-nav-outer-toolbar .dx-drawer {
12
+ height: calc(100% - 56px)
13
+ }
14
+
11
15
  .content-block {
12
16
  margin-left: 40px;
13
17
  margin-right: 40px;