generator-hubble 0.0.7 → 0.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/generators/app/index.js +15 -11
- package/package.json +1 -1
package/generators/app/index.js
CHANGED
|
@@ -44,7 +44,7 @@ export default class extends Generator {
|
|
|
44
44
|
{
|
|
45
45
|
type: "confirm",
|
|
46
46
|
name: "areYouSure",
|
|
47
|
-
message: `Are you sure you want to create the project
|
|
47
|
+
message: `Are you sure you want to create the project?`,
|
|
48
48
|
default: true
|
|
49
49
|
},
|
|
50
50
|
];
|
|
@@ -61,7 +61,7 @@ export default class extends Generator {
|
|
|
61
61
|
this.log( chalk.blue(`🎉 Copying files...`) )
|
|
62
62
|
this.fs.copyTpl(
|
|
63
63
|
this.templatePath(),
|
|
64
|
-
this.destinationPath(),
|
|
64
|
+
this.destinationPath(this.props.packageName),
|
|
65
65
|
this.props,
|
|
66
66
|
);
|
|
67
67
|
}
|
|
@@ -73,21 +73,25 @@ export default class extends Generator {
|
|
|
73
73
|
async install(){
|
|
74
74
|
try {
|
|
75
75
|
|
|
76
|
-
|
|
77
76
|
if(!this.props.areYouSure) return undefined;
|
|
78
77
|
|
|
79
|
-
this.log( chalk.green(`🎉 Created ${this.props.packageName}...`) )
|
|
80
|
-
|
|
81
78
|
this.log( `${chalk.blue(`📚 Installing dependencies...`)}` )
|
|
82
79
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
try {
|
|
81
|
+
await execute(`cd ${this.destinationPath(this.props.packageName)} && npm i`);
|
|
82
|
+
|
|
83
|
+
this.log( `${chalk.green(`📚 Installed dependencies...`)}` )
|
|
84
|
+
|
|
85
|
+
this.log( `${chalk.green(`🚀 Successfully created ${this.props.packageName} hubble!`)}` )
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
this.log( `🔥 ${chalk.red(`Failed to install dependencies:`)} ${error.message}` )
|
|
89
|
+
this.log( `${chalk.blue(`Be sure to install dependencies later (npm install)`)}` )
|
|
90
|
+
this.log( `${chalk.green(`🚀 Successfully created ${this.props.packageName} hubble!`)}` )
|
|
91
|
+
}
|
|
88
92
|
}
|
|
89
93
|
catch (error) {
|
|
90
|
-
this.log( `🔥 ${chalk.red(`Error Installing
|
|
94
|
+
this.log( `🔥 ${chalk.red(`Error Installing:`)} ${error.message}` )
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-hubble",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"description": "A yeoman generator to quickly create hubbles with lit, tailwind and typescript.",
|
|
6
6
|
"homepage": "https://github.com/jsmithdev/generator-hubble",
|
|
7
7
|
"author": {
|