create-routify 1.5.8 → 1.6.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/README.md +3 -2
- package/config.js +1 -1
- package/package.json +2 -2
- package/src/index.js +13 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Create Routify
|
|
2
2
|
|
|
3
|
-
Welcome to the new Routiy CLI! This CLI currently supports both version 2 & 3
|
|
3
|
+
Welcome to the new Routiy CLI! This CLI currently supports both version 2 & 3 of Routify.
|
|
4
4
|
|
|
5
5
|
# Get Started
|
|
6
6
|
|
|
@@ -30,4 +30,5 @@ npm init routify [directory-name]
|
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### Contributors
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
See [CONTRIBUTORS.md](CONTRIBUTORS.md)
|
package/config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-routify",
|
|
3
|
-
"version": "v1.
|
|
3
|
+
"version": "v1.6.1",
|
|
4
4
|
"description": "A powerful cli for super-powering your routify development experience",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/update-notifier": "^6.0.1"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|
package/src/index.js
CHANGED
|
@@ -33,7 +33,7 @@ const prompts = {
|
|
|
33
33
|
{
|
|
34
34
|
label: `Routify 3`,
|
|
35
35
|
value: 3,
|
|
36
|
-
hint: 'This is a beta version',
|
|
36
|
+
// hint: 'This is a beta version',
|
|
37
37
|
},
|
|
38
38
|
],
|
|
39
39
|
initialValue: 3,
|
|
@@ -116,6 +116,18 @@ const check = {
|
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
const getAvailableFeatures = (template) => {
|
|
119
|
+
console.log(
|
|
120
|
+
'DEBUG: Available Templates:',
|
|
121
|
+
template ? template.name : 'undefined template',
|
|
122
|
+
);
|
|
123
|
+
if (!template || !template.manifest) {
|
|
124
|
+
console.error(
|
|
125
|
+
'ERROR: Template or manifest is undefined. This likely means the selected starter template was not found.',
|
|
126
|
+
);
|
|
127
|
+
return [];
|
|
128
|
+
}
|
|
129
|
+
console.log('DEBUG: Using template manifest:', template.manifest);
|
|
130
|
+
|
|
119
131
|
const features = template.manifest.features || [];
|
|
120
132
|
if (template.manifest.test)
|
|
121
133
|
features.push({
|