rothzerg 0.1.2 → 0.1.4
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
|
@@ -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,15 @@
|
|
|
41
53
|
"baseDir": "{{config:websitesRoot}}/app/websites",
|
|
42
54
|
"dirName": "{{domain}}"
|
|
43
55
|
},
|
|
56
|
+
"conditionalFiles": {
|
|
57
|
+
"pages/blog/**": "{{enableBlog}}",
|
|
58
|
+
"data/blog/**": "{{enableBlog}}",
|
|
59
|
+
"components/DownloadSection.tsx": "{{enableStore}}",
|
|
60
|
+
"components/DownloadSection.css": "{{enableStore}}",
|
|
61
|
+
"components/DeepLinkLayout.tsx": "{{enableDeepLinks}}",
|
|
62
|
+
"components/DeepLinkLayout.css": "{{enableDeepLinks}}",
|
|
63
|
+
"pages/custom-pages/**": "{{enableDeepLinks}}"
|
|
64
|
+
},
|
|
44
65
|
"hooks": {
|
|
45
66
|
"postCreate": [
|
|
46
67
|
{ "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
|
},
|