rothzerg 0.1.1 → 0.1.3
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/dist/cli.js
CHANGED
|
@@ -66,7 +66,7 @@ function isTextFile(filePath) {
|
|
|
66
66
|
function applyFileRename(relativePath) {
|
|
67
67
|
const parts = relativePath.split(path.sep);
|
|
68
68
|
const renamed = parts.map((part) => {
|
|
69
|
-
if (part.startsWith("_") && !part.startsWith("__")) {
|
|
69
|
+
if (part.startsWith("_") && !part.startsWith("__") && path.extname(part) === "") {
|
|
70
70
|
return "." + part.slice(1);
|
|
71
71
|
}
|
|
72
72
|
return part;
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rothzerg",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Plugin-style CLI engine for scaffolding and upgrading projects from config-driven, inheritable templates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"rz": "./dist/cli.js"
|
|
7
|
+
"rz": "./dist/cli.js",
|
|
8
|
+
"rothzerg": "./dist/cli.js"
|
|
8
9
|
},
|
|
9
10
|
"files": [
|
|
10
11
|
"dist",
|
|
@@ -28,6 +28,18 @@
|
|
|
28
28
|
{ "value": "#16a34a", "label": "Forest Green", "hint": "#16a34a" },
|
|
29
29
|
{ "value": "#dc2626", "label": "Ruby Red", "hint": "#dc2626" }
|
|
30
30
|
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "enableBlog",
|
|
34
|
+
"type": "confirm",
|
|
35
|
+
"message": "Enable blog?",
|
|
36
|
+
"default": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "enableDeepLinks",
|
|
40
|
+
"type": "confirm",
|
|
41
|
+
"message": "Enable deep link pages?",
|
|
42
|
+
"default": false
|
|
31
43
|
}
|
|
32
44
|
],
|
|
33
45
|
"derived": {
|
|
@@ -41,6 +53,17 @@
|
|
|
41
53
|
"baseDir": "{{config:websitesRoot}}/app/websites",
|
|
42
54
|
"dirName": "{{domain}}"
|
|
43
55
|
},
|
|
56
|
+
"conditionalFiles": {
|
|
57
|
+
"pages/blog/**": "{{enableBlog}}",
|
|
58
|
+
"data/blog/**": "{{enableBlog}}",
|
|
59
|
+
"i18n/sections/blog/**": "{{enableBlog}}",
|
|
60
|
+
"components/DownloadSection.tsx": "{{enableStore}}",
|
|
61
|
+
"components/DownloadSection.css": "{{enableStore}}",
|
|
62
|
+
"components/DeepLinkLayout.tsx": "{{enableDeepLinks}}",
|
|
63
|
+
"components/DeepLinkLayout.css": "{{enableDeepLinks}}",
|
|
64
|
+
"pages/custom-pages/**": "{{enableDeepLinks}}",
|
|
65
|
+
"i18n/sections/deepLink/**": "{{enableDeepLinks}}"
|
|
66
|
+
},
|
|
44
67
|
"hooks": {
|
|
45
68
|
"postCreate": [
|
|
46
69
|
{ "run": "register-website", "builtin": true },
|
|
@@ -6,18 +6,7 @@
|
|
|
6
6
|
"category": "website",
|
|
7
7
|
"order": 1,
|
|
8
8
|
"extends": "_base-website",
|
|
9
|
-
"prompts": [
|
|
10
|
-
{
|
|
11
|
-
"name": "enableBlog",
|
|
12
|
-
"type": "confirm",
|
|
13
|
-
"message": "Enable blog?",
|
|
14
|
-
"default": true
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"conditionalFiles": {
|
|
18
|
-
"pages/blog/**": "{{enableBlog}}",
|
|
19
|
-
"data/blog/**": "{{enableBlog}}"
|
|
20
|
-
},
|
|
9
|
+
"prompts": [],
|
|
21
10
|
"hooks": {
|
|
22
11
|
"postCreate": []
|
|
23
12
|
},
|
|
@@ -7,24 +7,12 @@
|
|
|
7
7
|
"order": 3,
|
|
8
8
|
"extends": "_base-website",
|
|
9
9
|
"prompts": [
|
|
10
|
-
{
|
|
11
|
-
"name": "enableBlog",
|
|
12
|
-
"type": "confirm",
|
|
13
|
-
"message": "Enable blog?",
|
|
14
|
-
"default": true
|
|
15
|
-
},
|
|
16
10
|
{
|
|
17
11
|
"name": "enableStore",
|
|
18
12
|
"type": "confirm",
|
|
19
13
|
"message": "Enable App Store / Play Store download section?",
|
|
20
14
|
"default": true
|
|
21
15
|
},
|
|
22
|
-
{
|
|
23
|
-
"name": "enableDeepLinks",
|
|
24
|
-
"type": "confirm",
|
|
25
|
-
"message": "Enable deep link pages?",
|
|
26
|
-
"default": true
|
|
27
|
-
},
|
|
28
16
|
{
|
|
29
17
|
"name": "appStoreUrl",
|
|
30
18
|
"type": "text",
|
|
@@ -44,15 +32,6 @@
|
|
|
44
32
|
"default": "{{domain | stripTld}}://"
|
|
45
33
|
}
|
|
46
34
|
],
|
|
47
|
-
"conditionalFiles": {
|
|
48
|
-
"pages/blog/**": "{{enableBlog}}",
|
|
49
|
-
"data/blog/**": "{{enableBlog}}",
|
|
50
|
-
"components/DownloadSection.tsx": "{{enableStore}}",
|
|
51
|
-
"components/DownloadSection.css": "{{enableStore}}",
|
|
52
|
-
"components/DeepLinkLayout.tsx": "{{enableDeepLinks}}",
|
|
53
|
-
"components/DeepLinkLayout.css": "{{enableDeepLinks}}",
|
|
54
|
-
"pages/custom-pages/**": "{{enableDeepLinks}}"
|
|
55
|
-
},
|
|
56
35
|
"hooks": {
|
|
57
36
|
"postCreate": []
|
|
58
37
|
},
|