@smapiot/pilet-template-angular 0.15.1-beta.4883 → 0.15.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.
- package/lib/index.js +10 -4
- package/package.json +3 -3
- package/src/helpers.ts +0 -4
- package/src/index.ts +10 -0
- package/templates/app.module.ts.ejs +1 -1
package/lib/index.js
CHANGED
|
@@ -1369,22 +1369,18 @@ function getStandalonePackageJson(cliVersion, ngVersion) {
|
|
|
1369
1369
|
return {
|
|
1370
1370
|
importmap: {
|
|
1371
1371
|
imports: {
|
|
1372
|
-
"@angular/animations": "@angular/animations",
|
|
1373
1372
|
"@angular/common": "@angular/common",
|
|
1374
1373
|
"@angular/compiler": "@angular/compiler",
|
|
1375
1374
|
"@angular/core": "@angular/core",
|
|
1376
|
-
"@angular/forms": "@angular/forms",
|
|
1377
1375
|
"@angular/platform-browser": "@angular/platform-browser",
|
|
1378
1376
|
"@angular/platform-browser-dynamic": "@angular/platform-browser-dynamic",
|
|
1379
1377
|
"@angular/router": "@angular/router"
|
|
1380
1378
|
}
|
|
1381
1379
|
},
|
|
1382
1380
|
dependencies: {
|
|
1383
|
-
"@angular/animations": ngVersion,
|
|
1384
1381
|
"@angular/common": ngVersion,
|
|
1385
1382
|
"@angular/compiler": ngVersion,
|
|
1386
1383
|
"@angular/core": ngVersion,
|
|
1387
|
-
"@angular/forms": ngVersion,
|
|
1388
1384
|
"@angular/platform-browser": ngVersion,
|
|
1389
1385
|
"@angular/platform-browser-dynamic": ngVersion,
|
|
1390
1386
|
"@angular/router": ngVersion,
|
|
@@ -1466,6 +1462,16 @@ var src_default = (0, import_template_utils.createPiletTemplateFactory)(root, (p
|
|
|
1466
1462
|
name: "page.component.ts",
|
|
1467
1463
|
target: "<src>/app/page.component.ts"
|
|
1468
1464
|
},
|
|
1465
|
+
{
|
|
1466
|
+
languages: ["ts"],
|
|
1467
|
+
name: "menu.component.html",
|
|
1468
|
+
target: "<src>/app/menu.component.html"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
languages: ["ts"],
|
|
1472
|
+
name: "menu.component.ts",
|
|
1473
|
+
target: "<src>/app/menu.component.ts"
|
|
1474
|
+
},
|
|
1469
1475
|
{
|
|
1470
1476
|
languages: ["ts"],
|
|
1471
1477
|
name: "index.tsx",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smapiot/pilet-template-angular",
|
|
3
|
-
"version": "0.15.1
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Official scaffolding template for pilets: 'angular'.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral-cli",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@smapiot/template-utils": "0.15.1
|
|
57
|
+
"@smapiot/template-utils": "^0.15.1"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "39215a41e828687ea1bd7632d294ae088690b69f"
|
|
60
60
|
}
|
package/src/helpers.ts
CHANGED
|
@@ -27,22 +27,18 @@ export function getStandalonePackageJson(cliVersion: string, ngVersion: string)
|
|
|
27
27
|
return {
|
|
28
28
|
importmap: {
|
|
29
29
|
imports: {
|
|
30
|
-
'@angular/animations': '@angular/animations',
|
|
31
30
|
'@angular/common': '@angular/common',
|
|
32
31
|
'@angular/compiler': '@angular/compiler',
|
|
33
32
|
'@angular/core': '@angular/core',
|
|
34
|
-
'@angular/forms': '@angular/forms',
|
|
35
33
|
'@angular/platform-browser': '@angular/platform-browser',
|
|
36
34
|
'@angular/platform-browser-dynamic': '@angular/platform-browser-dynamic',
|
|
37
35
|
'@angular/router': '@angular/router',
|
|
38
36
|
},
|
|
39
37
|
},
|
|
40
38
|
dependencies: {
|
|
41
|
-
'@angular/animations': ngVersion,
|
|
42
39
|
'@angular/common': ngVersion,
|
|
43
40
|
'@angular/compiler': ngVersion,
|
|
44
41
|
'@angular/core': ngVersion,
|
|
45
|
-
'@angular/forms': ngVersion,
|
|
46
42
|
'@angular/platform-browser': ngVersion,
|
|
47
43
|
'@angular/platform-browser-dynamic': ngVersion,
|
|
48
44
|
'@angular/router': ngVersion,
|
package/src/index.ts
CHANGED
|
@@ -63,6 +63,16 @@ export default createPiletTemplateFactory<AngularPiletArgs>(root, (projectRoot,
|
|
|
63
63
|
name: 'page.component.ts',
|
|
64
64
|
target: '<src>/app/page.component.ts',
|
|
65
65
|
},
|
|
66
|
+
{
|
|
67
|
+
languages: ['ts'],
|
|
68
|
+
name: 'menu.component.html',
|
|
69
|
+
target: '<src>/app/menu.component.html',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
languages: ['ts'],
|
|
73
|
+
name: 'menu.component.ts',
|
|
74
|
+
target: '<src>/app/menu.component.ts',
|
|
75
|
+
},
|
|
66
76
|
{
|
|
67
77
|
languages: ['ts'],
|
|
68
78
|
name: 'index.tsx',
|
|
@@ -10,6 +10,6 @@ import { MenuComponent } from './menu.component';
|
|
|
10
10
|
bootstrap: [],
|
|
11
11
|
declarations: [PageComponent, MenuComponent],
|
|
12
12
|
exports: [PageComponent, MenuComponent],
|
|
13
|
-
imports: [BrowserModule, SharedModule, RouterModule.
|
|
13
|
+
imports: [BrowserModule, SharedModule, RouterModule.forRoot([])],
|
|
14
14
|
})
|
|
15
15
|
export class AppModule {}
|