generator-hubble 0.0.4 → 0.0.5
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 +11 -15
- package/package.json +1 -1
package/generators/app/index.js
CHANGED
|
@@ -16,6 +16,12 @@ export default class extends Generator {
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
const prompts = [
|
|
19
|
+
{
|
|
20
|
+
type: "confirm",
|
|
21
|
+
name: "areYouSure",
|
|
22
|
+
message: `Would you like to create the project in the current directory?`,
|
|
23
|
+
default: true
|
|
24
|
+
},
|
|
19
25
|
{
|
|
20
26
|
type: "string",
|
|
21
27
|
name: "packageName",
|
|
@@ -41,12 +47,6 @@ export default class extends Generator {
|
|
|
41
47
|
name: "gitUserName",
|
|
42
48
|
message: "What's the author's GitHub username?",
|
|
43
49
|
},
|
|
44
|
-
{
|
|
45
|
-
type: "confirm",
|
|
46
|
-
name: "areYouSure",
|
|
47
|
-
message: `Would you like to create the project?`,
|
|
48
|
-
default: true
|
|
49
|
-
},
|
|
50
50
|
];
|
|
51
51
|
|
|
52
52
|
return this.prompt(prompts).then(props => {
|
|
@@ -57,10 +57,10 @@ export default class extends Generator {
|
|
|
57
57
|
|
|
58
58
|
writing() {
|
|
59
59
|
if(this.props.AreYouSure) {
|
|
60
|
-
this.log( chalk.blue(`🎉
|
|
60
|
+
this.log( chalk.blue(`🎉 Copying files...`) )
|
|
61
61
|
this.fs.copyTpl(
|
|
62
62
|
this.templatePath(),
|
|
63
|
-
this.destinationPath(
|
|
63
|
+
this.destinationPath(),
|
|
64
64
|
this.props,
|
|
65
65
|
);
|
|
66
66
|
}
|
|
@@ -75,19 +75,15 @@ export default class extends Generator {
|
|
|
75
75
|
|
|
76
76
|
if(!this.props.areYouSure) return undefined;
|
|
77
77
|
|
|
78
|
-
this.log( chalk.green(`🎉 Created ${this.props.packageName}
|
|
78
|
+
this.log( chalk.green(`🎉 Created ${this.props.packageName}...`) )
|
|
79
79
|
|
|
80
80
|
this.log( `${chalk.blue(`📚 Installing dependencies...`)}` )
|
|
81
81
|
|
|
82
|
-
await execute(`
|
|
82
|
+
await execute(`npm i`);
|
|
83
83
|
|
|
84
84
|
this.log( `${chalk.green(`📚 Installed dependencies...`)}` )
|
|
85
85
|
|
|
86
|
-
this.log()
|
|
87
|
-
this.log(`🚀 Run the below line to go and watch and build your hubble` )
|
|
88
|
-
this.log()
|
|
89
|
-
this.log(`${chalk.blue(`cd ${this.props.packageName} && npm run dev`)}` )
|
|
90
|
-
this.log()
|
|
86
|
+
this.log(`🚀 Happy Hacking` )
|
|
91
87
|
}
|
|
92
88
|
catch (error) {
|
|
93
89
|
this.log( `🔥 ${chalk.red(`Error Installing: ${error.message}`)}` )
|
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.5",
|
|
5
5
|
"description": "A yeoman generator to easily create a lit-element project with tailwindcss and typescript",
|
|
6
6
|
"homepage": "https://github.com/jsmithdev/generator-hubble",
|
|
7
7
|
"author": {
|