generator-hubble 0.0.3 → 0.0.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.
@@ -16,12 +16,6 @@ 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
- },
25
19
  {
26
20
  type: "string",
27
21
  name: "packageName",
@@ -47,6 +41,12 @@ export default class extends Generator {
47
41
  name: "gitUserName",
48
42
  message: "What's the author's GitHub username?",
49
43
  },
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,15 +57,15 @@ export default class extends Generator {
57
57
 
58
58
  writing() {
59
59
  if(this.props.AreYouSure) {
60
- this.log( chalk.blue(`🎉 Creating ${this.props.name} and copying files...`) )
60
+ this.log( chalk.blue(`🎉 Creating ${this.props.packageName} and copying files...`) )
61
61
  this.fs.copyTpl(
62
62
  this.templatePath(),
63
- this.destinationPath(),
63
+ this.destinationPath(this.props.packageName),
64
64
  this.props,
65
65
  );
66
66
  }
67
67
  else {
68
- this.log( chalk.red(`🔥 Canceling ${this.props.name}...`) )
68
+ this.log( chalk.red(`🔥 Canceling ${this.props.packageName}...`) )
69
69
  }
70
70
  }
71
71
 
@@ -75,17 +75,18 @@ 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.name} and copied files...`) )
78
+ this.log( chalk.green(`🎉 Created ${this.props.packageName} and copied files...`) )
79
79
 
80
80
  this.log( `${chalk.blue(`📚 Installing dependencies...`)}` )
81
81
 
82
- await execute(`cd ${this.props.name} && npm i`);
82
+ await execute(`cd ${this.props.packageName} && npm i`);
83
83
 
84
84
  this.log( `${chalk.green(`📚 Installed dependencies...`)}` )
85
85
 
86
86
  this.log()
87
- this.log(`${chalk.blue(`cd ${this.props.name} && npm start`)}` )
88
- this.log(`🚀 Run above to go to your new project and start it up` )
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`)}` )
89
90
  this.log()
90
91
  }
91
92
  catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "generator-hubble",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
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": {