diff --git a/generator/index.js b/generator/index.js index a0ac135..f376dc6 100644 --- a/generator/index.js +++ b/generator/index.js @@ -31,6 +31,7 @@ module.exports = (api, options, rootOptions) => { applicationDescription: api.generator.pkg.description || api.generator.pkg.name, applicationLicense: api.generator.pkg.license || 'MIT', applicationId: options.applicationId, + historyMode: options.historyMode || false, }) // delete the "public" directory diff --git a/index.js b/index.js index bf406c7..716e821 100644 --- a/index.js +++ b/index.js @@ -19,8 +19,7 @@ module.exports = (api, projectOptions) => { const vueRule = config.module.rule('vue').test(/\.vue$/) vueRule.use('vue-loader').tap(options => { - // todo fix typo when pr merged - options.compilerOpitons.compiler = require('nativescript-vue-template-compiler') + options.compilerOptions.compiler = require('nativescript-vue-template-compiler') options.compilerOptions = options.compilerOpitons delete options.compilerOpitons; }) diff --git a/package.json b/package.json index 3e0aa86..7878580 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "vue-cli-plugin-nativescript-vue", - "version": "0.0.1", + "version": "0.0.3", "description": "A vue cli 3.x plugin for NativeScript-Vue", "main": "index.js", "files": [ "index.js", "lib", "generator", - "LICENSE" + "LICENSE", + "prompts.js" ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" @@ -19,5 +20,20 @@ "devDependencies": { "nativescript-vue-template-compiler": "^1.3.1", "rimraf": "^2.6.2" - } + }, + "repository": { + "type": "git", + "url": "git+https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue.git" + }, + "keywords": [ + "vue", + "cli", + "nativescript", + "web", + "plugin" + ], + "bugs": { + "url": "https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue/issues" + }, + "homepage": "https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue#readme" } diff --git a/prompts.js b/prompts.js index 172a273..59b989c 100644 --- a/prompts.js +++ b/prompts.js @@ -18,5 +18,11 @@ Example: com.company.app` return true; } + }, + { + name: 'historyMode', + type: 'confirm', + message: 'Use HTML5 history mode? (Default: hash mode)', + default: false } ] \ No newline at end of file