Skip to content

Commit bbcd9c6

Browse files
committed
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
1 parent 74765ee commit bbcd9c6

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

generator/index.js

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 3 additions & 2 deletions
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"

prompts.js

Lines changed: 6 additions & 0 deletions
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)