Skip to content

Commit ddbef34

Browse files
authored
Merge pull request #3 from yerol/master
Fixed prompts, added required html5 mode prompt and fixed a typo
2 parents 74765ee + 98417ed commit ddbef34

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

generator/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = (api, options, rootOptions) => {
3131
applicationDescription: api.generator.pkg.description || api.generator.pkg.name,
3232
applicationLicense: api.generator.pkg.license || 'MIT',
3333
applicationId: options.applicationId,
34+
historyMode: options.historyMode || false,
3435
})
3536

3637
// delete the "public" directory

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ module.exports = (api, projectOptions) => {
1919
const vueRule = config.module.rule('vue').test(/\.vue$/)
2020

2121
vueRule.use('vue-loader').tap(options => {
22-
// todo fix typo when pr merged
23-
options.compilerOpitons.compiler = require('nativescript-vue-template-compiler')
22+
options.compilerOptions.compiler = require('nativescript-vue-template-compiler')
2423
options.compilerOptions = options.compilerOpitons
2524
delete options.compilerOpitons;
2625
})

package.json

+19-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "vue-cli-plugin-nativescript-vue",
3-
"version": "0.0.1",
3+
"version": "0.0.3",
44
"description": "A vue cli 3.x plugin for NativeScript-Vue",
55
"main": "index.js",
66
"files": [
77
"index.js",
88
"lib",
99
"generator",
10-
"LICENSE"
10+
"LICENSE",
11+
"prompts.js"
1112
],
1213
"scripts": {
1314
"test": "echo \"Error: no test specified\" && exit 1"
@@ -19,5 +20,20 @@
1920
"devDependencies": {
2021
"nativescript-vue-template-compiler": "^1.3.1",
2122
"rimraf": "^2.6.2"
22-
}
23+
},
24+
"repository": {
25+
"type": "git",
26+
"url": "git+https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue.git"
27+
},
28+
"keywords": [
29+
"vue",
30+
"cli",
31+
"nativescript",
32+
"web",
33+
"plugin"
34+
],
35+
"bugs": {
36+
"url": "https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue/issues"
37+
},
38+
"homepage": "https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue#readme"
2339
}

prompts.js

+6
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@ Example: com.company.app`
1818

1919
return true;
2020
}
21+
},
22+
{
23+
name: 'historyMode',
24+
type: 'confirm',
25+
message: 'Use HTML5 history mode? (Default: hash mode)',
26+
default: false
2127
}
2228
]

0 commit comments

Comments
 (0)