@smapiot/pilet-template-angular 1.0.0 → 1.0.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/lib/index.js CHANGED
@@ -234,8 +234,8 @@ var require_version = __commonJS({
234
234
  const s2 = splitVersion(v2);
235
235
  const len = Math.max(s1.length - 1, s2.length - 1);
236
236
  for (let i = 0; i < len; i++) {
237
- const n1 = parseInt(s1[i] || "0", 10);
238
- const n2 = parseInt(s2[i] || "0", 10);
237
+ const n1 = parseInt(s1[i] || "x", 10);
238
+ const n2 = parseInt(s2[i] || "x", 10);
239
239
  if (n1 > n2) {
240
240
  return 1;
241
241
  } else if (n2 > n1) {
@@ -1376,7 +1376,8 @@ var tsVersions = {
1376
1376
  12: "~4.2",
1377
1377
  13: "~4.4",
1378
1378
  14: "~4.7",
1379
- 15: "~4.8"
1379
+ 15: "~4.8",
1380
+ 16: "~4.9"
1380
1381
  };
1381
1382
  var rxjsVersions = {
1382
1383
  2: "^5.0",
@@ -1391,7 +1392,8 @@ var rxjsVersions = {
1391
1392
  12: "^6.5",
1392
1393
  13: "^7.4",
1393
1394
  14: "^7.4",
1394
- 15: "^7.4"
1395
+ 15: "^7.4",
1396
+ 16: "^7.4"
1395
1397
  };
1396
1398
  var zoneVersions = {
1397
1399
  2: "~0.9",
@@ -1406,7 +1408,8 @@ var zoneVersions = {
1406
1408
  12: "0.11.4",
1407
1409
  13: "0.11.4",
1408
1410
  14: "0.12.0",
1409
- 15: "0.13.0"
1411
+ 15: "0.13.0",
1412
+ 16: "0.13.0"
1410
1413
  };
1411
1414
 
1412
1415
  // src/helpers.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smapiot/pilet-template-angular",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Official scaffolding template for pilets: 'angular'.",
5
5
  "keywords": [
6
6
  "piral-cli",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "ngVersion": {
26
26
  "description": "Defines the (major) version of Angular to use in case of a standalone pilet.",
27
- "default": 14,
27
+ "default": 16,
28
28
  "type": "number"
29
29
  }
30
30
  },
@@ -54,7 +54,7 @@
54
54
  "test": "echo \"Error: run tests from root\" && exit 1"
55
55
  },
56
56
  "devDependencies": {
57
- "@smapiot/template-utils": "^1.0.0"
57
+ "@smapiot/template-utils": "^1.0.2"
58
58
  },
59
- "gitHead": "f1f0c4a1e1cdbdf066d018cda4c4a0509c78c53e"
59
+ "gitHead": "dd0dffc66c8087a5247e6f710e3cb96c6396aa0f"
60
60
  }
package/src/versions.ts CHANGED
@@ -13,6 +13,7 @@ export const tsVersions = {
13
13
  13: '~4.4',
14
14
  14: '~4.7',
15
15
  15: '~4.8',
16
+ 16: '~4.9',
16
17
  };
17
18
 
18
19
  // Mapping of Angular to RxJs versions
@@ -30,6 +31,7 @@ export const rxjsVersions = {
30
31
  13: '^7.4',
31
32
  14: '^7.4',
32
33
  15: '^7.4',
34
+ 16: '^7.4',
33
35
  };
34
36
 
35
37
  // Mapping of Angular to Zone.js versions
@@ -47,4 +49,5 @@ export const zoneVersions = {
47
49
  13: '0.11.4',
48
50
  14: '0.12.0',
49
51
  15: '0.13.0',
52
+ 16: '0.13.0',
50
53
  };
@@ -1,15 +1,24 @@
1
1
  import { NgModule } from '@angular/core';
2
- import { RouterModule } from '@angular/router';
2
+ import { RouterModule, Routes } from '@angular/router';
3
3
  import { BrowserModule } from '@angular/platform-browser';
4
4
  import { SharedModule } from 'piral-ng/common';
5
5
 
6
6
  import { PageComponent } from './page.component';
7
7
  import { MenuComponent } from './menu.component';
8
8
 
9
+ export const routes: Routes = [
10
+ {
11
+ path: '',
12
+ children: [
13
+ { path: 'sample', component: PageComponent },
14
+ ],
15
+ },
16
+ ];
17
+
9
18
  @NgModule({
10
19
  bootstrap: [],
11
20
  declarations: [PageComponent, MenuComponent],
12
21
  exports: [PageComponent, MenuComponent],
13
- imports: [BrowserModule, SharedModule, RouterModule.forRoot([])],
22
+ imports: [BrowserModule, SharedModule, RouterModule.forRoot(routes)],
14
23
  })
15
24
  export class AppModule {}