fix(pwa): wrong config, closes #1890

This commit is contained in:
Guillaume Chau
2018-07-20 07:33:46 +02:00
parent a352bdc4da
commit f4aa40dbc1
2 changed files with 3 additions and 6 deletions

View File

@@ -246,7 +246,6 @@ module.exports = api => {
label: 'org.vue.eslint.suggestions.open-eslintrc.label',
handler () {
const file = config.foundFiles.eslint.path
console.log('open', file)
const launch = require('launch-editor')
launch(file)
return {

View File

@@ -83,13 +83,13 @@ module.exports = api => {
onWrite: async ({ api, prompts, cwd }) => {
const result = {}
for (const prompt of prompts.filter(p => !p.raw.skipSave)) {
result[`org.vue.pwa.${prompt.id}`] = await api.getAnswer(prompt.id)
result[`pwa.${prompt.id}`] = await api.getAnswer(prompt.id)
}
api.setData('vue', result)
// Update app manifest
const name = result['org.vue.pwa.name']
const name = result['name']
if (name) {
api.setData('manifest', {
name,
@@ -97,7 +97,7 @@ module.exports = api => {
})
}
const themeColor = result['org.vue.pwa.themeColor']
const themeColor = result['themeColor']
if (themeColor) {
api.setData('manifest', {
theme_color: themeColor
@@ -131,7 +131,6 @@ module.exports = api => {
label: 'org.vue.pwa.suggestions.open-vue.label',
handler () {
const file = config.foundFiles.vue.path
console.log('open', file)
const launch = require('launch-editor')
launch(file)
return {
@@ -149,7 +148,6 @@ module.exports = api => {
label: 'org.vue.pwa.suggestions.open-manifest.label',
handler () {
const file = config.foundFiles.manifest.path
console.log('open', file)
const launch = require('launch-editor')
launch(file)
return {