igniteui-cli 13.2.2-beta.0 → 13.2.2-beta.1

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.
@@ -54,7 +54,7 @@ class IgniteUIForReactTemplate {
54
54
  const routeModulePath = options.parentRoutingModulePath;
55
55
  if (!(options && options.skipRoute)
56
56
  && cli_core_1.App.container.get(cli_core_1.FS_TOKEN).fileExists(routeModulePath)) {
57
- const routingModule = new ReactTypeScriptFileUpdate_1.ReactTypeScriptFileUpdate(path.join(projectPath, routeModulePath), { convertTabsToSpaces: false, indentSize: 4, singleQuotes: true }, { jsx: typescript_1.JsxEmit.Preserve });
57
+ const routingModule = new ReactTypeScriptFileUpdate_1.ReactTypeScriptFileUpdate(path.join(projectPath, routeModulePath), { convertTabsToSpaces: false, indentSize: 2, singleQuotes: true }, { jsx: typescript_1.JsxEmit.Preserve });
58
58
  const modulePath = `./${cli_core_1.Util.lowerDashed(name)}/${cli_core_1.Util.lowerDashed(name)}-routes`;
59
59
  const child = {
60
60
  identifierName: cli_core_1.ROUTES_VARIABLE_NAME,
@@ -31,7 +31,7 @@ class IgniteUIForWebComponentsTemplate {
31
31
  return;
32
32
  }
33
33
  const routeModulePath = options.parentRoutingModulePath;
34
- const routingModule = new WebComponentsTypeScriptFileUpdate_1.WebComponentsTypeScriptFileUpdate(path.join(projectPath, routeModulePath), { convertTabsToSpaces: false, indentSize: 4, singleQuotes: false });
34
+ const routingModule = new WebComponentsTypeScriptFileUpdate_1.WebComponentsTypeScriptFileUpdate(path.join(projectPath, routeModulePath), { convertTabsToSpaces: false, indentSize: 2, singleQuotes: true });
35
35
  if (!(options && options.skipRoute) && cli_core_1.App.container.get(cli_core_1.FS_TOKEN)
36
36
  .fileExists(routeModulePath)) {
37
37
  const modulePath = `./${cli_core_1.Util.lowerDashed(fullName)}/${cli_core_1.Util.lowerDashed(fullName)}-routing`;
@@ -40,16 +40,16 @@ class IgniteUIForWebComponentsTemplate {
40
40
  aliasName: options.routerChildren,
41
41
  modulePath
42
42
  };
43
- const children = routeModulePath.includes(cli_core_1.WC_APP_ROUTING_NAME)
44
- ? child
45
- : undefined;
43
+ const children = options.hasChildren ? child : undefined;
46
44
  if (defaultPath) {
47
45
  routingModule.addRoute({
48
46
  path: "",
49
47
  redirectTo: options.selector,
50
48
  name: cli_core_1.Util.nameFromPath(fullName),
51
49
  children
52
- });
50
+ }, false, // multiline
51
+ true // prepend
52
+ );
53
53
  }
54
54
  if (options.hasChildren) {
55
55
  routingModule.addRoute({
@@ -57,7 +57,9 @@ class IgniteUIForWebComponentsTemplate {
57
57
  identifierName: options.selector,
58
58
  name: cli_core_1.Util.nameFromPath(fullName),
59
59
  children
60
- });
60
+ }, false, // multiline
61
+ true // prepend
62
+ );
61
63
  }
62
64
  else {
63
65
  routingModule.addRoute({
@@ -65,7 +67,7 @@ class IgniteUIForWebComponentsTemplate {
65
67
  identifierName: options.selector,
66
68
  name: cli_core_1.Util.nameFromPath(fullName)
67
69
  }, false, // multiline
68
- false // prepend
70
+ true // prepend
69
71
  );
70
72
  }
71
73
  routingModule.finalize();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "13.2.2-beta.0",
3
+ "version": "13.2.2-beta.1",
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": "~17.2.1322-beta.0",
76
- "@igniteui/cli-core": "~13.2.2-beta.0",
75
+ "@igniteui/angular-templates": "~17.2.1322-beta.1",
76
+ "@igniteui/cli-core": "~13.2.2-beta.1",
77
77
  "chalk": "^2.3.2",
78
78
  "fs-extra": "^3.0.1",
79
79
  "glob": "^7.1.2",