@@ -83,21 +83,21 @@ module.exports = api => {
83
83
onWrite : async ( { api, prompts, cwd } ) => {
84
84
const result = { }
85
85
for ( const prompt of prompts . filter ( p => ! p . raw . skipSave ) ) {
86
- result [ `org.vue. pwa.${ prompt . id } ` ] = await api . getAnswer ( prompt . id )
86
+ result [ `pwa.${ prompt . id } ` ] = await api . getAnswer ( prompt . id )
87
87
}
88
88
api . setData ( 'vue' , result )
89
89
90
90
// Update app manifest
91
91
92
- const name = result [ 'org.vue.pwa. name' ]
92
+ const name = result [ 'name' ]
93
93
if ( name ) {
94
94
api . setData ( 'manifest' , {
95
95
name,
96
96
short_name : name
97
97
} )
98
98
}
99
99
100
- const themeColor = result [ 'org.vue.pwa. themeColor' ]
100
+ const themeColor = result [ 'themeColor' ]
101
101
if ( themeColor ) {
102
102
api . setData ( 'manifest' , {
103
103
theme_color : themeColor
@@ -131,7 +131,6 @@ module.exports = api => {
131
131
label : 'org.vue.pwa.suggestions.open-vue.label' ,
132
132
handler ( ) {
133
133
const file = config . foundFiles . vue . path
134
- console . log ( 'open' , file )
135
134
const launch = require ( 'launch-editor' )
136
135
launch ( file )
137
136
return {
@@ -149,7 +148,6 @@ module.exports = api => {
149
148
label : 'org.vue.pwa.suggestions.open-manifest.label' ,
150
149
handler ( ) {
151
150
const file = config . foundFiles . manifest . path
152
- console . log ( 'open' , file )
153
151
const launch = require ( 'launch-editor' )
154
152
launch ( file )
155
153
return {
0 commit comments