igniteui-cli 9.0.4 → 9.0.5-beta.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/package.json +4 -4
- package/templates/angular/ig-ts/projects/empty/files/package.json +14 -14
- package/templates/jquery/js/projects/empty/files/package.json +1 -1
- package/templates/quickstart/angular/package.json +1 -1
- package/templates/quickstart/react/package.json +1 -1
- package/templates/react/igr-es6/bullet-graph/default/index.js +1 -1
- package/templates/react/igr-es6/category-chart/default/index.js +1 -1
- package/templates/react/igr-es6/doughnut-chart/default/index.js +1 -1
- package/templates/react/igr-es6/financial-chart/default/index.js +1 -1
- package/templates/react/igr-es6/grid/basic/index.js +2 -2
- package/templates/react/igr-es6/linear-gauge/default/index.js +1 -1
- package/templates/react/igr-es6/pie-chart/default/index.js +1 -1
- package/templates/react/igr-es6/projects/_base/files/package.json +1 -1
- package/templates/react/igr-es6/radial-gauge/default/index.js +1 -1
- package/templates/webcomponents/TypeScriptFileUpdate.js +9 -9
- package/templates/webcomponents/igc-ts/projects/empty/files/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.5-beta.0",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"all": true
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@igniteui/angular-templates": "~13.0.
|
|
76
|
-
"@igniteui/cli-core": "~9.0.
|
|
75
|
+
"@igniteui/angular-templates": "~13.0.905-beta.0",
|
|
76
|
+
"@igniteui/cli-core": "~9.0.5-beta.0",
|
|
77
77
|
"chalk": "^2.3.2",
|
|
78
78
|
"fs-extra": "^3.0.1",
|
|
79
79
|
"glob": "^7.1.2",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"opn": "^5.3.0",
|
|
82
82
|
"resolve": "^1.6.0",
|
|
83
83
|
"through2": "^2.0.3",
|
|
84
|
-
"typescript": "~4.
|
|
84
|
+
"typescript": "~4.5.2",
|
|
85
85
|
"yargs": "^8.0.2"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
@@ -10,26 +10,26 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": true,
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@angular/animations": "~13.
|
|
14
|
-
"@angular/common": "~13.
|
|
15
|
-
"@angular/compiler": "~13.
|
|
16
|
-
"@angular/core": "~13.
|
|
17
|
-
"@angular/forms": "~13.
|
|
18
|
-
"@angular/platform-browser": "~13.
|
|
19
|
-
"@angular/platform-browser-dynamic": "~13.
|
|
20
|
-
"@angular/router": "~13.
|
|
13
|
+
"@angular/animations": "~13.1.1",
|
|
14
|
+
"@angular/common": "~13.1.1",
|
|
15
|
+
"@angular/compiler": "~13.1.1",
|
|
16
|
+
"@angular/core": "~13.1.1",
|
|
17
|
+
"@angular/forms": "~13.1.1",
|
|
18
|
+
"@angular/platform-browser": "~13.1.1",
|
|
19
|
+
"@angular/platform-browser-dynamic": "~13.1.1",
|
|
20
|
+
"@angular/router": "~13.1.1",
|
|
21
21
|
"jquery": ">=1.9.1",
|
|
22
22
|
"jquery-ui": ">=1.10.5",
|
|
23
|
-
"igniteui-angular-wrappers": "^13.0
|
|
24
|
-
"ignite-ui": "~
|
|
23
|
+
"igniteui-angular-wrappers": "^13.1.0",
|
|
24
|
+
"ignite-ui": "~21.2",
|
|
25
25
|
"rxjs": "~6.6.0",
|
|
26
26
|
"tslib": "^2.2.0",
|
|
27
27
|
"zone.js": "~0.11.4"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@angular-devkit/build-angular": "~13.
|
|
31
|
-
"@angular/cli": "~13.
|
|
32
|
-
"@angular/compiler-cli": "~13.
|
|
30
|
+
"@angular-devkit/build-angular": "~13.1.2",
|
|
31
|
+
"@angular/cli": "~13.1.2",
|
|
32
|
+
"@angular/compiler-cli": "~13.1.1",
|
|
33
33
|
"@types/jasmine": "~3.8.0",
|
|
34
34
|
"@types/node": "^12.11.1",
|
|
35
35
|
"igniteui-cli": "^$(cliVersion)",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"karma-coverage": "~2.0.3",
|
|
40
40
|
"karma-jasmine": "~4.0.0",
|
|
41
41
|
"karma-jasmine-html-reporter": "~1.7.0",
|
|
42
|
-
"typescript": "~4.
|
|
42
|
+
"typescript": "~4.5.2"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -11,7 +11,7 @@ class IgrBulletGraphTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReact
|
|
|
11
11
|
this.projectType = "igr-es6";
|
|
12
12
|
this.name = "Bullet Graph";
|
|
13
13
|
this.description = `allows for a linear and concise view of measures compared against a scale.`;
|
|
14
|
-
this.packages = ["igniteui-react-gauges@~16.
|
|
14
|
+
this.packages = ["igniteui-react-gauges@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
module.exports = new IgrBulletGraphTemplate();
|
|
@@ -12,7 +12,7 @@ class IgrCategoryChartTemplate extends IgniteUIForReactTemplate_1.IgniteUIForRea
|
|
|
12
12
|
this.name = "Category Chart";
|
|
13
13
|
this.description = `makes visualizing category data easy. Simplifies the complexities
|
|
14
14
|
of the data visualization domain into manageable API`;
|
|
15
|
-
this.packages = ["igniteui-react-charts@~16.
|
|
15
|
+
this.packages = ["igniteui-react-charts@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
module.exports = new IgrCategoryChartTemplate();
|
|
@@ -11,7 +11,7 @@ class IgrDoughnutChartTemplate extends IgniteUIForReactTemplate_1.IgniteUIForRea
|
|
|
11
11
|
this.projectType = "igr-es6";
|
|
12
12
|
this.name = "Doughnut Chart";
|
|
13
13
|
this.description = `proportionally illustrate the occurrences of variables.`;
|
|
14
|
-
this.packages = ["igniteui-react-charts@~16.
|
|
14
|
+
this.packages = ["igniteui-react-charts@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
module.exports = new IgrDoughnutChartTemplate();
|
|
@@ -13,7 +13,7 @@ class IgrFinancialChartTemplate extends IgniteUIForReactTemplate_1.IgniteUIForRe
|
|
|
13
13
|
this.name = "Financial Chart";
|
|
14
14
|
this.description = `charting component that makes it easy to visualize financial data by
|
|
15
15
|
using a simple and intuitive API.`;
|
|
16
|
-
this.packages = ["igniteui-react-charts@~16.
|
|
16
|
+
this.packages = ["igniteui-react-charts@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
module.exports = new IgrFinancialChartTemplate();
|
|
@@ -15,8 +15,8 @@ class GridTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTemplate {
|
|
|
15
15
|
this.components = ["Grid"];
|
|
16
16
|
this.controlGroup = "Data Grids";
|
|
17
17
|
// TODO: read version from igniteui-react-core in package.json
|
|
18
|
-
this.packages = ["igniteui-react-grids@~16.
|
|
19
|
-
"igniteui-react-layouts@~16.
|
|
18
|
+
this.packages = ["igniteui-react-grids@~16.15.0", "igniteui-react-inputs@~16.15.0",
|
|
19
|
+
"igniteui-react-layouts@~16.15.0"];
|
|
20
20
|
this.hasExtraConfiguration = false;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -11,7 +11,7 @@ class IgrLinearGaugeTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReact
|
|
|
11
11
|
this.projectType = "igr-es6";
|
|
12
12
|
this.name = "Linear Gauge";
|
|
13
13
|
this.description = `value compared against a scale and one or more ranges.`;
|
|
14
|
-
this.packages = ["igniteui-react-gauges@~16.
|
|
14
|
+
this.packages = ["igniteui-react-gauges@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
module.exports = new IgrLinearGaugeTemplate();
|
|
@@ -11,7 +11,7 @@ class IgrPieChartTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReactTem
|
|
|
11
11
|
this.projectType = "igr-es6";
|
|
12
12
|
this.name = "Pie Chart";
|
|
13
13
|
this.description = `easily illustate the proportions of data entries`;
|
|
14
|
-
this.packages = ["igniteui-react-charts@~16.
|
|
14
|
+
this.packages = ["igniteui-react-charts@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
module.exports = new IgrPieChartTemplate();
|
|
@@ -12,7 +12,7 @@ class IgrRadialGaugeTemplate extends IgniteUIForReactTemplate_1.IgniteUIForReact
|
|
|
12
12
|
this.name = "Radial Gauge";
|
|
13
13
|
this.description = `provides a number of visual elements, like a needle, tick marks, ranges
|
|
14
14
|
and labels, in order to create a predefined shape and scale.`;
|
|
15
|
-
this.packages = ["igniteui-react-gauges@~16.
|
|
15
|
+
this.packages = ["igniteui-react-gauges@~16.15.0"]; // TODO: read version from igniteui-react-core in package.json
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
module.exports = new IgrRadialGaugeTemplate();
|
|
@@ -109,10 +109,10 @@ class TypeScriptFileUpdate {
|
|
|
109
109
|
resultNodes = nodes
|
|
110
110
|
.concat(newObject);
|
|
111
111
|
}
|
|
112
|
-
const elements = ts.createNodeArray([
|
|
112
|
+
const elements = ts.factory.createNodeArray([
|
|
113
113
|
...resultNodes
|
|
114
114
|
]);
|
|
115
|
-
return ts.
|
|
115
|
+
return ts.factory.updateArrayLiteralExpression(array, elements);
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
118
118
|
return ts.visitEachChild(node, conditionalVisitor, context);
|
|
@@ -151,16 +151,16 @@ class TypeScriptFileUpdate {
|
|
|
151
151
|
if (!newImports.length) {
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
-
const newStatements = ts.createNodeArray([
|
|
154
|
+
const newStatements = ts.factory.createNodeArray([
|
|
155
155
|
...this.targetSource.statements.slice(0, this.importsMeta.lastIndex),
|
|
156
156
|
...newImports.map(x => this.createIdentifierImport(x.from)),
|
|
157
157
|
...this.targetSource.statements.slice(this.importsMeta.lastIndex)
|
|
158
158
|
]);
|
|
159
159
|
newImports.forEach(x => this.createdStringLiterals.push(x.from));
|
|
160
|
-
this.targetSource = ts.
|
|
160
|
+
this.targetSource = ts.factory.updateSourceFile(this.targetSource, newStatements);
|
|
161
161
|
}
|
|
162
162
|
createIdentifierImport(importPath) {
|
|
163
|
-
const importDeclaration = ts.createImportDeclaration(undefined, undefined, undefined, ts.
|
|
163
|
+
const importDeclaration = ts.factory.createImportDeclaration(undefined, undefined, undefined, ts.factory.createStringLiteral(importPath));
|
|
164
164
|
return importDeclaration;
|
|
165
165
|
}
|
|
166
166
|
//#endregion ts.TransformerFactory
|
|
@@ -295,10 +295,10 @@ class TypeScriptFileUpdate {
|
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
createRouteEntry(filePath, className, linkText) {
|
|
298
|
-
const routePath = ts.createPropertyAssignment("path", ts.
|
|
299
|
-
const routeComponent = ts.createPropertyAssignment("component", ts.
|
|
300
|
-
const routeData = ts.createPropertyAssignment("name", ts.
|
|
301
|
-
return ts.
|
|
298
|
+
const routePath = ts.factory.createPropertyAssignment("path", ts.factory.createStringLiteral(filePath));
|
|
299
|
+
const routeComponent = ts.factory.createPropertyAssignment("component", ts.factory.createStringLiteral(className));
|
|
300
|
+
const routeData = ts.factory.createPropertyAssignment("name", ts.factory.createStringLiteral(linkText));
|
|
301
|
+
return ts.factory.createObjectLiteralExpression([routePath, routeComponent, routeData]);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
exports.TypeScriptFileUpdate = TypeScriptFileUpdate;
|