Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 4a6bbe6

Browse files
committed
chore: rename configuration option name, clean-up generator
1 parent 9ea02e2 commit 4a6bbe6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/@vuetify/presets/generator/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@ module.exports = (api, options) => {
88
return
99
}
1010

11+
const configuration = options.configuration
12+
1113
try {
12-
api.render(`./templates/${options.preset}`)
14+
api.render(`./templates/${configuration}`)
1315
} catch (e) {
1416
console.log(e, options)
1517
}
1618

1719
api.extendPackage({
1820
devDependencies: {
1921
'eslint-config-vuetify': '^0.6.1',
20-
'eslint-plugin-vuetify': '^1.0.0-beta.6',
2122
'eslint-plugin-vue': '^6.2.2',
23+
'eslint-plugin-vuetify': '^1.0.0-beta.6',
24+
'vuex-pathify': '^1.4.1',
2225
lodash: '^4.17.15',
2326
webfontloader: '^1.6.28',
24-
'vuex-pathify': '^1.4.1',
2527
},
2628
})
2729

2830
api.injectImports(api.entryFile, 'import \'./plugins\'')
2931

3032
api.onCreateComplete(() => {
31-
const presetName = `Vuetify ${options.preset} preset`
33+
const presetName = `Vuetify ${configuration} preset`
3234
const projectName = api.rootOptions.projectName
3335

34-
const about = api.resolve('src/views/About.vue')
3536
const home = api.resolve('src/views/Home.vue')
3637

37-
if (fs.existsSync(about)) fs.unlinkSync(about)
3838
if (fs.existsSync(home)) fs.unlinkSync(home)
3939

4040
api.exitLog(`🍣 Successfully generated ${projectName} from the ${presetName}.\n`)

packages/@vuetify/presets/prompts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = [
22
{
33
type: 'list',
4-
name: 'preset',
4+
name: 'configuration',
55
message: 'Select from one of the following presets to scaffold your Vuetify project:',
66
choices: [
77
{

0 commit comments

Comments
 (0)