Skip to content

Commit 4f4cc0b

Browse files
committed
Merge branch 'master' of github.com:nativescript-vue/vue-cli-plugin-nativescript-vue
2 parents faea28d + ddbef34 commit 4f4cc0b

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

Diff for: 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

Diff for: 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
})

Diff for: 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.2",
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"
@@ -18,5 +19,20 @@
1819
"devDependencies": {
1920
"nativescript-vue-template-compiler": "^1.3.1",
2021
"rimraf": "^2.6.2"
21-
}
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue.git"
26+
},
27+
"keywords": [
28+
"vue",
29+
"cli",
30+
"nativescript",
31+
"web",
32+
"plugin"
33+
],
34+
"bugs": {
35+
"url": "https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue/issues"
36+
},
37+
"homepage": "https://github.com/nativescript-vue/vue-cli-plugin-nativescript-vue#readme"
2238
}

Diff for: 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)