-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprompts.js
27 lines (25 loc) · 943 Bytes
/
prompts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = (pkg) => {
const prompts = [
{
type: "confirm",
name: "scaffold",
message: "Add support for base components?",
default: true,
group: "Strongly recommended",
description: "In addition to deleting all pre-built components, it will add lodash and the necessary configuration for supporting base components.",
link: "https://github.com/DevTony101/vue-cli-plugin-clean#Features",
},
];
if ("@vue/eslint-config-prettier" in (pkg.devDependencies || {})) {
prompts.push({
type: "confirm",
name: "prettier",
message: "Add prettier configuration?",
default: true,
group: "Strongly recommended",
description: "This will add a prettier configuration file and add a vue/plugin-recommended plugin to your eslint configuration file.",
link: "https://github.com/DevTony101/vue-cli-plugin-clean#Features",
});
}
return prompts;
};