@smapiot/pilet-template-angular 1.0.7 → 1.0.8
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 +1 -1
- package/lib/index.js +7 -0
- package/package.json +3 -3
- package/src/helpers.ts +1 -0
- package/src/index.ts +5 -0
- package/templates/angular.json.ejs +20 -0
package/LICENSE
CHANGED
package/lib/index.js
CHANGED
|
@@ -1313,6 +1313,7 @@ var require_factory = __commonJS({
|
|
|
1313
1313
|
plugins,
|
|
1314
1314
|
projectRoot,
|
|
1315
1315
|
root: ".",
|
|
1316
|
+
piletName: (0, path_1.basename)(projectRoot),
|
|
1316
1317
|
sourceName,
|
|
1317
1318
|
extension: (0, utils_1.getLanguageExtension)(language),
|
|
1318
1319
|
src,
|
|
@@ -1517,6 +1518,7 @@ function getStandardPackageJson(cliVersion, ngVersion, majorNgVersion) {
|
|
|
1517
1518
|
return {
|
|
1518
1519
|
devDependencies: {
|
|
1519
1520
|
"@angular/compiler-cli": ngVersion,
|
|
1521
|
+
"@angular/cli": ngVersion,
|
|
1520
1522
|
"@ngtools/webpack": ngVersion,
|
|
1521
1523
|
"copy-webpack-plugin": "^10",
|
|
1522
1524
|
"html-loader": "^3",
|
|
@@ -1554,6 +1556,11 @@ var src_default = (0, import_template_utils.createPiletTemplateFactory)(root, (p
|
|
|
1554
1556
|
content: JSON.stringify(packageJson),
|
|
1555
1557
|
target: "<root>/package.json"
|
|
1556
1558
|
},
|
|
1559
|
+
{
|
|
1560
|
+
languages: ["ts", "js"],
|
|
1561
|
+
name: "angular.json",
|
|
1562
|
+
target: "<root>/angular.json"
|
|
1563
|
+
},
|
|
1557
1564
|
{
|
|
1558
1565
|
languages: ["ts", "js"],
|
|
1559
1566
|
name: "webpack.config.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smapiot/pilet-template-angular",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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": "^1.0.
|
|
57
|
+
"@smapiot/template-utils": "^1.0.8"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "526104ba5b332d0c790da2642625a29c584dc674"
|
|
60
60
|
}
|
package/src/helpers.ts
CHANGED
|
@@ -71,6 +71,7 @@ export function getStandardPackageJson(cliVersion: string, ngVersion: string, ma
|
|
|
71
71
|
return {
|
|
72
72
|
devDependencies: {
|
|
73
73
|
'@angular/compiler-cli': ngVersion,
|
|
74
|
+
'@angular/cli': ngVersion,
|
|
74
75
|
'@ngtools/webpack': ngVersion,
|
|
75
76
|
'copy-webpack-plugin': '^10',
|
|
76
77
|
'html-loader': '^3',
|
package/src/index.ts
CHANGED
|
@@ -41,6 +41,11 @@ export default createPiletTemplateFactory<AngularPiletArgs>(root, (projectRoot,
|
|
|
41
41
|
content: JSON.stringify(packageJson),
|
|
42
42
|
target: '<root>/package.json',
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
languages: ['ts', 'js'],
|
|
46
|
+
name: 'angular.json',
|
|
47
|
+
target: '<root>/angular.json',
|
|
48
|
+
},
|
|
44
49
|
{
|
|
45
50
|
languages: ['ts', 'js'],
|
|
46
51
|
name: 'webpack.config.js',
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"<%- piletName %>": {
|
|
7
|
+
"projectType": "application",
|
|
8
|
+
"schematics": {
|
|
9
|
+
"@schematics/angular:component": {
|
|
10
|
+
"style": "scss"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"root": "",
|
|
14
|
+
"sourceRoot": "<%- src %>",
|
|
15
|
+
"prefix": "app",
|
|
16
|
+
"architect": {},
|
|
17
|
+
"i18n": {}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|