From bbcd9c6300b0a45c255077cde7a6c33d05c21321 Mon Sep 17 00:00:00 2001 From: Yigit Erol Date: Tue, 31 Jul 2018 18:54:44 +0100 Subject: [PATCH 1/2] Added html5 mode prompt Fixed all prompts Fixed typo Updated to version 0.0.3 as current version is set as 0.0.2 on npm Added github urls ro package.json --- generator/index.js | 1 + index.js | 3 +-- package.json | 5 +++-- prompts.js | 6 ++++++ 4 files changed, 11 insertions(+), 4 deletions(-) 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..04d116a 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" 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 From 98417ed1097c365fc79b36b030647f43d63139b6 Mon Sep 17 00:00:00 2001 From: Yigit Erol Date: Tue, 31 Jul 2018 18:55:04 +0100 Subject: [PATCH 2/2] Added github urls ro package.json --- package.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 04d116a..7878580 100644 --- a/package.json +++ b/package.json @@ -20,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" }