mirror of
https://github.com/catppuccin/catppuccin
synced 2024-11-22 11:33:07 +00:00
29 lines
551 B
JavaScript
29 lines
551 B
JavaScript
|
const Generator = require("yeoman-generator")
|
||
|
const chalk = require('chalk')
|
||
|
const yosay = require("yosay")
|
||
|
|
||
|
module.exports = class extends Generator {
|
||
|
prompting() {
|
||
|
// have yeoman greet the user
|
||
|
this.log(chalk.red("Let\'s do this"))
|
||
|
|
||
|
const prompts = [{
|
||
|
message: 'Enter the excercise title',
|
||
|
worker: true,
|
||
|
action: null,
|
||
|
age: 123
|
||
|
}];
|
||
|
|
||
|
return this.prompt(prompts).then(props => {
|
||
|
// you can access them later
|
||
|
this.props = props
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function exclamate(message) {
|
||
|
return message + "!"
|
||
|
}
|
||
|
|
||
|
console.log(exclamate("lol"))
|